Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 25 of 523) sorted by relevance

12345678910>>...21

/fs/befs/
Ddebug.c29 befs_error(const struct super_block *sb, const char *fmt, ...) in befs_error() argument
37 pr_err("(%s): %pV\n", sb->s_id, &vaf); in befs_error()
42 befs_warning(const struct super_block *sb, const char *fmt, ...) in befs_warning() argument
50 pr_warn("(%s): %pV\n", sb->s_id, &vaf); in befs_warning()
55 befs_debug(const struct super_block *sb, const char *fmt, ...) in befs_debug() argument
65 pr_debug("(%s): %pV\n", sb->s_id, &vaf); in befs_debug()
72 befs_dump_inode(const struct super_block *sb, befs_inode *inode) in befs_dump_inode() argument
78 befs_debug(sb, "befs_inode information"); in befs_dump_inode()
80 befs_debug(sb, " magic1 %08x", fs32_to_cpu(sb, inode->magic1)); in befs_dump_inode()
82 tmp_run = fsrun_to_cpu(sb, inode->inode_num); in befs_dump_inode()
[all …]
Ddatastream.c24 static int befs_find_brun_direct(struct super_block *sb,
28 static int befs_find_brun_indirect(struct super_block *sb,
33 static int befs_find_brun_dblindirect(struct super_block *sb,
49 befs_read_datastream(struct super_block *sb, const befs_data_stream *ds, in befs_read_datastream() argument
56 befs_debug(sb, "---> %s %llu", __func__, pos); in befs_read_datastream()
57 block = pos >> BEFS_SB(sb)->block_shift; in befs_read_datastream()
59 *off = pos - (block << BEFS_SB(sb)->block_shift); in befs_read_datastream()
61 if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) { in befs_read_datastream()
62 befs_error(sb, "BeFS: Error finding disk addr of block %lu", in befs_read_datastream()
64 befs_debug(sb, "<--- %s ERROR", __func__); in befs_read_datastream()
[all …]
Dbtree.c91 static int befs_btree_seekleaf(struct super_block *sb, const befs_data_stream *ds,
96 static int befs_bt_read_super(struct super_block *sb, const befs_data_stream *ds,
99 static int befs_bt_read_node(struct super_block *sb, const befs_data_stream *ds,
111 static int befs_find_key(struct super_block *sb,
115 static char *befs_bt_get_key(struct super_block *sb,
134 befs_bt_read_super(struct super_block *sb, const befs_data_stream *ds, in befs_bt_read_super() argument
140 befs_debug(sb, "---> %s", __func__); in befs_bt_read_super()
142 bh = befs_read_datastream(sb, ds, 0, NULL); in befs_bt_read_super()
145 befs_error(sb, "Couldn't read index header."); in befs_bt_read_super()
149 befs_dump_index_entry(sb, od_sup); in befs_bt_read_super()
[all …]
Dlinuxvfs.c46 static struct inode *befs_alloc_inode(struct super_block *sb);
50 static int befs_utf2nls(struct super_block *sb, const char *in, int in_len,
52 static int befs_nls2utf(struct super_block *sb, const char *in, int in_len,
59 static struct dentry *befs_fh_to_dentry(struct super_block *sb,
61 static struct dentry *befs_fh_to_parent(struct super_block *sb,
134 struct super_block *sb = inode->i_sb; in befs_get_block() local
140 befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld", in befs_get_block()
143 befs_error(sb, "befs_get_block() was asked to write to " in befs_get_block()
149 res = befs_fblock2brun(sb, ds, block, &run); in befs_get_block()
151 befs_error(sb, in befs_get_block()
[all …]
/fs/
Dsuper.c60 struct super_block *sb; in super_cache_scan() local
67 sb = container_of(shrink, struct super_block, s_shrink); in super_cache_scan()
76 if (!trylock_super(sb)) in super_cache_scan()
79 if (sb->s_op->nr_cached_objects) in super_cache_scan()
80 fs_objects = sb->s_op->nr_cached_objects(sb, sc); in super_cache_scan()
82 inodes = list_lru_shrink_count(&sb->s_inode_lru, sc); in super_cache_scan()
83 dentries = list_lru_shrink_count(&sb->s_dentry_lru, sc); in super_cache_scan()
101 freed = prune_dcache_sb(sb, sc); in super_cache_scan()
103 freed += prune_icache_sb(sb, sc); in super_cache_scan()
107 freed += sb->s_op->free_cached_objects(sb, sc); in super_cache_scan()
[all …]
/fs/hfs/
Dmdb.c32 static int hfs_get_last_session(struct super_block *sb, in hfs_get_last_session() argument
41 *size = i_size_read(sb->s_bdev->bd_inode) >> 9; in hfs_get_last_session()
43 if (HFS_SB(sb)->session >= 0) { in hfs_get_last_session()
44 te.cdte_track = HFS_SB(sb)->session; in hfs_get_last_session()
46 res = ioctl_by_bdev(sb->s_bdev, CDROMREADTOCENTRY, (unsigned long)&te); in hfs_get_last_session()
55 res = ioctl_by_bdev(sb->s_bdev, CDROMMULTISESSION, (unsigned long)&ms_info); in hfs_get_last_session()
67 int hfs_mdb_get(struct super_block *sb) in hfs_mdb_get() argument
79 size = sb_min_blocksize(sb, HFS_SECTOR_SIZE); in hfs_mdb_get()
83 if (hfs_get_last_session(sb, &part_start, &part_size)) in hfs_mdb_get()
87 bh = sb_bread512(sb, part_start + HFS_MDB_BLK, mdb); in hfs_mdb_get()
[all …]
/fs/ext4/
Dsuper.c65 static int ext4_commit_super(struct super_block *sb, int sync);
66 static void ext4_mark_recovery_complete(struct super_block *sb,
68 static void ext4_clear_journal_err(struct super_block *sb,
70 static int ext4_sync_fs(struct super_block *sb, int wait);
71 static int ext4_remount(struct super_block *sb, int *flags, char *data);
73 static int ext4_unfreeze(struct super_block *sb);
74 static int ext4_freeze(struct super_block *sb);
77 static inline int ext2_feature_set_ok(struct super_block *sb);
78 static inline int ext3_feature_set_ok(struct super_block *sb);
79 static int ext4_feature_set_ok(struct super_block *sb, int readonly);
[all …]
Dballoc.c26 static unsigned ext4_num_base_meta_clusters(struct super_block *sb,
35 ext4_group_t ext4_get_group_number(struct super_block *sb, in ext4_get_group_number() argument
40 if (test_opt2(sb, STD_GROUP_SIZE)) in ext4_get_group_number()
42 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) >> in ext4_get_group_number()
43 (EXT4_BLOCK_SIZE_BITS(sb) + EXT4_CLUSTER_BITS(sb) + 3); in ext4_get_group_number()
45 ext4_get_group_no_and_offset(sb, block, &group, NULL); in ext4_get_group_number()
53 void ext4_get_group_no_and_offset(struct super_block *sb, ext4_fsblk_t blocknr, in ext4_get_group_no_and_offset() argument
56 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_get_group_no_and_offset()
60 offset = do_div(blocknr, EXT4_BLOCKS_PER_GROUP(sb)) >> in ext4_get_group_no_and_offset()
61 EXT4_SB(sb)->s_cluster_bits; in ext4_get_group_no_and_offset()
[all …]
Dialloc.c79 static int ext4_validate_inode_bitmap(struct super_block *sb, in ext4_validate_inode_bitmap() argument
85 struct ext4_group_info *grp = ext4_get_group_info(sb, block_group); in ext4_validate_inode_bitmap()
86 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_validate_inode_bitmap()
93 ext4_lock_group(sb, block_group); in ext4_validate_inode_bitmap()
96 blk = ext4_inode_bitmap(sb, desc); in ext4_validate_inode_bitmap()
97 if (!ext4_inode_bitmap_csum_verify(sb, block_group, desc, bh, in ext4_validate_inode_bitmap()
98 EXT4_INODES_PER_GROUP(sb) / 8)) { in ext4_validate_inode_bitmap()
99 ext4_unlock_group(sb, block_group); in ext4_validate_inode_bitmap()
100 ext4_error(sb, "Corrupt inode bitmap - block_group = %u, " in ext4_validate_inode_bitmap()
102 grp = ext4_get_group_info(sb, block_group); in ext4_validate_inode_bitmap()
[all …]
Dresize.c47 int ext4_resize_begin(struct super_block *sb) in ext4_resize_begin() argument
49 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_resize_begin()
61 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) { in ext4_resize_begin()
62 ext4_warning(sb, "won't resize using backup superblock at %llu", in ext4_resize_begin()
63 (unsigned long long)EXT4_SB(sb)->s_sbh->b_blocknr); in ext4_resize_begin()
71 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { in ext4_resize_begin()
72 ext4_warning(sb, "There are errors in the filesystem, " in ext4_resize_begin()
78 &EXT4_SB(sb)->s_ext4_flags)) in ext4_resize_begin()
84 void ext4_resize_end(struct super_block *sb) in ext4_resize_end() argument
86 clear_bit_unlock(EXT4_FLAGS_RESIZING, &EXT4_SB(sb)->s_ext4_flags); in ext4_resize_end()
[all …]
Dmmp.c11 static __le32 ext4_mmp_csum(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum() argument
13 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mmp_csum()
22 static int ext4_mmp_csum_verify(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum_verify() argument
24 if (!ext4_has_metadata_csum(sb)) in ext4_mmp_csum_verify()
27 return mmp->mmp_checksum == ext4_mmp_csum(sb, mmp); in ext4_mmp_csum_verify()
30 static void ext4_mmp_csum_set(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum_set() argument
32 if (!ext4_has_metadata_csum(sb)) in ext4_mmp_csum_set()
35 mmp->mmp_checksum = ext4_mmp_csum(sb, mmp); in ext4_mmp_csum_set()
42 static int write_mmp_block(struct super_block *sb, struct buffer_head *bh) in write_mmp_block() argument
50 sb_start_write(sb); in write_mmp_block()
[all …]
/fs/ext2/
Dsuper.c40 static void ext2_write_super(struct super_block *sb);
41 static int ext2_remount (struct super_block * sb, int * flags, char * data);
43 static int ext2_sync_fs(struct super_block *sb, int wait);
44 static int ext2_freeze(struct super_block *sb);
45 static int ext2_unfreeze(struct super_block *sb);
47 void ext2_error(struct super_block *sb, const char *function, in ext2_error() argument
52 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_error()
55 if (!sb_rdonly(sb)) { in ext2_error()
60 ext2_sync_super(sb, es, 1); in ext2_error()
69 sb->s_id, function, &vaf); in ext2_error()
[all …]
Dialloc.c47 read_inode_bitmap(struct super_block * sb, unsigned long block_group) in read_inode_bitmap() argument
52 desc = ext2_get_group_desc(sb, block_group, NULL); in read_inode_bitmap()
56 bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap()
58 ext2_error(sb, "read_inode_bitmap", in read_inode_bitmap()
66 static void ext2_release_inode(struct super_block *sb, int group, int dir) in ext2_release_inode() argument
71 desc = ext2_get_group_desc(sb, group, &bh); in ext2_release_inode()
73 ext2_error(sb, "ext2_release_inode", in ext2_release_inode()
78 spin_lock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode()
82 spin_unlock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode()
84 percpu_counter_dec(&EXT2_SB(sb)->s_dirs_counter); in ext2_release_inode()
[all …]
/fs/ufs/
Dsuper.c97 static struct inode *ufs_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation) in ufs_nfs_get_inode() argument
99 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; in ufs_nfs_get_inode()
105 inode = ufs_iget(sb, ino); in ufs_nfs_get_inode()
115 static struct dentry *ufs_fh_to_dentry(struct super_block *sb, struct fid *fid, in ufs_fh_to_dentry() argument
118 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, ufs_nfs_get_inode); in ufs_fh_to_dentry()
121 static struct dentry *ufs_fh_to_parent(struct super_block *sb, struct fid *fid, in ufs_fh_to_parent() argument
124 return generic_fh_to_parent(sb, fid, fh_len, fh_type, ufs_nfs_get_inode); in ufs_fh_to_parent()
148 static void ufs_print_super_stuff(struct super_block *sb, in ufs_print_super_stuff() argument
153 u32 magic = fs32_to_cpu(sb, usb3->fs_magic); in ufs_print_super_stuff()
157 if (fs32_to_cpu(sb, usb3->fs_magic) == UFS2_MAGIC) { in ufs_print_super_stuff()
[all …]
Dballoc.c41 struct super_block * sb; in ufs_free_fragments() local
48 sb = inode->i_sb; in ufs_free_fragments()
49 uspi = UFS_SB(sb)->s_uspi; in ufs_free_fragments()
55 ufs_error (sb, "ufs_free_fragments", "internal error"); in ufs_free_fragments()
57 mutex_lock(&UFS_SB(sb)->s_lock); in ufs_free_fragments()
62 ufs_panic (sb, "ufs_free_fragments", "freeing blocks are outside device"); in ufs_free_fragments()
66 ucpi = ufs_load_cylinder (sb, cgno); in ufs_free_fragments()
70 if (!ufs_cg_chkmagic(sb, ucg)) { in ufs_free_fragments()
71 ufs_panic (sb, "ufs_free_fragments", "internal error, bad magic number on cg %u", cgno); in ufs_free_fragments()
78 ufs_fragacct (sb, blkmap, ucg->cg_frsum, -1); in ufs_free_fragments()
[all …]
Dialloc.c59 struct super_block * sb; in ufs_free_inode() local
68 sb = inode->i_sb; in ufs_free_inode()
69 uspi = UFS_SB(sb)->s_uspi; in ufs_free_inode()
73 mutex_lock(&UFS_SB(sb)->s_lock); in ufs_free_inode()
76 ufs_warning(sb, "ufs_free_inode", "reserved inode or nonexistent inode %u\n", ino); in ufs_free_inode()
77 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_free_inode()
83 ucpi = ufs_load_cylinder (sb, cg); in ufs_free_inode()
85 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_free_inode()
89 if (!ufs_cg_chkmagic(sb, ucg)) in ufs_free_inode()
90 ufs_panic (sb, "ufs_free_fragments", "internal error, bad cg magic number"); in ufs_free_inode()
[all …]
/fs/reiserfs/
Djournal.c94 struct super_block *sb);
112 struct super_block *sb,
115 static void init_journal_hash(struct super_block *sb) in init_journal_hash() argument
117 struct reiserfs_journal *journal = SB_JOURNAL(sb); in init_journal_hash()
138 *sb) in allocate_bitmap_node()
147 bn->data = kzalloc(sb->s_blocksize, GFP_NOFS); in allocate_bitmap_node()
157 static struct reiserfs_bitmap_node *get_bitmap_node(struct super_block *sb) in get_bitmap_node() argument
159 struct reiserfs_journal *journal = SB_JOURNAL(sb); in get_bitmap_node()
169 memset(bn->data, 0, sb->s_blocksize); in get_bitmap_node()
173 bn = allocate_bitmap_node(sb); in get_bitmap_node()
[all …]
Dprocfs.c28 struct super_block *sb = m->private; in show_version() local
31 if (REISERFS_SB(sb)->s_properties & (1 << REISERFS_3_6)) { in show_version()
33 } else if (REISERFS_SB(sb)->s_properties & (1 << REISERFS_3_5)) { in show_version()
63 #define MAP( i ) D4C( objectid_map( sb, rs )[ i ] )
72 struct super_block *sb = m->private; in show_super() local
73 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_super()
104 reiserfs_r5_hash(sb) ? "FORCE_R5 " : "", in show_super()
105 reiserfs_rupasov_hash(sb) ? "FORCE_RUPASOV " : "", in show_super()
106 reiserfs_tea_hash(sb) ? "FORCE_TEA " : "", in show_super()
107 reiserfs_hash_detect(sb) ? "DETECT_HASH " : "", in show_super()
[all …]
/fs/kernfs/
Dmount.c25 static int kernfs_sop_remount_fs(struct super_block *sb, int *flags, char *data) in kernfs_sop_remount_fs() argument
27 struct kernfs_root *root = kernfs_info(sb)->root; in kernfs_sop_remount_fs()
87 static struct inode *kernfs_fh_get_inode(struct super_block *sb, in kernfs_fh_get_inode() argument
90 struct kernfs_super_info *info = kernfs_info(sb); in kernfs_fh_get_inode()
100 inode = kernfs_get_inode(sb, kn); in kernfs_fh_get_inode()
113 static struct dentry *kernfs_fh_to_dentry(struct super_block *sb, struct fid *fid, in kernfs_fh_to_dentry() argument
116 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in kernfs_fh_to_dentry()
120 static struct dentry *kernfs_fh_to_parent(struct super_block *sb, struct fid *fid, in kernfs_fh_to_parent() argument
123 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in kernfs_fh_to_parent()
147 struct kernfs_root *kernfs_root_from_sb(struct super_block *sb) in kernfs_root_from_sb() argument
[all …]
/fs/jfs/
Dsuper.c75 static void jfs_handle_error(struct super_block *sb) in jfs_handle_error() argument
77 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_handle_error()
79 if (sb_rdonly(sb)) in jfs_handle_error()
82 updateSuper(sb, FM_DIRTY); in jfs_handle_error()
86 sb->s_id); in jfs_handle_error()
89 sb->s_id); in jfs_handle_error()
90 sb->s_flags |= MS_RDONLY; in jfs_handle_error()
96 void jfs_error(struct super_block *sb, const char *fmt, ...) in jfs_error() argument
107 sb->s_id, __builtin_return_address(0), &vaf); in jfs_error()
111 jfs_handle_error(sb); in jfs_error()
[all …]
/fs/quota/
Dquota.c23 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument
47 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission()
50 static void quota_sync_one(struct super_block *sb, void *arg) in quota_sync_one() argument
54 if (sb->s_qcop && sb->s_qcop->quota_sync && in quota_sync_one()
55 (sb->s_quota_types & (1 << type))) in quota_sync_one()
56 sb->s_qcop->quota_sync(sb, type); in quota_sync_one()
84 static int quota_quotaon(struct super_block *sb, int type, qid_t id, in quota_quotaon() argument
87 if (!sb->s_qcop->quota_on && !sb->s_qcop->quota_enable) in quota_quotaon()
89 if (sb->s_qcop->quota_enable) in quota_quotaon()
90 return sb->s_qcop->quota_enable(sb, qtype_enforce_flag(type)); in quota_quotaon()
[all …]
/fs/udf/
Dsuper.c106 struct logicalVolIntegrityDescImpUse *udf_sb_lvidiu(struct super_block *sb) in udf_sb_lvidiu() argument
112 if (!UDF_SB(sb)->s_lvid_bh) in udf_sb_lvidiu()
114 lvid = (struct logicalVolIntegrityDesc *)UDF_SB(sb)->s_lvid_bh->b_data; in udf_sb_lvidiu()
116 if ((sb->s_blocksize - sizeof(struct logicalVolIntegrityDescImpUse) - in udf_sb_lvidiu()
119 udf_err(sb, "Logical volume integrity descriptor corrupted " in udf_sb_lvidiu()
146 static struct inode *udf_alloc_inode(struct super_block *sb) in udf_alloc_inode() argument
265 static int udf_sb_alloc_partition_maps(struct super_block *sb, u32 count) in udf_sb_alloc_partition_maps() argument
267 struct udf_sb_info *sbi = UDF_SB(sb); in udf_sb_alloc_partition_maps()
320 static void udf_sb_free_partitions(struct super_block *sb) in udf_sb_free_partitions() argument
322 struct udf_sb_info *sbi = UDF_SB(sb); in udf_sb_free_partitions()
[all …]
Dballoc.c34 static int read_block_bitmap(struct super_block *sb, in read_block_bitmap() argument
43 loc.partitionReferenceNum = UDF_SB(sb)->s_partition; in read_block_bitmap()
45 bh = udf_tread(sb, udf_get_lb_pblock(sb, &loc, block)); in read_block_bitmap()
53 static int __load_block_bitmap(struct super_block *sb, in __load_block_bitmap() argument
68 retval = read_block_bitmap(sb, bitmap, block_group, block_group); in __load_block_bitmap()
75 static inline int load_block_bitmap(struct super_block *sb, in load_block_bitmap() argument
81 slot = __load_block_bitmap(sb, bitmap, block_group); in load_block_bitmap()
92 static void udf_add_free_space(struct super_block *sb, u16 partition, u32 cnt) in udf_add_free_space() argument
94 struct udf_sb_info *sbi = UDF_SB(sb); in udf_add_free_space()
102 udf_updated_lvid(sb); in udf_add_free_space()
[all …]
/fs/nilfs2/
Dsuper.c71 static int nilfs_setup_super(struct super_block *sb, int is_mount);
72 static int nilfs_remount(struct super_block *sb, int *flags, char *data);
74 void __nilfs_msg(struct super_block *sb, const char *level, const char *fmt, in __nilfs_msg() argument
83 if (sb) in __nilfs_msg()
84 printk("%sNILFS (%s): %pV\n", level, sb->s_id, &vaf); in __nilfs_msg()
90 static void nilfs_set_error(struct super_block *sb) in nilfs_set_error() argument
92 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_set_error()
98 sbp = nilfs_prepare_super(sb, 0); in nilfs_set_error()
103 nilfs_commit_super(sb, NILFS_SB_COMMIT_ALL); in nilfs_set_error()
122 void __nilfs_error(struct super_block *sb, const char *function, in __nilfs_error() argument
[all …]
/fs/affs/
Dsuper.c28 static int affs_remount (struct super_block *sb, int *flags, char *data);
31 affs_commit_super(struct super_block *sb, int wait) in affs_commit_super() argument
33 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_commit_super()
35 struct affs_root_tail *tail = AFFS_ROOT_TAIL(sb, bh); in affs_commit_super()
39 affs_fix_checksum(sb, bh); in affs_commit_super()
48 affs_put_super(struct super_block *sb) in affs_put_super() argument
50 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_put_super()
57 affs_sync_fs(struct super_block *sb, int wait) in affs_sync_fs() argument
59 affs_commit_super(sb, wait); in affs_sync_fs()
66 struct super_block *sb; in flush_superblock() local
[all …]

12345678910>>...21