| /linux/fs/f2fs/ |
| H A D | super.c | 76 int f2fs_build_fault_attr(struct f2fs_sb_info *sbi, unsigned long rate, in f2fs_build_fault_attr() argument 79 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in f2fs_build_fault_attr() 91 f2fs_info(sbi, "build fault injection rate: %lu", rate); in f2fs_build_fault_attr() 98 f2fs_info(sbi, "build fault injection type: 0x%lx", type); in f2fs_build_fault_attr() 105 f2fs_info(sbi, "build fault timeout injection type: 0x%lx", type); in f2fs_build_fault_attr() 111 static void inject_timeout(struct f2fs_sb_info *sbi) in inject_timeout() argument 113 struct f2fs_fault_info *ffi = &F2FS_OPTION(sbi).fault_info; in inject_timeout() 144 void f2fs_simulate_lock_timeout(struct f2fs_sb_info *sbi) in f2fs_simulate_lock_timeout() argument 148 f2fs_lock_op(sbi, &lc); in f2fs_simulate_lock_timeout() 149 inject_timeout(sbi); in f2fs_simulate_lock_timeout() [all …]
|
| H A D | iostat.c | 20 static inline unsigned long long iostat_get_avg_bytes(struct f2fs_sb_info *sbi, in iostat_get_avg_bytes() argument 23 return sbi->iostat_count[type] ? div64_u64(sbi->iostat_bytes[type], in iostat_get_avg_bytes() 24 sbi->iostat_count[type]) : 0; in iostat_get_avg_bytes() 29 name":", sbi->iostat_bytes[type], \ 30 sbi->iostat_count[type], \ 31 iostat_get_avg_bytes(sbi, type)) 36 struct f2fs_sb_info *sbi = F2FS_SB(sb); in iostat_info_seq_show() local 38 if (!sbi->iostat_enable) in iostat_info_seq_show() 88 static inline void __record_iostat_latency(struct f2fs_sb_info *sbi) in __record_iostat_latency() argument 92 struct iostat_lat_info *io_lat = sbi->iostat_io_lat; in __record_iostat_latency() [all …]
|
| H A D | shrinker.c | 19 static unsigned long __count_nat_entries(struct f2fs_sb_info *sbi) in __count_nat_entries() argument 21 return NM_I(sbi)->nat_cnt[RECLAIMABLE_NAT]; in __count_nat_entries() 24 static unsigned long __count_free_nids(struct f2fs_sb_info *sbi) in __count_free_nids() argument 26 long count = NM_I(sbi)->nid_cnt[FREE_NID] - MAX_FREE_NIDS; in __count_free_nids() 31 static unsigned long __count_extent_cache(struct f2fs_sb_info *sbi, in __count_extent_cache() argument 34 struct extent_tree_info *eti = &sbi->extent_tree[type]; in __count_extent_cache() 43 struct f2fs_sb_info *sbi; in f2fs_shrink_count() local 50 sbi = list_entry(p, struct f2fs_sb_info, s_list); in f2fs_shrink_count() 53 if (!mutex_trylock(&sbi->umount_mutex)) { in f2fs_shrink_count() 60 count += __count_extent_cache(sbi, EX_READ); in f2fs_shrink_count() [all …]
|
| H A D | gc.h | 99 static inline block_t free_segs_blk_count_zoned(struct f2fs_sb_info *sbi) in free_segs_blk_count_zoned() argument 102 struct free_segmap_info *free_i = FREE_I(sbi); in free_segs_blk_count_zoned() 106 for (j = 0; j < MAIN_SEGS(sbi); j++) in free_segs_blk_count_zoned() 108 free_seg_blks += f2fs_usable_blks_in_seg(sbi, j); in free_segs_blk_count_zoned() 114 static inline block_t free_segs_blk_count(struct f2fs_sb_info *sbi) in free_segs_blk_count() argument 116 if (f2fs_sb_has_blkzoned(sbi)) in free_segs_blk_count() 117 return free_segs_blk_count_zoned(sbi); in free_segs_blk_count() 119 return SEGS_TO_BLKS(sbi, free_segments(sbi)); in free_segs_blk_count() 122 static inline block_t free_user_blocks(struct f2fs_sb_info *sbi) in free_user_blocks() argument 126 free_blks = free_segs_blk_count(sbi); in free_user_blocks() [all …]
|
| /linux/fs/autofs/ |
| H A D | inode.c | 12 struct autofs_info *autofs_new_ino(struct autofs_sb_info *sbi) in autofs_new_ino() argument 21 ino->sbi = sbi; in autofs_new_ino() 43 struct autofs_sb_info *sbi = autofs_sbi(sb); in autofs_kill_sb() local 51 if (sbi) { in autofs_kill_sb() 53 autofs_catatonic_mode(sbi); in autofs_kill_sb() 54 put_pid(sbi->oz_pgrp); in autofs_kill_sb() 59 if (sbi) in autofs_kill_sb() 60 kfree_rcu(sbi, rcu); in autofs_kill_sb() 65 struct autofs_sb_info *sbi in autofs_show_options() local 155 autofs_parse_fd(struct fs_context * fc,struct autofs_sb_info * sbi,struct fs_parameter * param,struct fs_parse_result * result) autofs_parse_fd() argument 195 struct autofs_sb_info *sbi = fc->s_fs_info; autofs_parse_param() local 243 struct autofs_sb_info *sbi; autofs_alloc_sbi() local 269 struct autofs_sb_info *sbi = fc->s_fs_info; autofs_validate_protocol() local 304 struct autofs_sb_info *sbi = s->s_fs_info; autofs_fill_super() local 368 struct autofs_sb_info *sbi = fc->s_fs_info; autofs_get_tree() local 384 struct autofs_sb_info *sbi = fc->s_fs_info; autofs_free_fc() local 406 struct autofs_sb_info *sbi; autofs_init_fs_context() local [all...] |
| H A D | root.c | 70 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_del_active() 74 spin_lock(&sbi->lookup_lock); in autofs_del_active() 76 spin_unlock(&sbi->lookup_lock); in autofs_del_active() 82 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_dir_open() 87 if (autofs_oz_mode(sbi)) in autofs_dir_open() 99 spin_lock(&sbi->lookup_lock); in autofs_dir_open() 101 spin_unlock(&sbi->lookup_lock); in autofs_dir_open() 104 spin_unlock(&sbi->lookup_lock); in autofs_dir_open() 113 struct autofs_sb_info *sbi = autofs_sbi(de->d_sb); in autofs_dentry_release() 120 if (sbi) { in autofs_dentry_release() 69 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); autofs_del_active() local 81 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); autofs_dir_open() local 112 struct autofs_sb_info *sbi = autofs_sbi(de->d_sb); autofs_dentry_release() local 133 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); autofs_lookup_active() local 188 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); autofs_lookup_expiring() local 247 struct autofs_sb_info *sbi = autofs_sbi(path->dentry->d_sb); autofs_mount_wait() local 292 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); autofs_mountpoint_changed() local 334 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); autofs_d_automount() local 430 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); autofs_d_manage() local 504 struct autofs_sb_info *sbi; autofs_lookup() local 558 struct autofs_sb_info *sbi = autofs_sbi(inode->i_sb); autofs_dir_permission() local 632 struct autofs_sb_info *sbi = autofs_sbi(dir->i_sb); autofs_dir_unlink() local 700 struct autofs_sb_info *sbi = autofs_sbi(dir->i_sb); autofs_dir_rmdir() local 733 struct autofs_sb_info *sbi = autofs_sbi(dir->i_sb); autofs_dir_mkdir() local 764 autofs_compat_get_set_timeout(struct autofs_sb_info * sbi,compat_ulong_t __user * p) autofs_compat_get_set_timeout() argument 789 autofs_get_set_timeout(struct autofs_sb_info * sbi,unsigned long __user * p) autofs_get_set_timeout() argument 814 autofs_get_protover(struct autofs_sb_info * sbi,int __user * p) autofs_get_protover() argument 821 autofs_get_protosubver(struct autofs_sb_info * sbi,int __user * p) autofs_get_protosubver() argument 862 struct autofs_sb_info *sbi = autofs_sbi(inode->i_sb); autofs_root_ioctl_unlocked() local [all...] |
| H A D | waitq.c | 15 void autofs_catatonic_mode(struct autofs_sb_info *sbi) in autofs_catatonic_mode() argument 19 mutex_lock(&sbi->wq_mutex); in autofs_catatonic_mode() 20 if (sbi->flags & AUTOFS_SBI_CATATONIC) { in autofs_catatonic_mode() 21 mutex_unlock(&sbi->wq_mutex); in autofs_catatonic_mode() 27 sbi->flags |= AUTOFS_SBI_CATATONIC; in autofs_catatonic_mode() 28 wq = sbi->queues; in autofs_catatonic_mode() 29 sbi->queues = NULL; /* Erase all wait queues */ in autofs_catatonic_mode() 40 fput(sbi->pipe); /* Close the pipe */ in autofs_catatonic_mode() 41 sbi->pipe = NULL; in autofs_catatonic_mode() 42 sbi->pipefd = -1; in autofs_catatonic_mode() [all …]
|
| /linux/fs/erofs/ |
| H A D | super.c | 128 struct erofs_sb_info *sbi = EROFS_SB(sb); in erofs_init_device() local 138 if (!sbi->devs->flatdev && !dif->path) { in erofs_init_device() 153 } else if (!sbi->devs->flatdev) { in erofs_init_device() 154 file = erofs_is_fileio_mode(sbi) ? in erofs_init_device() 164 if (!erofs_is_fileio_mode(sbi)) { in erofs_init_device() 171 if (!dif->dax_dev && test_opt(&sbi->opt, DAX_ALWAYS)) { in erofs_init_device() 174 clear_opt(&sbi->opt, DAX_ALWAYS); in erofs_init_device() 179 _48bit = erofs_sb_has_48bit(sbi); in erofs_init_device() 184 sbi->total_blocks += dif->blocks; 192 struct erofs_sb_info *sbi in erofs_scan_devices() 188 struct erofs_sb_info *sbi = EROFS_SB(sb); erofs_scan_devices() local 254 struct erofs_sb_info *sbi = EROFS_SB(sb); erofs_read_superblock() local 378 erofs_default_options(struct erofs_sb_info * sbi) erofs_default_options() argument 428 struct erofs_sb_info *sbi = fc->s_fs_info; erofs_fc_set_dax_mode() local 449 struct erofs_sb_info *sbi = fc->s_fs_info; erofs_fc_parse_param() local 617 struct erofs_sb_info *sbi = EROFS_SB(sb); erofs_set_sysfs_name() local 634 struct erofs_sb_info *sbi = EROFS_SB(sb); erofs_fc_fill_super() local 792 struct erofs_sb_info *sbi = fc->s_fs_info; erofs_fc_get_tree() local 821 struct erofs_sb_info *sbi = EROFS_SB(sb); erofs_fc_reconfigure() local 863 erofs_sb_free(struct erofs_sb_info * sbi) erofs_sb_free() argument 876 struct erofs_sb_info *sbi = fc->s_fs_info; erofs_fc_free() local 891 struct erofs_sb_info *sbi; erofs_init_fs_context() local 911 erofs_drop_internal_inodes(struct erofs_sb_info * sbi) erofs_drop_internal_inodes() argument 925 struct erofs_sb_info *sbi = EROFS_SB(sb); erofs_kill_sb() local 941 struct erofs_sb_info *const sbi = EROFS_SB(sb); erofs_put_super() local 1061 struct erofs_sb_info *sbi = EROFS_SB(sb); erofs_statfs() local 1081 struct erofs_sb_info *sbi = EROFS_SB(root->d_sb); erofs_show_options() local [all...] |
| /linux/fs/hfsplus/ |
| H A D | super.c | 122 struct hfsplus_sb_info *sbi = HFSPLUS_SB(inode->i_sb); in hfsplus_system_write_inode() local 123 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_system_write_inode() 130 tree = sbi->ext_tree; in hfsplus_system_write_inode() 134 tree = sbi->cat_tree; in hfsplus_system_write_inode() 144 tree = sbi->attr_tree; in hfsplus_system_write_inode() 151 set_bit(HFSPLUS_SB_WRITEBACKUP, &sbi->flags); in hfsplus_system_write_inode() 201 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); in hfsplus_commit_superblock() 202 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_commit_superblock() 208 mutex_lock(&sbi->vh_mutex); in hfsplus_commit_superblock() 209 mutex_lock(&sbi in hfsplus_commit_superblock() 198 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); hfsplus_commit_superblock() local 245 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); hfsplus_sync_fs() local 290 struct hfsplus_sb_info *sbi; delayed_sync_fs() local 305 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); hfsplus_mark_mdb_dirty() local 322 struct hfsplus_sb_info *sbi = container_of(p, struct hfsplus_sb_info, rcu); delayed_free() local 330 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); hfsplus_put_super() local 359 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); hfsplus_statfs() local 383 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); hfsplus_reconfigure() local 430 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); hfsplus_fill_super() local 699 struct hfsplus_sb_info *sbi; hfsplus_init_fs_context() local 716 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); hfsplus_kill_super() local [all...] |
| H A D | options.c | 65 struct hfsplus_sb_info *sbi = fc->s_fs_info; in hfsplus_parse_param() local 87 memcpy(&sbi->creator, param->string, 4); in hfsplus_parse_param() 94 memcpy(&sbi->type, param->string, 4); in hfsplus_parse_param() 97 sbi->umask = (umode_t)result.uint_32; in hfsplus_parse_param() 100 sbi->uid = result.uid; in hfsplus_parse_param() 101 set_bit(HFSPLUS_SB_UID, &sbi->flags); in hfsplus_parse_param() 104 sbi->gid = result.gid; in hfsplus_parse_param() 105 set_bit(HFSPLUS_SB_GID, &sbi->flags); in hfsplus_parse_param() 108 sbi->part = result.uint_32; in hfsplus_parse_param() 111 sbi->session = result.uint_32; in hfsplus_parse_param() [all …]
|
| /linux/fs/exfat/ |
| H A D | super.c | 28 static void exfat_free_iocharset(struct exfat_sb_info *sbi) in exfat_free_iocharset() argument 30 if (sbi->options.iocharset != exfat_default_iocharset) in exfat_free_iocharset() 31 kfree(sbi->options.iocharset); in exfat_free_iocharset() 46 struct exfat_sb_info *sbi = EXFAT_SB(sb); in exfat_put_super() local 48 mutex_lock(&sbi->s_lock); in exfat_put_super() 50 exfat_free_bitmap(sbi); in exfat_put_super() 51 brelse(sbi->boot_bh); in exfat_put_super() 52 mutex_unlock(&sbi->s_lock); in exfat_put_super() 58 struct exfat_sb_info *sbi = EXFAT_SB(sb); in exfat_statfs() local 62 buf->f_bsize = sbi in exfat_statfs() 74 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_set_vol_flags() local 104 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_set_volume_dirty() local 111 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_clear_volume_dirty() local 119 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_show_options() local 158 struct exfat_sb_info *sbi = sb->s_fs_info; exfat_force_shutdown() local 274 struct exfat_sb_info *sbi = fc->s_fs_info; exfat_parse_param() local 346 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_hash_init() local 357 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_read_root() local 398 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_calibrate_blocksize() local 433 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_read_boot_sector() local 594 struct exfat_sb_info *sbi = EXFAT_SB(sb); __exfat_fill_super() local 660 struct exfat_sb_info *sbi = sb->s_fs_info; exfat_fill_super() local 748 exfat_free_sbi(struct exfat_sb_info * sbi) exfat_free_sbi() argument 756 struct exfat_sb_info *sbi = fc->s_fs_info; exfat_free() local 766 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_reconfigure() local 816 struct exfat_sb_info *sbi; exfat_init_fs_context() local 853 struct exfat_sb_info *sbi = container_of(p, struct exfat_sb_info, rcu); delayed_free() local 862 struct exfat_sb_info *sbi = sb->s_fs_info; exfat_kill_sb() local [all...] |
| H A D | balloc.c | 33 struct exfat_sb_info *sbi = EXFAT_SB(sb); in exfat_test_bitmap_range() local 41 if (!is_valid_cluster(sbi, start) || !is_valid_cluster(sbi, end - 1)) in exfat_test_bitmap_range() 49 bitmap_le = (__le_long *)sbi->vol_amap[i]->b_data; in exfat_test_bitmap_range() 76 struct exfat_sb_info *sbi = EXFAT_SB(sb); in exfat_allocate_bitmap() local 82 sbi->map_clu = le32_to_cpu(ep->dentry.bitmap.start_clu); in exfat_allocate_bitmap() 84 need_map_size = ((EXFAT_DATA_CLUSTER_COUNT(sbi) - 1) / BITS_PER_BYTE) in exfat_allocate_bitmap() 96 sbi->map_sectors = ((need_map_size - 1) >> in exfat_allocate_bitmap() 98 sbi->vol_amap = kvmalloc_objs(struct buffer_head *, sbi in exfat_allocate_bitmap() 141 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_load_bitmap() local 175 exfat_free_bitmap(struct exfat_sb_info * sbi) exfat_free_bitmap() argument 189 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_set_bitmap() local 207 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_clear_bitmap() local 230 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_test_bitmap() local 257 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_find_free_bitmap() local 299 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_count_used_clusters() local 332 struct exfat_sb_info *sbi = EXFAT_SB(sb); exfat_trim_fs() local [all...] |
| /linux/fs/affs/ |
| H A D | bitmap.c | 41 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_free_block() local 49 if (block > sbi->s_partition_size) in affs_free_block() 52 blk = block - sbi->s_reserved; in affs_free_block() 53 bmap = blk / sbi->s_bmap_bits; in affs_free_block() 54 bit = blk % sbi->s_bmap_bits; in affs_free_block() 55 bm = &sbi->s_bitmap[bmap]; in affs_free_block() 57 mutex_lock(&sbi->s_bmlock); in affs_free_block() 59 bh = sbi->s_bmap_bh; in affs_free_block() 60 if (sbi->s_last_bmap != bmap) { in affs_free_block() 65 sbi in affs_free_block() 118 struct affs_sb_info *sbi; affs_alloc_block() local 251 struct affs_sb_info *sbi = AFFS_SB(sb); affs_init_bitmap() local 355 struct affs_sb_info *sbi = AFFS_SB(sb); affs_free_bitmap() local [all...] |
| H A D | super.c | 35 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_commit_super() local 36 struct buffer_head *bh = sbi->s_root_bh; in affs_commit_super() 52 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_put_super() local 55 cancel_delayed_work_sync(&sbi->sb_work); in affs_put_super() 67 struct affs_sb_info *sbi; in flush_superblock() local 70 sbi = container_of(work, struct affs_sb_info, sb_work.work); in flush_superblock() 71 sb = sbi->sb; in flush_superblock() 73 spin_lock(&sbi->work_lock); in flush_superblock() 74 sbi->work_queued = 0; in flush_superblock() 75 spin_unlock(&sbi in flush_superblock() 82 struct affs_sb_info *sbi = AFFS_SB(sb); affs_mark_sb_dirty() local 271 struct affs_sb_info *sbi = AFFS_SB(sb); affs_show_options() local 308 struct affs_sb_info *sbi; affs_fill_super() local 522 struct affs_sb_info *sbi = AFFS_SB(sb); affs_reconfigure() local 588 struct affs_sb_info *sbi = AFFS_SB(sb); affs_kill_sb() local 624 struct affs_sb_info *sbi = AFFS_SB(sb); affs_init_fs_context() local [all...] |
| /linux/fs/omfs/ |
| H A D | inode.c | 28 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_bread() local 29 if (block >= sbi->s_num_blocks) in omfs_bread() 32 return sb_bread(sb, clus_to_blk(sbi, block)); in omfs_bread() 41 struct omfs_sb_info *sbi = OMFS_SB(dir->i_sb); in omfs_new_inode() local 47 err = omfs_allocate_range(dir->i_sb, sbi->s_mirrors, sbi->s_mirrors, in omfs_new_inode() 61 inode->i_size = sbi->s_sys_blocksize; in omfs_new_inode() 107 struct omfs_sb_info *sbi = OMFS_SB(inode->i_sb); in __omfs_write_inode() local 132 oi->i_head.h_body_size = cpu_to_be32(sbi->s_sys_blocksize - in __omfs_write_inode() 153 for (i = 1; i < sbi in __omfs_write_inode() 206 struct omfs_sb_info *sbi = OMFS_SB(sb); omfs_iget() local 267 struct omfs_sb_info *sbi = OMFS_SB(sb); omfs_put_super() local 276 struct omfs_sb_info *sbi = OMFS_SB(s); omfs_statfs() local 297 struct omfs_sb_info *sbi = OMFS_SB(root->d_sb); omfs_show_options() local 339 struct omfs_sb_info *sbi = OMFS_SB(sb); omfs_get_imap() local 448 omfs_set_options(struct omfs_sb_info * sbi,struct omfs_mount_options * opts) omfs_set_options() argument 461 struct omfs_sb_info *sbi; omfs_fill_super() local [all...] |
| /linux/fs/ntfs3/ |
| H A D | super.c | 90 struct ntfs_sb_info *sbi = sb->s_fs_info; in ntfs_printk() local 93 if (!___ratelimit(&sbi->msg_ratelimit, "ntfs3")) in ntfs_printk() 117 struct ntfs_sb_info *sbi = sb->s_fs_info; in ntfs_inode_printk() local 123 if (!___ratelimit(&sbi->msg_ratelimit, "ntfs3")) in ntfs_inode_printk() 433 struct ntfs_sb_info *sbi = sb->s_fs_info; in ntfs_fs_reconfigure() local 444 if (ro_rw && (sbi->flags & NTFS_FLAGS_NEED_REPLAY)) { in ntfs_fs_reconfigure() 457 if (new_opts->nls != sbi->options->nls) in ntfs_fs_reconfigure() 462 if (ro_rw && (sbi->volume.flags & VOLUME_FLAG_DIRTY) && in ntfs_fs_reconfigure() 471 swap(sbi->options, fc->fs_private); in ntfs_fs_reconfigure() 495 struct ntfs_sb_info *sbi in ntfs3_volinfo() local 517 struct ntfs_sb_info *sbi = sb->s_fs_info; ntfs3_label_show() local 592 struct ntfs_sb_info *sbi = sb->s_fs_info; ntfs_create_procdir() local 602 struct ntfs_sb_info *sbi = sb->s_fs_info; ntfs_remove_procdir() local 666 ntfs3_put_sbi(struct ntfs_sb_info * sbi) ntfs3_put_sbi() argument 704 ntfs3_free_sbi(struct ntfs_sb_info * sbi) ntfs3_free_sbi() argument 719 struct ntfs_sb_info *sbi = sb->s_fs_info; ntfs_put_super() local 737 struct ntfs_sb_info *sbi = sb->s_fs_info; ntfs_statfs() local 763 struct ntfs_sb_info *sbi = sb->s_fs_info; ntfs_show_options() local 819 struct ntfs_sb_info *sbi = sb->s_fs_info; ntfs_sync_fs() local 964 struct ntfs_sb_info *sbi = sb->s_fs_info; ntfs_init_from_boot() local 1251 struct ntfs_sb_info *sbi = sb->s_fs_info; ntfs_fill_super() local 1722 struct ntfs_sb_info *sbi = sb->s_fs_info; ntfs_unmap_meta() local 1749 ntfs_discard(struct ntfs_sb_info * sbi,CLST lcn,CLST len) ntfs_discard() argument 1800 struct ntfs_sb_info *sbi = fc->s_fs_info; ntfs_fs_free() local 1829 struct ntfs_sb_info *sbi; __ntfs_init_fs_context() local 1887 struct ntfs_sb_info *sbi = sb->s_fs_info; ntfs3_kill_sb() local [all...] |
| /linux/fs/hpfs/ |
| H A D | super.c | 115 static void free_sbi(struct hpfs_sb_info *sbi) in free_sbi() argument 117 kfree(sbi->sb_cp_table); in free_sbi() 118 kfree(sbi->sb_bmp_dir); in free_sbi() 119 kfree(sbi); in free_sbi() 169 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_get_free_dnodes() local 170 if (sbi->sb_n_free_dnodes == (unsigned)-1) { in hpfs_get_free_dnodes() 171 unsigned c = hpfs_count_one_bitmap(s, sbi->sb_dmap); in hpfs_get_free_dnodes() 174 sbi->sb_n_free_dnodes = c; in hpfs_get_free_dnodes() 176 return sbi->sb_n_free_dnodes; in hpfs_get_free_dnodes() 182 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_statfs() local [all …]
|
| /linux/fs/ext2/ |
| H A D | super.c | 54 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_error() local 55 struct ext2_super_block *es = sbi->s_es; in ext2_error() 58 spin_lock(&sbi->s_lock); in ext2_error() 59 sbi->s_mount_state |= EXT2_ERROR_FS; in ext2_error() 61 spin_unlock(&sbi->s_lock); in ext2_error() 128 * This must be called with sbi->s_lock held. 175 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_put_super() local 179 ext2_xattr_destroy_cache(sbi->s_ea_block_cache); in ext2_put_super() 180 sbi->s_ea_block_cache = NULL; in ext2_put_super() 183 struct ext2_super_block *es = sbi in ext2_put_super() 265 struct ext2_sb_info *sbi = EXT2_SB(sb); ext2_show_options() local 650 struct ext2_sb_info *sbi = EXT2_SB(sb); ext2_setup_super() local 698 struct ext2_sb_info *sbi = EXT2_SB(sb); ext2_check_descriptors() local 805 struct ext2_sb_info *sbi = EXT2_SB(sb); descriptor_loc() local 822 ext2_set_options(struct fs_context * fc,struct ext2_sb_info * sbi) ext2_set_options() argument 882 struct ext2_sb_info * sbi; ext2_fill_super() local 1308 struct ext2_sb_info *sbi = EXT2_SB(sb); ext2_sync_fs() local 1329 struct ext2_sb_info *sbi = EXT2_SB(sb); ext2_freeze() local 1367 struct ext2_sb_info * sbi = EXT2_SB(sb); ext2_reconfigure() local 1447 struct ext2_sb_info *sbi = EXT2_SB(sb); ext2_statfs() local 1677 struct ext2_sb_info *sbi = EXT2_SB(sb); ext2_init_fs_context() local [all...] |
| /linux/fs/minix/ |
| H A D | inode.c | 63 struct minix_sb_info *sbi = minix_sb(sb); in minix_put_super() 66 if (sbi->s_version != MINIX_V3) /* s_state is now out from V3 sb */ in minix_put_super() 67 sbi->s_ms->s_state = sbi->s_mount_state; in minix_put_super() 68 mark_buffer_dirty(sbi->s_sbh); in minix_put_super() 70 for (i = 0; i < sbi->s_imap_blocks; i++) in minix_put_super() 71 brelse(sbi->s_imap[i]); in minix_put_super() 72 for (i = 0; i < sbi->s_zmap_blocks; i++) in minix_put_super() 73 brelse(sbi->s_zmap[i]); in minix_put_super() 74 brelse (sbi in minix_put_super() 61 struct minix_sb_info *sbi = minix_sb(sb); minix_put_super() local 136 struct minix_sb_info * sbi = sb->s_fs_info; minix_reconfigure() local 172 struct minix_sb_info *sbi = minix_sb(sb); minix_check_superblock() local 225 struct minix_sb_info *sbi; minix_fill_super() local 419 struct minix_sb_info *sbi = minix_sb(sb); minix_statfs() local [all...] |
| /linux/fs/jfs/ |
| H A D | jfs_mount.c | 73 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount() local 93 sbi->ipaimap = ipaimap; in jfs_mount() 116 sbi->ipbmap = ipbmap; in jfs_mount() 137 if ((sbi->mntflag & JFS_BAD_SAIT) == 0) { in jfs_mount() 144 sbi->ipaimap2 = ipaimap2; in jfs_mount() 158 sbi->ipaimap2 = NULL; in jfs_mount() 182 sbi->ipimap = ipimap; in jfs_mount() 223 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount_rw() local 232 if (chkSuper(sb) || (sbi->state != FM_CLEAN)) in jfs_mount_rw() 235 truncate_inode_pages(sbi->ipimap->i_mapping, 0); in jfs_mount_rw() [all …]
|
| /linux/fs/fat/ |
| H A D | inode.c | 124 struct msdos_sb_info *sbi = MSDOS_SB(sb); in __fat_get_block() local 147 offset = (unsigned long)iblock & (sbi->sec_per_clus - 1); in __fat_get_block() 160 mapped_blocks = sbi->sec_per_clus - offset; in __fat_get_block() 379 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat_hash_init() local 382 spin_lock_init(&sbi->inode_hash_lock); in fat_hash_init() 384 INIT_HLIST_HEAD(&sbi->inode_hashtable[i]); in fat_hash_init() 394 struct msdos_sb_info *sbi = MSDOS_SB(sb); in dir_hash_init() local 397 spin_lock_init(&sbi->dir_hash_lock); in dir_hash_init() 399 INIT_HLIST_HEAD(&sbi->dir_hashtable[i]); in dir_hash_init() 404 struct msdos_sb_info *sbi in fat_attach() local 433 struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); fat_detach() local 449 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_iget() local 479 struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); fat_calc_dir_size() local 515 struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); fat_fill_inode() local 582 fat_lock_build_inode(struct msdos_sb_info * sbi) fat_lock_build_inode() argument 588 fat_unlock_build_inode(struct msdos_sb_info * sbi) fat_unlock_build_inode() argument 674 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_set_state() local 727 struct msdos_sb_info *sbi = container_of(p, struct msdos_sb_info, rcu); delayed_free() local 736 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_put_super() local 812 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_reconfigure() local 832 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_statfs() local 857 struct msdos_sb_info *sbi = MSDOS_SB(sb); __fat_write_inode() local 950 struct msdos_sb_info *sbi = MSDOS_SB(root->d_sb); fat_show_options() local 1320 struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); fat_read_root() local 1355 struct msdos_sb_info *sbi = MSDOS_SB(sb); calc_fat_clusters() local 1544 struct msdos_sb_info *sbi; fat_fill_super() local [all...] |
| H A D | fatent.c | 26 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat12_ent_blocknr() local 28 WARN_ON(!fat_valid_entry(sbi, entry)); in fat12_ent_blocknr() 30 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat12_ent_blocknr() 36 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat_ent_blocknr() local 37 int bytes = (entry << sbi->fatent_shift); in fat_ent_blocknr() 38 WARN_ON(!fat_valid_entry(sbi, entry)); in fat_ent_blocknr() 40 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat_ent_blocknr() 283 static inline void lock_fat(struct msdos_sb_info *sbi) 285 mutex_lock(&sbi->fat_lock); in unlock_fat() 288 static inline void unlock_fat(struct msdos_sb_info *sbi) 279 lock_fat(struct msdos_sb_info * sbi) lock_fat() argument 284 unlock_fat(struct msdos_sb_info * sbi) unlock_fat() argument 291 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_ent_access_init() local 311 struct msdos_sb_info *sbi = MSDOS_SB(sb); mark_fsinfo_dirty() local 323 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_ent_update_ptr() local 352 struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); fat_ent_read() local 379 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_mirror_bhs() local 426 fat_ent_next(struct msdos_sb_info * sbi,struct fat_entry * fatent) fat_ent_next() argument 469 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_alloc_clusters() local 557 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_free_clusters() local 650 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_ra_init() local 690 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_ent_reada() local 718 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_count_free_clusters() local 757 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_trim_clusters() local 765 struct msdos_sb_info *sbi = MSDOS_SB(sb); fat_trim_fs() local [all...] |
| /linux/fs/ext4/ |
| H A D | super.c | 465 * 1. More than sbi->s_sb_update_sec (def: 1 hour) has passed since the last 467 * 2. More than sbi->s_sb_update_kb (def: 16MB) kbs have been written since the 474 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_maybe_update_superblock() local 475 struct ext4_super_block *es = sbi->s_es; in ext4_maybe_update_superblock() 476 journal_t *journal = sbi->s_journal; in ext4_maybe_update_superblock() 490 if (likely(now - last_update < sbi->s_sb_update_sec)) in ext4_maybe_update_superblock() 493 lifetime_write_kbytes = sbi->s_kbytes_written + in ext4_maybe_update_superblock() 495 sbi->s_sectors_written_start) >> 1); in ext4_maybe_update_superblock() 505 if (diff_size > sbi->s_sb_update_kb) in ext4_maybe_update_superblock() 645 struct ext4_sb_info *sbi in save_error_info() local 747 struct ext4_sb_info *sbi = container_of(work, struct ext4_sb_info, update_super_work() local 1104 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_mark_group_bitmap_corrupted() local 1162 dump_orphan_list(struct super_block * sb,struct ext4_sb_info * sbi) dump_orphan_list() argument 1197 get_qf_name(struct super_block * sb,struct ext4_sb_info * sbi,int type) get_qf_name() argument 1209 ext4_percpu_param_init(struct ext4_sb_info * sbi) ext4_percpu_param_init() argument 1242 ext4_percpu_param_destroy(struct ext4_sb_info * sbi) ext4_percpu_param_destroy() argument 1252 ext4_group_desc_free(struct ext4_sb_info * sbi) ext4_group_desc_free() argument 1263 ext4_flex_groups_free(struct ext4_sb_info * sbi) ext4_flex_groups_free() argument 1278 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_put_super() local 2504 struct ext4_sb_info *sbi = EXT4_SB(sb); parse_apply_sb_mount_options() local 2561 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_apply_quota_options() local 2597 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_check_quota_consistency() local 2714 const struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_check_test_dummy_encryption() local 2766 struct ext4_sb_info *sbi = fc->s_fs_info; ext4_check_opt_consistency() local 2847 struct ext4_sb_info *sbi = fc->s_fs_info; ext4_apply_options() local 2908 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_show_quota_options() local 2957 struct ext4_sb_info *sbi = EXT4_SB(sb); _ext4_show_options() local 3099 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_setup_super() local 3156 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_alloc_flex_bg_array() local 3203 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_fill_flex_info() local 3241 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_group_desc_csum() local 3302 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_check_descriptors() local 3544 struct ext4_sb_info *sbi = EXT4_SB(sb); descriptor_loc() local 3580 ext4_get_stripe_size(struct ext4_sb_info * sbi) ext4_get_stripe_size() argument 3680 struct ext4_sb_info *sbi = timer_container_of(sbi, t, s_err_report); print_daily_error_info() local 4033 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_register_li_request() local 4109 struct ext4_sb_info *sbi = EXT4_SB(sb); set_journal_csum_feature_set() local 4162 struct ext4_sb_info *sbi = EXT4_SB(sb); count_overhead() local 4224 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_calculate_overhead() local 4285 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_set_resv_clusters() local 4335 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_setup_csum_trigger() local 4341 ext4_free_sbi(struct ext4_sb_info * sbi) ext4_free_sbi() argument 4353 struct ext4_sb_info *sbi; ext4_alloc_sbi() local 4436 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_handle_clustersize() local 4497 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_atomic_write_init() local 4523 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_fast_commit_init() local 4548 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_inode_info_init() local 4667 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_init_metadata_csum() local 4705 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_check_feature_compatibility() local 4808 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_check_geometry() local 4889 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_group_desc_init() local 4932 rcu_dereference(sbi->s_group_desc)[i] = bh; ext4_group_desc_init() local 4948 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_load_and_init_journal() local 5063 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_has_journal_option() local 5088 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_set_max_mapping_order() local 5117 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_load_super() local 5226 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_hash_info_init() local 5267 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_block_group_meta_init() local 5321 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_is_stripe_incompatible() local 5329 struct ext4_sb_info *sbi = EXT4_SB(sb); __ext4_fill_super() local 5799 struct ext4_sb_info *sbi; ext4_fill_super() local 5858 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_init_journal_params() local 6208 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_update_super() local 6427 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_sync_fs() local 6547 struct ext4_sb_info *sbi = EXT4_SB(sb); __ext4_remount() local 6946 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_statfs() local 7481 struct ext4_sb_info *sbi = EXT4_SB(sb); ext4_kill_sb() local [all...] |
| H A D | sysfs.c | 66 static ssize_t session_write_kbytes_show(struct ext4_sb_info *sbi, char *buf) in session_write_kbytes_show() argument 68 struct super_block *sb = sbi->s_buddy_cache->i_sb; in session_write_kbytes_show() 72 sbi->s_sectors_written_start) >> 1); in session_write_kbytes_show() 75 static ssize_t lifetime_write_kbytes_show(struct ext4_sb_info *sbi, char *buf) in lifetime_write_kbytes_show() argument 77 struct super_block *sb = sbi->s_buddy_cache->i_sb; in lifetime_write_kbytes_show() 80 (unsigned long long)(sbi->s_kbytes_written + in lifetime_write_kbytes_show() 85 static ssize_t inode_readahead_blks_store(struct ext4_sb_info *sbi, in inode_readahead_blks_store() argument 98 sbi->s_inode_readahead_blks = t; in inode_readahead_blks_store() 102 static ssize_t reserved_clusters_store(struct ext4_sb_info *sbi, in reserved_clusters_store() argument 106 ext4_fsblk_t clusters = (ext4_blocks_count(sbi->s_es) >> in reserved_clusters_store() [all …]
|
| /linux/fs/zonefs/ |
| H A D | sysfs.c | 15 ssize_t (*show)(struct zonefs_sb_info *sbi, char *buf); 26 struct zonefs_sb_info *sbi = in zonefs_sysfs_attr_show() local 34 return zonefs_attr->show(sbi, buf); in zonefs_sysfs_attr_show() 37 static ssize_t max_wro_seq_files_show(struct zonefs_sb_info *sbi, char *buf) in max_wro_seq_files_show() argument 39 return sysfs_emit(buf, "%u\n", sbi->s_max_wro_seq_files); in max_wro_seq_files_show() 43 static ssize_t nr_wro_seq_files_show(struct zonefs_sb_info *sbi, char *buf) in nr_wro_seq_files_show() argument 45 return sysfs_emit(buf, "%d\n", atomic_read(&sbi->s_wro_seq_files)); in nr_wro_seq_files_show() 49 static ssize_t max_active_seq_files_show(struct zonefs_sb_info *sbi, char *buf) in max_active_seq_files_show() argument 51 return sysfs_emit(buf, "%u\n", sbi->s_max_active_seq_files); in max_active_seq_files_show() 55 static ssize_t nr_active_seq_files_show(struct zonefs_sb_info *sbi, char *buf) in nr_active_seq_files_show() argument [all …]
|