Home
last modified time | relevance | path

Searched refs:sbi (Results 1 – 25 of 95) sorted by relevance

1234

/fs/sysv/
Dsuper.c47 static void detected_xenix(struct sysv_sb_info *sbi) in detected_xenix() argument
49 struct buffer_head *bh1 = sbi->s_bh1; in detected_xenix()
50 struct buffer_head *bh2 = sbi->s_bh2; in detected_xenix()
62 sbi->s_link_max = XENIX_LINK_MAX; in detected_xenix()
63 sbi->s_fic_size = XENIX_NICINOD; in detected_xenix()
64 sbi->s_flc_size = XENIX_NICFREE; in detected_xenix()
65 sbi->s_sbd1 = (char *)sbd1; in detected_xenix()
66 sbi->s_sbd2 = (char *)sbd2; in detected_xenix()
67 sbi->s_sb_fic_count = &sbd1->s_ninode; in detected_xenix()
68 sbi->s_sb_fic_inodes = &sbd1->s_inode[0]; in detected_xenix()
[all …]
Dballoc.c44 struct sysv_sb_info * sbi = SYSV_SB(sb); in sysv_free_block() local
46 sysv_zone_t *blocks = sbi->s_bcache; in sysv_free_block()
48 unsigned block = fs32_to_cpu(sbi, nr); in sysv_free_block()
55 if (sbi->s_type == FSTYPE_AFS) in sysv_free_block()
58 if (block < sbi->s_firstdatazone || block >= sbi->s_nzones) { in sysv_free_block()
64 count = fs16_to_cpu(sbi, *sbi->s_bcache_count); in sysv_free_block()
66 if (count > sbi->s_flc_size) { in sysv_free_block()
75 if (count == sbi->s_flc_size || count == 0) { in sysv_free_block()
76 block += sbi->s_block_base; in sysv_free_block()
84 *(__fs16*)bh->b_data = cpu_to_fs16(sbi, count); in sysv_free_block()
[all …]
Dialloc.c40 struct sysv_sb_info *sbi = SYSV_SB(sb); in sv_sb_fic_inode() local
42 if (sbi->s_bh1 == sbi->s_bh2) in sv_sb_fic_inode()
43 return &sbi->s_sb_fic_inodes[i]; in sv_sb_fic_inode()
48 return (sysv_ino_t*)(sbi->s_sbd1 + offset); in sv_sb_fic_inode()
50 return (sysv_ino_t*)(sbi->s_sbd2 + offset); in sv_sb_fic_inode()
57 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_raw_inode() local
59 int block = sbi->s_firstinodezone + sbi->s_block_base; in sysv_raw_inode()
61 block += (ino-1) >> sbi->s_inodes_per_block_bits; in sysv_raw_inode()
66 return res + ((ino-1) & sbi->s_inodes_per_block_1); in sysv_raw_inode()
71 struct sysv_sb_info *sbi = SYSV_SB(sb); in refill_free_cache() local
[all …]
Dinode.c37 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_write_super() local
49 old_time = fs32_to_cpu(sbi, *sbi->s_sb_time); in sysv_write_super()
50 if (sbi->s_type == FSTYPE_SYSV4) { in sysv_write_super()
51 if (*sbi->s_sb_state == cpu_to_fs32(sbi, 0x7c269d38 - old_time)) in sysv_write_super()
52 *sbi->s_sb_state = cpu_to_fs32(sbi, 0x7c269d38 - time); in sysv_write_super()
53 *sbi->s_sb_time = cpu_to_fs32(sbi, time); in sysv_write_super()
54 mark_buffer_dirty(sbi->s_bh2); in sysv_write_super()
63 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_remount() local
64 if (sbi->s_forced_ro) in sysv_remount()
73 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_put_super() local
[all …]
/fs/ext2/
Dsuper.c50 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_error() local
51 struct ext2_super_block *es = sbi->s_es; in ext2_error()
54 sbi->s_mount_state |= EXT2_ERROR_FS; in ext2_error()
115 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_put_super() local
119 struct ext2_super_block *es = sbi->s_es; in ext2_put_super()
121 es->s_state = cpu_to_le16(sbi->s_mount_state); in ext2_put_super()
124 db_count = sbi->s_gdb_count; in ext2_put_super()
126 if (sbi->s_group_desc[i]) in ext2_put_super()
127 brelse (sbi->s_group_desc[i]); in ext2_put_super()
128 kfree(sbi->s_group_desc); in ext2_put_super()
[all …]
/fs/affs/
Dbitmap.c63 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_free_block() local
71 if (block > sbi->s_partition_size) in affs_free_block()
74 blk = block - sbi->s_reserved; in affs_free_block()
75 bmap = blk / sbi->s_bmap_bits; in affs_free_block()
76 bit = blk % sbi->s_bmap_bits; in affs_free_block()
77 bm = &sbi->s_bitmap[bmap]; in affs_free_block()
79 mutex_lock(&sbi->s_bmlock); in affs_free_block()
81 bh = sbi->s_bmap_bh; in affs_free_block()
82 if (sbi->s_last_bmap != bmap) { in affs_free_block()
87 sbi->s_bmap_bh = bh; in affs_free_block()
[all …]
Dsuper.c29 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_put_super() local
33 AFFS_ROOT_TAIL(sb, sbi->s_root_bh)->bm_flag = cpu_to_be32(1); in affs_put_super()
35 &AFFS_ROOT_TAIL(sb, sbi->s_root_bh)->disk_change); in affs_put_super()
36 affs_fix_checksum(sb, sbi->s_root_bh); in affs_put_super()
37 mark_buffer_dirty(sbi->s_root_bh); in affs_put_super()
40 kfree(sbi->s_prefix); in affs_put_super()
42 affs_brelse(sbi->s_root_bh); in affs_put_super()
43 kfree(sbi); in affs_put_super()
52 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_write_super() local
58 AFFS_ROOT_TAIL(sb, sbi->s_root_bh)->bm_flag = cpu_to_be32(clean); in affs_write_super()
[all …]
/fs/autofs4/
Dinode.c34 struct autofs_sb_info *sbi, mode_t mode) in autofs4_init_ino() argument
61 ino->sbi = sbi; in autofs4_init_ino()
104 static void autofs4_force_release(struct autofs_sb_info *sbi) in autofs4_force_release() argument
106 struct dentry *this_parent = sbi->sb->s_root; in autofs4_force_release()
109 if (!sbi->sb->s_root) in autofs4_force_release()
140 if (this_parent != sbi->sb->s_root) { in autofs4_force_release()
157 struct autofs_sb_info *sbi = autofs4_sbi(sb); in autofs4_kill_sb() local
165 if (!sbi) in autofs4_kill_sb()
169 autofs4_catatonic_mode(sbi); in autofs4_kill_sb()
172 autofs4_force_release(sbi); in autofs4_kill_sb()
[all …]
Dwaitq.c27 void autofs4_catatonic_mode(struct autofs_sb_info *sbi) in autofs4_catatonic_mode() argument
31 mutex_lock(&sbi->wq_mutex); in autofs4_catatonic_mode()
32 if (sbi->catatonic) { in autofs4_catatonic_mode()
33 mutex_unlock(&sbi->wq_mutex); in autofs4_catatonic_mode()
39 sbi->catatonic = 1; in autofs4_catatonic_mode()
40 wq = sbi->queues; in autofs4_catatonic_mode()
41 sbi->queues = NULL; /* Erase all wait queues */ in autofs4_catatonic_mode()
53 fput(sbi->pipe); /* Close the pipe */ in autofs4_catatonic_mode()
54 sbi->pipe = NULL; in autofs4_catatonic_mode()
55 sbi->pipefd = -1; in autofs4_catatonic_mode()
[all …]
Droot.c78 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); in autofs4_dir_open() local
83 if (autofs4_oz_mode(sbi)) in autofs4_dir_open()
108 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); in try_to_fill_dentry() local
123 status = autofs4_wait(sbi, dentry, NFY_MOUNT); in try_to_fill_dentry()
147 status = autofs4_wait(sbi, dentry, NFY_MOUNT); in try_to_fill_dentry()
173 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); in autofs4_follow_link() local
175 int oz_mode = autofs4_oz_mode(sbi); in autofs4_follow_link()
189 spin_lock(&sbi->fs_lock); in autofs4_follow_link()
191 spin_unlock(&sbi->fs_lock); in autofs4_follow_link()
197 spin_unlock(&sbi->fs_lock); in autofs4_follow_link()
[all …]
/fs/ufs/
Dcylinder.c31 struct ufs_sb_info * sbi = UFS_SB(sb); in ufs_read_cylinder() local
38 uspi = sbi->s_uspi; in ufs_read_cylinder()
39 ucpi = sbi->s_ucpi[bitmap_nr]; in ufs_read_cylinder()
40 ucg = (struct ufs_cylinder_group *)sbi->s_ucg[cgno]->b_data; in ufs_read_cylinder()
47 UCPI_UBH(ucpi)->bh[0] = sbi->s_ucg[cgno]; in ufs_read_cylinder()
51 sbi->s_cgno[bitmap_nr] = cgno; in ufs_read_cylinder()
73 brelse (sbi->s_ucg[j]); in ufs_read_cylinder()
74 sbi->s_cgno[bitmap_nr] = UFS_CGNO_EMPTY; in ufs_read_cylinder()
84 struct ufs_sb_info * sbi = UFS_SB(sb); in ufs_put_cylinder() local
92 uspi = sbi->s_uspi; in ufs_put_cylinder()
[all …]
/fs/hfsplus/
Doptions.c69 int hfsplus_parse_options(char *input, struct hfsplus_sb_info *sbi) in hfsplus_parse_options() argument
85 if (match_fourchar(&args[0], &sbi->creator)) { in hfsplus_parse_options()
91 if (match_fourchar(&args[0], &sbi->type)) { in hfsplus_parse_options()
101 sbi->umask = (umode_t)tmp; in hfsplus_parse_options()
108 sbi->uid = (uid_t)tmp; in hfsplus_parse_options()
115 sbi->gid = (gid_t)tmp; in hfsplus_parse_options()
118 if (match_int(&args[0], &sbi->part)) { in hfsplus_parse_options()
124 if (match_int(&args[0], &sbi->session)) { in hfsplus_parse_options()
130 if (sbi->nls) { in hfsplus_parse_options()
136 sbi->nls = load_nls(p); in hfsplus_parse_options()
[all …]
/fs/ext4/
Dsuper.c522 static int ext4_blkdev_remove(struct ext4_sb_info *sbi) in ext4_blkdev_remove() argument
527 bdev = sbi->journal_bdev; in ext4_blkdev_remove()
530 sbi->journal_bdev = NULL; in ext4_blkdev_remove()
540 static void dump_orphan_list(struct super_block *sb, struct ext4_sb_info *sbi) in dump_orphan_list() argument
545 le32_to_cpu(sbi->s_es->s_last_orphan)); in dump_orphan_list()
548 list_for_each(l, &sbi->s_orphan) { in dump_orphan_list()
560 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_put_super() local
561 struct ext4_super_block *es = sbi->s_es; in ext4_put_super()
567 if (sbi->s_journal) { in ext4_put_super()
568 err = jbd2_journal_destroy(sbi->s_journal); in ext4_put_super()
[all …]
/fs/minix/
Dinode.c36 struct minix_sb_info *sbi = minix_sb(sb); in minix_put_super() local
39 if (sbi->s_version != MINIX_V3) /* s_state is now out from V3 sb */ in minix_put_super()
40 sbi->s_ms->s_state = sbi->s_mount_state; in minix_put_super()
41 mark_buffer_dirty(sbi->s_sbh); in minix_put_super()
43 for (i = 0; i < sbi->s_imap_blocks; i++) in minix_put_super()
44 brelse(sbi->s_imap[i]); in minix_put_super()
45 for (i = 0; i < sbi->s_zmap_blocks; i++) in minix_put_super()
46 brelse(sbi->s_zmap[i]); in minix_put_super()
47 brelse (sbi->s_sbh); in minix_put_super()
48 kfree(sbi->s_imap); in minix_put_super()
[all …]
Dbitmap.c55 struct minix_sb_info *sbi = minix_sb(sb); in minix_free_block() local
60 if (block < sbi->s_firstdatazone || block >= sbi->s_nzones) { in minix_free_block()
64 zone = block - sbi->s_firstdatazone + 1; in minix_free_block()
67 if (zone >= sbi->s_zmap_blocks) { in minix_free_block()
71 bh = sbi->s_zmap[zone]; in minix_free_block()
83 struct minix_sb_info *sbi = minix_sb(inode->i_sb); in minix_new_block() local
87 for (i = 0; i < sbi->s_zmap_blocks; i++) { in minix_new_block()
88 struct buffer_head *bh = sbi->s_zmap[i]; in minix_new_block()
97 j += i * bits_per_zone + sbi->s_firstdatazone-1; in minix_new_block()
98 if (j < sbi->s_firstdatazone || j >= sbi->s_nzones) in minix_new_block()
[all …]
/fs/omfs/
Dinode.c27 struct omfs_sb_info *sbi = OMFS_SB(dir->i_sb); in omfs_new_inode() local
33 err = omfs_allocate_range(dir->i_sb, sbi->s_mirrors, sbi->s_mirrors, in omfs_new_inode()
49 inode->i_size = sbi->s_sys_blocksize; in omfs_new_inode()
95 struct omfs_sb_info *sbi = OMFS_SB(inode->i_sb); in omfs_write_inode() local
104 block = clus_to_blk(sbi, inode->i_ino); in omfs_write_inode()
122 oi->i_head.h_body_size = cpu_to_be32(sbi->s_sys_blocksize - in omfs_write_inode()
143 for (i = 1; i < sbi->s_mirrors; i++) { in omfs_write_inode()
145 (sbi->s_blocksize / sbi->s_sys_blocksize)); in omfs_write_inode()
189 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_iget() local
203 block = clus_to_blk(sbi, ino); in omfs_iget()
[all …]
Dbitmap.c11 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_count_free() local
14 for (i = 0; i < sbi->s_imap_size; i++) in omfs_count_free()
15 sum += nbits - bitmap_weight(sbi->s_imap[i], nbits); in omfs_count_free()
53 struct omfs_sb_info *sbi = OMFS_SB(sb); in set_run() local
56 bh = sb_bread(sb, clus_to_blk(sbi, sbi->s_bitmap_ino) + map); in set_run()
68 clus_to_blk(sbi, sbi->s_bitmap_ino) + map); in set_run()
73 set_bit(bit, sbi->s_imap[map]); in set_run()
76 clear_bit(bit, sbi->s_imap[map]); in set_run()
93 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_allocate_block() local
103 mutex_lock(&sbi->s_bitmap_lock); in omfs_allocate_block()
[all …]
/fs/fat/
Dinode.c62 struct msdos_sb_info *sbi = MSDOS_SB(sb); in __fat_get_block() local
84 offset = (unsigned long)iblock & (sbi->sec_per_clus - 1); in __fat_get_block()
92 mapped_blocks = sbi->sec_per_clus - offset; in __fat_get_block()
250 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat_hash_init() local
253 spin_lock_init(&sbi->inode_hash_lock); in fat_hash_init()
255 INIT_HLIST_HEAD(&sbi->inode_hashtable[i]); in fat_hash_init()
265 struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); in fat_attach() local
266 struct hlist_head *head = sbi->inode_hashtable + fat_hash(i_pos); in fat_attach()
268 spin_lock(&sbi->inode_hash_lock); in fat_attach()
271 spin_unlock(&sbi->inode_hash_lock); in fat_attach()
[all …]
Dfatent.c27 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat12_ent_blocknr() local
29 WARN_ON(entry < FAT_START_ENT || sbi->max_cluster <= entry); in fat12_ent_blocknr()
31 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat12_ent_blocknr()
37 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat_ent_blocknr() local
38 int bytes = (entry << sbi->fatent_shift); in fat_ent_blocknr()
39 WARN_ON(entry < FAT_START_ENT || sbi->max_cluster <= entry); in fat_ent_blocknr()
41 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat_ent_blocknr()
276 static inline void lock_fat(struct msdos_sb_info *sbi) in lock_fat() argument
278 mutex_lock(&sbi->fat_lock); in lock_fat()
281 static inline void unlock_fat(struct msdos_sb_info *sbi) in unlock_fat() argument
[all …]
/fs/hpfs/
Dsuper.c101 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_put_super() local
102 kfree(sbi->sb_cp_table); in hpfs_put_super()
103 kfree(sbi->sb_bmp_dir); in hpfs_put_super()
106 kfree(sbi); in hpfs_put_super()
138 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_statfs() local
142 sbi->sb_n_free = count_bitmaps(s); in hpfs_statfs()
143 sbi->sb_n_free_dnodes = hpfs_count_one_bitmap(s, sbi->sb_dmap); in hpfs_statfs()
147 buf->f_blocks = sbi->sb_fs_size; in hpfs_statfs()
148 buf->f_bfree = sbi->sb_n_free; in hpfs_statfs()
149 buf->f_bavail = sbi->sb_n_free; in hpfs_statfs()
[all …]
/fs/ext3/
Dsuper.c354 static int ext3_blkdev_remove(struct ext3_sb_info *sbi) in ext3_blkdev_remove() argument
359 bdev = sbi->journal_bdev; in ext3_blkdev_remove()
362 sbi->journal_bdev = NULL; in ext3_blkdev_remove()
372 static void dump_orphan_list(struct super_block *sb, struct ext3_sb_info *sbi) in dump_orphan_list() argument
377 le32_to_cpu(sbi->s_es->s_last_orphan)); in dump_orphan_list()
380 list_for_each(l, &sbi->s_orphan) { in dump_orphan_list()
392 struct ext3_sb_info *sbi = EXT3_SB(sb); in ext3_put_super() local
393 struct ext3_super_block *es = sbi->s_es; in ext3_put_super()
397 err = journal_destroy(sbi->s_journal); in ext3_put_super()
398 sbi->s_journal = NULL; in ext3_put_super()
[all …]
/fs/jfs/
Djfs_mount.c84 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount() local
104 sbi->ipaimap = ipaimap; in jfs_mount()
127 sbi->ipbmap = ipbmap; in jfs_mount()
148 if ((sbi->mntflag & JFS_BAD_SAIT) == 0) { in jfs_mount()
155 sbi->ipaimap2 = ipaimap2; in jfs_mount()
169 sbi->ipaimap2 = NULL; in jfs_mount()
187 sbi->ipimap = ipimap; in jfs_mount()
241 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount_rw() local
250 if (chkSuper(sb) || (sbi->state != FM_CLEAN)) in jfs_mount_rw()
253 truncate_inode_pages(sbi->ipimap->i_mapping, 0); in jfs_mount_rw()
[all …]
Djfs_umount.c52 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_umount() local
53 struct inode *ipbmap = sbi->ipbmap; in jfs_umount()
54 struct inode *ipimap = sbi->ipimap; in jfs_umount()
55 struct inode *ipaimap = sbi->ipaimap; in jfs_umount()
56 struct inode *ipaimap2 = sbi->ipaimap2; in jfs_umount()
67 if ((log = sbi->log)) in jfs_umount()
79 sbi->ipimap = NULL; in jfs_umount()
84 ipaimap2 = sbi->ipaimap2; in jfs_umount()
88 sbi->ipaimap2 = NULL; in jfs_umount()
94 ipaimap = sbi->ipaimap; in jfs_umount()
[all …]
/fs/autofs/
Droot.c47 struct autofs_sb_info *sbi; in autofs_root_readdir() local
53 sbi = autofs_sbi(inode->i_sb); in autofs_root_readdir()
54 dirhash = &sbi->dirhash; in autofs_root_readdir()
85 …c int try_to_fill_dentry(struct dentry *dentry, struct super_block *sb, struct autofs_sb_info *sbi) in try_to_fill_dentry() argument
91 if (!(ent = autofs_hash_lookup(&sbi->dirhash, &dentry->d_name))) { in try_to_fill_dentry()
108 status = autofs_wait(sbi, &dentry->d_name); in try_to_fill_dentry()
109 } while (!(ent = autofs_hash_lookup(&sbi->dirhash, &dentry->d_name))); in try_to_fill_dentry()
128 return !autofs_wait(sbi, &dentry->d_name); in try_to_fill_dentry()
133 if (!autofs_oz_mode(sbi)) { in try_to_fill_dentry()
134 autofs_update_usage(&sbi->dirhash,ent); in try_to_fill_dentry()
[all …]
Dinode.c25 struct autofs_sb_info *sbi = autofs_sbi(sb); in autofs_kill_sb() local
34 if (!sbi) in autofs_kill_sb()
37 if (!sbi->catatonic) in autofs_kill_sb()
38 autofs_catatonic_mode(sbi); /* Free wait queues, close pipe */ in autofs_kill_sb()
40 put_pid(sbi->oz_pgrp); in autofs_kill_sb()
42 autofs_hash_nuke(sbi); in autofs_kill_sb()
44 if (test_bit(n, sbi->symlink_bitmap)) in autofs_kill_sb()
45 kfree(sbi->symlink[n].data); in autofs_kill_sb()
140 struct autofs_sb_info *sbi; in autofs_fill_super() local
146 sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); in autofs_fill_super()
[all …]

1234