/fs/befs/ |
D | debug.c | 29 befs_error(const struct super_block *sb, const char *fmt, ...) in befs_error() argument 42 printk(KERN_ERR "BeFS(%s): %s\n", sb->s_id, err_buf); in befs_error() 47 befs_warning(const struct super_block *sb, const char *fmt, ...) in befs_warning() argument 60 printk(KERN_WARNING "BeFS(%s): %s\n", sb->s_id, err_buf); in befs_warning() 66 befs_debug(const struct super_block *sb, const char *fmt, ...) in befs_debug() argument 73 if (BEFS_SB(sb)->mount_opts.debug) { in befs_debug() 85 printk(KERN_DEBUG "BeFS(%s): %s\n", sb->s_id, err_buf); in befs_debug() 94 befs_dump_inode(const struct super_block *sb, befs_inode * inode) in befs_dump_inode() argument 100 befs_debug(sb, "befs_inode information"); in befs_dump_inode() 102 befs_debug(sb, " magic1 %08x", fs32_to_cpu(sb, inode->magic1)); in befs_dump_inode() [all …]
|
D | datastream.c | 23 static int befs_find_brun_direct(struct super_block *sb, 27 static int befs_find_brun_indirect(struct super_block *sb, 32 static int befs_find_brun_dblindirect(struct super_block *sb, 48 befs_read_datastream(struct super_block *sb, befs_data_stream * ds, in befs_read_datastream() argument 55 befs_debug(sb, "---> befs_read_datastream() %Lu", pos); in befs_read_datastream() 56 block = pos >> BEFS_SB(sb)->block_shift; in befs_read_datastream() 58 *off = pos - (block << BEFS_SB(sb)->block_shift); in befs_read_datastream() 60 if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) { in befs_read_datastream() 61 befs_error(sb, "BeFS: Error finding disk addr of block %lu", in befs_read_datastream() 63 befs_debug(sb, "<--- befs_read_datastream() ERROR"); in befs_read_datastream() [all …]
|
D | btree.c | 91 static int befs_btree_seekleaf(struct super_block *sb, befs_data_stream * ds, 96 static int befs_bt_read_super(struct super_block *sb, befs_data_stream * ds, 99 static int befs_bt_read_node(struct super_block *sb, befs_data_stream * ds, 110 static int befs_find_key(struct super_block *sb, befs_btree_node * node, 113 static char *befs_bt_get_key(struct super_block *sb, befs_btree_node * node, 134 befs_bt_read_super(struct super_block *sb, befs_data_stream * ds, in befs_bt_read_super() argument 140 befs_debug(sb, "---> befs_btree_read_super()"); 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 …]
|
D | linuxvfs.c | 40 static struct inode *befs_alloc_inode(struct super_block *sb); 46 static int befs_utf2nls(struct super_block *sb, const char *in, int in_len, 48 static int befs_nls2utf(struct super_block *sb, const char *in, int in_len, 122 struct super_block *sb = inode->i_sb; in befs_get_block() local 128 befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld", in befs_get_block() 132 befs_error(sb, "befs_get_block() was asked for a block " in befs_get_block() 139 befs_error(sb, "befs_get_block() was asked to write to " in befs_get_block() 144 res = befs_fblock2brun(sb, ds, block, &run); in befs_get_block() 146 befs_error(sb, in befs_get_block() 152 disk_off = (ulong) iaddr2blockno(sb, &run); in befs_get_block() [all …]
|
/fs/hfs/ |
D | mdb.c | 32 static int hfs_get_last_session(struct super_block *sb, in hfs_get_last_session() argument 41 *size = sb->s_bdev->bd_inode->i_size >> 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/ |
D | super.c | 58 struct super_block *sb; in prune_super() local 62 sb = container_of(shrink, struct super_block, s_shrink); in prune_super() 71 if (!grab_super_passive(sb)) in prune_super() 74 if (sb->s_op && sb->s_op->nr_cached_objects) in prune_super() 75 fs_objects = sb->s_op->nr_cached_objects(sb); in prune_super() 77 total_objects = sb->s_nr_dentry_unused + in prune_super() 78 sb->s_nr_inodes_unused + fs_objects + 1; in prune_super() 85 dentries = (sc->nr_to_scan * sb->s_nr_dentry_unused) / in prune_super() 87 inodes = (sc->nr_to_scan * sb->s_nr_inodes_unused) / in prune_super() 96 prune_dcache_sb(sb, dentries); in prune_super() [all …]
|
/fs/ext4/ |
D | super.c | 67 static int ext4_commit_super(struct super_block *sb, int sync); 68 static void ext4_mark_recovery_complete(struct super_block *sb, 70 static void ext4_clear_journal_err(struct super_block *sb, 72 static int ext4_sync_fs(struct super_block *sb, int wait); 73 static int ext4_remount(struct super_block *sb, int *flags, char *data); 75 static int ext4_unfreeze(struct super_block *sb); 76 static int ext4_freeze(struct super_block *sb); 79 static inline int ext2_feature_set_ok(struct super_block *sb); 80 static inline int ext3_feature_set_ok(struct super_block *sb); 81 static int ext4_feature_set_ok(struct super_block *sb, int readonly); [all …]
|
D | balloc.c | 26 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 …]
|
D | resize.c | 19 int ext4_resize_begin(struct super_block *sb) in ext4_resize_begin() argument 30 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { in ext4_resize_begin() 31 ext4_warning(sb, "There are errors in the filesystem, " in ext4_resize_begin() 36 if (test_and_set_bit_lock(EXT4_RESIZING, &EXT4_SB(sb)->s_resize_flags)) in ext4_resize_begin() 42 void ext4_resize_end(struct super_block *sb) in ext4_resize_end() argument 44 clear_bit_unlock(EXT4_RESIZING, &EXT4_SB(sb)->s_resize_flags); in ext4_resize_end() 48 static ext4_group_t ext4_meta_bg_first_group(struct super_block *sb, in ext4_meta_bg_first_group() argument 50 return (group >> EXT4_DESC_PER_BLOCK_BITS(sb)) << in ext4_meta_bg_first_group() 51 EXT4_DESC_PER_BLOCK_BITS(sb); in ext4_meta_bg_first_group() 54 static ext4_fsblk_t ext4_meta_bg_first_block_no(struct super_block *sb, in ext4_meta_bg_first_block_no() argument [all …]
|
D | ialloc.c | 68 static unsigned ext4_init_inode_bitmap(struct super_block *sb, in ext4_init_inode_bitmap() argument 74 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_init_inode_bitmap() 79 if (!ext4_group_desc_csum_verify(sb, block_group, gdp)) { in ext4_init_inode_bitmap() 80 ext4_error(sb, "Checksum bad for group %u", block_group); in ext4_init_inode_bitmap() 81 grp = ext4_get_group_info(sb, block_group); in ext4_init_inode_bitmap() 88 count = ext4_free_inodes_count(sb, gdp); in ext4_init_inode_bitmap() 96 memset(bh->b_data, 0, (EXT4_INODES_PER_GROUP(sb) + 7) / 8); in ext4_init_inode_bitmap() 97 ext4_mark_bitmap_end(EXT4_INODES_PER_GROUP(sb), sb->s_blocksize * 8, in ext4_init_inode_bitmap() 99 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bh, in ext4_init_inode_bitmap() 100 EXT4_INODES_PER_GROUP(sb) / 8); in ext4_init_inode_bitmap() [all …]
|
D | mmp.c | 10 static __le32 ext4_mmp_csum(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum() argument 12 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mmp_csum() 21 static int ext4_mmp_csum_verify(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum_verify() argument 23 if (!ext4_has_metadata_csum(sb)) in ext4_mmp_csum_verify() 26 return mmp->mmp_checksum == ext4_mmp_csum(sb, mmp); in ext4_mmp_csum_verify() 29 static void ext4_mmp_csum_set(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum_set() argument 31 if (!ext4_has_metadata_csum(sb)) in ext4_mmp_csum_set() 34 mmp->mmp_checksum = ext4_mmp_csum(sb, mmp); in ext4_mmp_csum_set() 41 static int write_mmp_block(struct super_block *sb, struct buffer_head *bh) in write_mmp_block() argument 49 sb_start_write(sb); in write_mmp_block() [all …]
|
/fs/ext3/ |
D | super.c | 50 static int ext3_commit_super(struct super_block *sb, 53 static void ext3_mark_recovery_complete(struct super_block * sb, 55 static void ext3_clear_journal_err(struct super_block * sb, 57 static int ext3_sync_fs(struct super_block *sb, int wait); 58 static const char *ext3_decode_error(struct super_block * sb, int errno, 60 static int ext3_remount (struct super_block * sb, int * flags, char * data); 62 static int ext3_unfreeze(struct super_block *sb); 63 static int ext3_freeze(struct super_block *sb); 68 handle_t *ext3_journal_start_sb(struct super_block *sb, int nblocks) in ext3_journal_start_sb() argument 72 if (sb->s_flags & MS_RDONLY) in ext3_journal_start_sb() [all …]
|
D | resize.c | 20 static int verify_group_input(struct super_block *sb, in verify_group_input() argument 23 struct ext3_sb_info *sbi = EXT3_SB(sb); in verify_group_input() 29 unsigned overhead = ext3_bg_has_super(sb, group) ? in verify_group_input() 30 (1 + ext3_bg_num_gdb(sb, group) + in verify_group_input() 40 if (test_opt(sb, DEBUG)) in verify_group_input() 43 ext3_bg_has_super(sb, input->group) ? "normal" : in verify_group_input() 48 ext3_warning(sb, __func__, in verify_group_input() 52 EXT3_BLOCKS_PER_GROUP(sb)) in verify_group_input() 53 ext3_warning(sb, __func__, "Last group not full"); in verify_group_input() 55 ext3_warning(sb, __func__, "Reserved blocks too high (%u)", in verify_group_input() [all …]
|
/fs/ufs/ |
D | super.c | 97 void lock_ufs(struct super_block *sb) in lock_ufs() argument 100 struct ufs_sb_info *sbi = UFS_SB(sb); in lock_ufs() 107 void unlock_ufs(struct super_block *sb) in unlock_ufs() argument 110 struct ufs_sb_info *sbi = UFS_SB(sb); in unlock_ufs() 117 static struct inode *ufs_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation) in ufs_nfs_get_inode() argument 119 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; in ufs_nfs_get_inode() 125 inode = ufs_iget(sb, ino); in ufs_nfs_get_inode() 135 static struct dentry *ufs_fh_to_dentry(struct super_block *sb, struct fid *fid, in ufs_fh_to_dentry() argument 138 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, ufs_nfs_get_inode); in ufs_fh_to_dentry() 141 static struct dentry *ufs_fh_to_parent(struct super_block *sb, struct fid *fid, in ufs_fh_to_parent() argument [all …]
|
D | balloc.c | 39 struct super_block * sb; in ufs_free_fragments() local 47 sb = inode->i_sb; in ufs_free_fragments() 48 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 …]
|
/fs/ext2/ |
D | super.c | 40 static void ext2_sync_super(struct super_block *sb, 42 static int ext2_remount (struct super_block * sb, int * flags, char * data); 44 static int ext2_sync_fs(struct super_block *sb, int wait); 45 static int ext2_freeze(struct super_block *sb); 46 static int ext2_unfreeze(struct super_block *sb); 48 void ext2_error(struct super_block *sb, const char *function, in ext2_error() argument 53 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_error() 56 if (!(sb->s_flags & MS_RDONLY)) { in ext2_error() 61 ext2_sync_super(sb, es, 1); in ext2_error() 70 sb->s_id, function, &vaf); in ext2_error() [all …]
|
/fs/quota/ |
D | quota.c | 21 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument 44 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission() 47 static void quota_sync_one(struct super_block *sb, void *arg) in quota_sync_one() argument 49 if (sb->s_qcop && sb->s_qcop->quota_sync) in quota_sync_one() 50 sb->s_qcop->quota_sync(sb, *(int *)arg); in quota_sync_one() 65 static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, in quota_quotaon() argument 68 if (!sb->s_qcop->quota_on && !sb->s_qcop->quota_on_meta) in quota_quotaon() 70 if (sb->s_qcop->quota_on_meta) in quota_quotaon() 71 return sb->s_qcop->quota_on_meta(sb, type, id); in quota_quotaon() 74 return sb->s_qcop->quota_on(sb, type, id, path); in quota_quotaon() [all …]
|
/fs/logfs/ |
D | gc.c | 31 static int no_free_segments(struct super_block *sb) in no_free_segments() argument 33 struct logfs_super *super = logfs_super(sb); in no_free_segments() 39 static u8 root_distance(struct super_block *sb, gc_level_t __gc_level) in root_distance() argument 41 struct logfs_super *super = logfs_super(sb); in root_distance() 65 static int segment_is_reserved(struct super_block *sb, u32 segno) in segment_is_reserved() argument 67 struct logfs_super *super = logfs_super(sb); in segment_is_reserved() 87 static void logfs_mark_segment_bad(struct super_block *sb, u32 segno) in logfs_mark_segment_bad() argument 96 static u32 logfs_valid_bytes(struct super_block *sb, u32 segno, u32 *ec, in logfs_valid_bytes() argument 102 logfs_get_segment_entry(sb, segno, &se); in logfs_valid_bytes() 113 static void logfs_cleanse_block(struct super_block *sb, u64 ofs, u64 ino, in logfs_cleanse_block() argument [all …]
|
D | super.c | 54 static void dump_segfile(struct super_block *sb) in dump_segfile() argument 56 struct logfs_super *super = logfs_super(sb); in dump_segfile() 61 logfs_get_segment_entry(sb, segno, &se); in dump_segfile() 65 logfs_get_segment_entry(sb, segno, &se); in dump_segfile() 70 logfs_get_segment_entry(sb, segno, &se); in dump_segfile() 75 logfs_get_segment_entry(sb, segno, &se); in dump_segfile() 89 void logfs_crash_dump(struct super_block *sb) in logfs_crash_dump() argument 91 dump_segfile(sb); in logfs_crash_dump() 99 struct super_block *sb = dentry->d_sb; in logfs_statfs() local 100 struct logfs_super *super = logfs_super(sb); in logfs_statfs() [all …]
|
D | journal.c | 11 static void logfs_calc_free(struct super_block *sb) in logfs_calc_free() argument 13 struct logfs_super *super = logfs_super(sb); in logfs_calc_free() 50 static void reserve_sb_and_journal(struct super_block *sb) in reserve_sb_and_journal() argument 52 struct logfs_super *super = logfs_super(sb); in reserve_sb_and_journal() 56 err = btree_insert32(head, seg_no(sb, super->s_sb_ofs[0]), (void *)1, in reserve_sb_and_journal() 60 err = btree_insert32(head, seg_no(sb, super->s_sb_ofs[1]), (void *)1, in reserve_sb_and_journal() 73 static void read_dynsb(struct super_block *sb, in read_dynsb() argument 76 struct logfs_super *super = logfs_super(sb); in read_dynsb() 87 static void read_anchor(struct super_block *sb, in read_anchor() argument 90 struct logfs_super *super = logfs_super(sb); in read_anchor() [all …]
|
/fs/reiserfs/ |
D | journal.c | 99 struct super_block *sb, unsigned long nblocks); 115 struct super_block *sb, 118 static void init_journal_hash(struct super_block *sb) in init_journal_hash() argument 120 struct reiserfs_journal *journal = SB_JOURNAL(sb); in init_journal_hash() 140 *sb) in allocate_bitmap_node() 149 bn->data = kzalloc(sb->s_blocksize, GFP_NOFS); in allocate_bitmap_node() 159 static struct reiserfs_bitmap_node *get_bitmap_node(struct super_block *sb) in get_bitmap_node() argument 161 struct reiserfs_journal *journal = SB_JOURNAL(sb); in get_bitmap_node() 171 memset(bn->data, 0, sb->s_blocksize); in get_bitmap_node() 175 bn = allocate_bitmap_node(sb); in get_bitmap_node() [all …]
|
/fs/udf/ |
D | super.c | 125 static struct inode *udf_alloc_inode(struct super_block *sb) in udf_alloc_inode() argument 246 static int udf_sb_alloc_partition_maps(struct super_block *sb, u32 count) in module_exit() 248 struct udf_sb_info *sbi = UDF_SB(sb); in module_exit() 253 udf_err(sb, "Unable to allocate space for %d partition maps\n", in module_exit() 309 static void udf_sb_free_partitions(struct super_block *sb) in udf_sb_free_partitions() argument 311 struct udf_sb_info *sbi = UDF_SB(sb); in udf_sb_free_partitions() 323 struct super_block *sb = root->d_sb; in udf_show_options() local 324 struct udf_sb_info *sbi = UDF_SB(sb); in udf_show_options() 326 if (!UDF_QUERY_FLAG(sb, UDF_FLAG_STRICT)) in udf_show_options() 328 if (UDF_QUERY_FLAG(sb, UDF_FLAG_BLOCKSIZE_SET)) in udf_show_options() [all …]
|
D | balloc.c | 35 static int read_block_bitmap(struct super_block *sb, in read_block_bitmap() argument 44 loc.partitionReferenceNum = UDF_SB(sb)->s_partition; in read_block_bitmap() 46 bh = udf_tread(sb, udf_get_lb_pblock(sb, &loc, block)); in read_block_bitmap() 54 static int __load_block_bitmap(struct super_block *sb, in __load_block_bitmap() argument 69 retval = read_block_bitmap(sb, bitmap, block_group, in __load_block_bitmap() 77 static inline int load_block_bitmap(struct super_block *sb, in load_block_bitmap() argument 83 slot = __load_block_bitmap(sb, bitmap, block_group); in load_block_bitmap() 94 static void udf_add_free_space(struct super_block *sb, u16 partition, u32 cnt) in udf_add_free_space() argument 96 struct udf_sb_info *sbi = UDF_SB(sb); in udf_add_free_space() 104 udf_updated_lvid(sb); in udf_add_free_space() [all …]
|
/fs/jfs/ |
D | super.c | 73 static void jfs_handle_error(struct super_block *sb) in jfs_handle_error() argument 75 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_handle_error() 77 if (sb->s_flags & MS_RDONLY) in jfs_handle_error() 80 updateSuper(sb, FM_DIRTY); in jfs_handle_error() 84 sb->s_id); in jfs_handle_error() 88 sb->s_id); in jfs_handle_error() 89 sb->s_flags |= MS_RDONLY; in jfs_handle_error() 95 void jfs_error(struct super_block *sb, const char * function, ...) in jfs_error() argument 104 pr_err("ERROR: (device %s): %s\n", sb->s_id, error_buf); in jfs_error() 106 jfs_handle_error(sb); in jfs_error() [all …]
|
/fs/affs/ |
D | super.c | 26 static int affs_remount (struct super_block *sb, int *flags, char *data); 29 affs_commit_super(struct super_block *sb, int wait) in affs_commit_super() argument 31 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_commit_super() 33 struct affs_root_tail *tail = AFFS_ROOT_TAIL(sb, bh); in affs_commit_super() 37 affs_fix_checksum(sb, bh); in affs_commit_super() 46 affs_put_super(struct super_block *sb) in affs_put_super() argument 48 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_put_super() 53 affs_free_bitmap(sb); in affs_put_super() 56 sb->s_fs_info = NULL; in affs_put_super() 60 affs_sync_fs(struct super_block *sb, int wait) in affs_sync_fs() argument [all …]
|