Home
last modified time | relevance | path

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

12345678910>>...16

/fs/befs/
Ddebug.c28 befs_error(const struct super_block *sb, const char *fmt, ...) in befs_error() argument
41 printk(KERN_ERR "BeFS(%s): %s\n", sb->s_id, err_buf); in befs_error()
46 befs_warning(const struct super_block *sb, const char *fmt, ...) in befs_warning() argument
59 printk(KERN_WARNING "BeFS(%s): %s\n", sb->s_id, err_buf); in befs_warning()
65 befs_debug(const struct super_block *sb, const char *fmt, ...) in befs_debug() argument
72 if (BEFS_SB(sb)->mount_opts.debug) { in befs_debug()
84 printk(KERN_DEBUG "BeFS(%s): %s\n", sb->s_id, err_buf); in befs_debug()
93 befs_dump_inode(const struct super_block *sb, befs_inode * inode) in befs_dump_inode() argument
99 befs_debug(sb, "befs_inode information"); in befs_dump_inode()
101 befs_debug(sb, " magic1 %08x", fs32_to_cpu(sb, inode->magic1)); 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, befs_data_stream * ds, in befs_read_datastream() argument
56 befs_debug(sb, "---> befs_read_datastream() %Lu", 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, "<--- befs_read_datastream() ERROR"); in befs_read_datastream()
[all …]
Dlinuxvfs.c39 static struct inode *befs_alloc_inode(struct super_block *sb);
45 static int befs_utf2nls(struct super_block *sb, const char *in, int in_len,
47 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 …]
Dbtree.c91 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 …]
Dsuper.c24 befs_load_sb(struct super_block *sb, befs_super_block * disk_sb) in befs_load_sb() argument
26 befs_sb_info *befs_sb = BEFS_SB(sb); in befs_load_sb()
34 befs_sb->magic1 = fs32_to_cpu(sb, disk_sb->magic1); in befs_load_sb()
35 befs_sb->magic2 = fs32_to_cpu(sb, disk_sb->magic2); in befs_load_sb()
36 befs_sb->magic3 = fs32_to_cpu(sb, disk_sb->magic3); in befs_load_sb()
37 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); in befs_load_sb()
38 befs_sb->block_shift = fs32_to_cpu(sb, disk_sb->block_shift); in befs_load_sb()
39 befs_sb->num_blocks = fs64_to_cpu(sb, disk_sb->num_blocks); in befs_load_sb()
40 befs_sb->used_blocks = fs64_to_cpu(sb, disk_sb->used_blocks); in befs_load_sb()
41 befs_sb->inode_size = fs32_to_cpu(sb, disk_sb->inode_size); in befs_load_sb()
[all …]
/fs/hfs/
Dmdb.c31 static int hfs_get_last_session(struct super_block *sb, in hfs_get_last_session() argument
40 *size = sb->s_bdev->bd_inode->i_size >> 9; in hfs_get_last_session()
42 if (HFS_SB(sb)->session >= 0) { in hfs_get_last_session()
43 te.cdte_track = HFS_SB(sb)->session; in hfs_get_last_session()
45 res = ioctl_by_bdev(sb->s_bdev, CDROMREADTOCENTRY, (unsigned long)&te); in hfs_get_last_session()
54 res = ioctl_by_bdev(sb->s_bdev, CDROMMULTISESSION, (unsigned long)&ms_info); in hfs_get_last_session()
66 int hfs_mdb_get(struct super_block *sb) in hfs_mdb_get() argument
78 size = sb_min_blocksize(sb, HFS_SECTOR_SIZE); in hfs_mdb_get()
82 if (hfs_get_last_session(sb, &part_start, &part_size)) in hfs_mdb_get()
86 bh = sb_bread512(sb, part_start + HFS_MDB_BLK, mdb); in hfs_mdb_get()
[all …]
/fs/
Dsuper.c138 static int __put_super(struct super_block *sb) in __put_super() argument
142 if (!--sb->s_count) { in __put_super()
143 destroy_super(sb); in __put_super()
156 int __put_super_and_need_restart(struct super_block *sb) in __put_super_and_need_restart() argument
159 if (list_empty(&sb->s_list)) { in __put_super_and_need_restart()
161 __put_super(sb); in __put_super_and_need_restart()
165 sb->s_count--; in __put_super_and_need_restart()
166 BUG_ON(sb->s_count == 0); in __put_super_and_need_restart()
177 static void put_super(struct super_block *sb) in put_super() argument
180 __put_super(sb); in put_super()
[all …]
Dquota.c23 static int generic_quotactl_valid(struct super_block *sb, int type, int cmd, qid_t id) in generic_quotactl_valid() argument
27 if (!sb && cmd != Q_SYNC) in generic_quotactl_valid()
30 if (sb && !sb->s_qcop) in generic_quotactl_valid()
37 if (!sb->s_qcop->quota_on) in generic_quotactl_valid()
41 if (!sb->s_qcop->quota_off) in generic_quotactl_valid()
45 if (!sb->s_qcop->set_info) in generic_quotactl_valid()
49 if (!sb->s_qcop->get_info) in generic_quotactl_valid()
53 if (!sb->s_qcop->set_dqblk) in generic_quotactl_valid()
57 if (!sb->s_qcop->get_dqblk) in generic_quotactl_valid()
61 if (sb && !sb->s_qcop->quota_sync) in generic_quotactl_valid()
[all …]
/fs/ext4/
Dballoc.c32 void ext4_get_group_no_and_offset(struct super_block *sb, ext4_fsblk_t blocknr, in ext4_get_group_no_and_offset() argument
35 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_get_group_no_and_offset()
39 offset = do_div(blocknr, EXT4_BLOCKS_PER_GROUP(sb)); in ext4_get_group_no_and_offset()
47 static int ext4_block_in_group(struct super_block *sb, ext4_fsblk_t block, in ext4_block_in_group() argument
51 ext4_get_group_no_and_offset(sb, block, &actual_group, NULL); in ext4_block_in_group()
57 static int ext4_group_used_meta_blocks(struct super_block *sb, in ext4_group_used_meta_blocks() argument
61 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_group_used_meta_blocks()
65 if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_FLEX_BG)) { in ext4_group_used_meta_blocks()
69 gdp = ext4_get_group_desc(sb, block_group, &bh); in ext4_group_used_meta_blocks()
70 if (!ext4_block_in_group(sb, ext4_block_bitmap(sb, gdp), in ext4_group_used_meta_blocks()
[all …]
Dresize.c23 static int verify_group_input(struct super_block *sb, in verify_group_input() argument
26 struct ext4_sb_info *sbi = EXT4_SB(sb); in verify_group_input()
32 unsigned overhead = ext4_bg_has_super(sb, group) ? in verify_group_input()
33 (1 + ext4_bg_num_gdb(sb, group) + in verify_group_input()
43 if (test_opt(sb, DEBUG)) in verify_group_input()
46 ext4_bg_has_super(sb, input->group) ? "normal" : in verify_group_input()
50 ext4_get_group_no_and_offset(sb, start, NULL, &offset); in verify_group_input()
52 ext4_warning(sb, __func__, in verify_group_input()
56 ext4_warning(sb, __func__, "Last group not full"); in verify_group_input()
58 ext4_warning(sb, __func__, "Reserved blocks too high (%u)", in verify_group_input()
[all …]
Dsuper.c54 static int ext4_commit_super(struct super_block *sb,
56 static void ext4_mark_recovery_complete(struct super_block *sb,
58 static void ext4_clear_journal_err(struct super_block *sb,
60 static int ext4_sync_fs(struct super_block *sb, int wait);
61 static const char *ext4_decode_error(struct super_block *sb, int errno,
63 static int ext4_remount(struct super_block *sb, int *flags, char *data);
65 static int ext4_unfreeze(struct super_block *sb);
66 static void ext4_write_super(struct super_block *sb);
67 static int ext4_freeze(struct super_block *sb);
70 ext4_fsblk_t ext4_block_bitmap(struct super_block *sb, in ext4_block_bitmap() argument
[all …]
Dialloc.c66 unsigned ext4_init_inode_bitmap(struct super_block *sb, struct buffer_head *bh, in ext4_init_inode_bitmap() argument
70 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_init_inode_bitmap()
77 ext4_error(sb, __func__, "Checksum bad for group %u", in ext4_init_inode_bitmap()
79 ext4_free_blks_set(sb, gdp, 0); in ext4_init_inode_bitmap()
80 ext4_free_inodes_set(sb, gdp, 0); in ext4_init_inode_bitmap()
81 ext4_itable_unused_set(sb, gdp, 0); in ext4_init_inode_bitmap()
82 memset(bh->b_data, 0xff, sb->s_blocksize); in ext4_init_inode_bitmap()
86 memset(bh->b_data, 0, (EXT4_INODES_PER_GROUP(sb) + 7) / 8); in ext4_init_inode_bitmap()
87 mark_bitmap_end(EXT4_INODES_PER_GROUP(sb), sb->s_blocksize * 8, in ext4_init_inode_bitmap()
90 return EXT4_INODES_PER_GROUP(sb); in ext4_init_inode_bitmap()
[all …]
/fs/ufs/
Dsuper.c103 static void ufs_print_super_stuff(struct super_block *sb, in ufs_print_super_stuff() argument
108 u32 magic = fs32_to_cpu(sb, usb3->fs_magic); in ufs_print_super_stuff()
112 if (fs32_to_cpu(sb, usb3->fs_magic) == UFS2_MAGIC) { in ufs_print_super_stuff()
114 fs64_to_cpu(sb, usb3->fs_un1.fs_u2.fs_size)); in ufs_print_super_stuff()
116 fs64_to_cpu(sb, usb3->fs_un1.fs_u2.fs_dsize)); in ufs_print_super_stuff()
118 fs32_to_cpu(sb, usb1->fs_bsize)); in ufs_print_super_stuff()
120 fs32_to_cpu(sb, usb1->fs_fsize)); in ufs_print_super_stuff()
123 fs64_to_cpu(sb, usb2->fs_un.fs_u2.fs_sblockloc)); in ufs_print_super_stuff()
125 fs64_to_cpu(sb, usb2->fs_un.fs_u2.cs_ndir)); in ufs_print_super_stuff()
128 fs64_to_cpu(sb, usb2->fs_un.fs_u2.cs_nbfree)); in ufs_print_super_stuff()
[all …]
Dialloc.c59 struct super_block * sb; in ufs_free_inode() local
69 sb = inode->i_sb; in ufs_free_inode()
70 uspi = UFS_SB(sb)->s_uspi; in ufs_free_inode()
75 lock_super (sb); in ufs_free_inode()
78 ufs_warning(sb, "ufs_free_inode", "reserved inode or nonexistent inode %u\n", ino); in ufs_free_inode()
79 unlock_super (sb); in ufs_free_inode()
85 ucpi = ufs_load_cylinder (sb, cg); in ufs_free_inode()
87 unlock_super (sb); in ufs_free_inode()
91 if (!ufs_cg_chkmagic(sb, ucg)) in ufs_free_inode()
92 ufs_panic (sb, "ufs_free_fragments", "internal error, bad cg magic number"); in ufs_free_inode()
[all …]
Dballoc.c40 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()
56 ufs_error (sb, "ufs_free_fragments", "internal error"); in ufs_free_fragments()
58 lock_super(sb); in ufs_free_fragments()
63 ufs_panic (sb, "ufs_free_fragments", "freeing blocks are outside device"); in ufs_free_fragments()
67 ucpi = ufs_load_cylinder (sb, cgno); in ufs_free_fragments()
71 if (!ufs_cg_chkmagic(sb, ucg)) { in ufs_free_fragments()
72 ufs_panic (sb, "ufs_free_fragments", "internal error, bad magic number on cg %u", cgno); in ufs_free_fragments()
79 ufs_fragacct (sb, blkmap, ucg->cg_frsum, -1); in ufs_free_fragments()
[all …]
/fs/hfsplus/
Dsuper.c18 static struct inode *hfsplus_alloc_inode(struct super_block *sb);
23 struct inode *hfsplus_iget(struct super_block *sb, unsigned long ino) in hfsplus_iget() argument
30 inode = iget_locked(sb, ino); in hfsplus_iget()
155 static void hfsplus_write_super(struct super_block *sb) in hfsplus_write_super() argument
157 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr; in hfsplus_write_super()
160 sb->s_dirt = 0; in hfsplus_write_super()
161 if (sb->s_flags & MS_RDONLY) in hfsplus_write_super()
165 vhdr->free_blocks = cpu_to_be32(HFSPLUS_SB(sb).free_blocks); in hfsplus_write_super()
166 vhdr->next_alloc = cpu_to_be32(HFSPLUS_SB(sb).next_alloc); in hfsplus_write_super()
167 vhdr->next_cnid = cpu_to_be32(HFSPLUS_SB(sb).next_cnid); in hfsplus_write_super()
[all …]
/fs/ext3/
Dresize.c23 static int verify_group_input(struct super_block *sb, in verify_group_input() argument
26 struct ext3_sb_info *sbi = EXT3_SB(sb); in verify_group_input()
32 unsigned overhead = ext3_bg_has_super(sb, group) ? in verify_group_input()
33 (1 + ext3_bg_num_gdb(sb, group) + in verify_group_input()
43 if (test_opt(sb, DEBUG)) in verify_group_input()
46 ext3_bg_has_super(sb, input->group) ? "normal" : in verify_group_input()
51 ext3_warning(sb, __func__, in verify_group_input()
55 EXT3_BLOCKS_PER_GROUP(sb)) in verify_group_input()
56 ext3_warning(sb, __func__, "Last group not full"); in verify_group_input()
58 ext3_warning(sb, __func__, "Reserved blocks too high (%u)", in verify_group_input()
[all …]
Dsuper.c51 static int ext3_commit_super(struct super_block *sb,
54 static void ext3_mark_recovery_complete(struct super_block * sb,
56 static void ext3_clear_journal_err(struct super_block * sb,
58 static int ext3_sync_fs(struct super_block *sb, int wait);
59 static const char *ext3_decode_error(struct super_block * sb, int errno,
61 static int ext3_remount (struct super_block * sb, int * flags, char * data);
63 static int ext3_unfreeze(struct super_block *sb);
64 static void ext3_write_super (struct super_block * sb);
65 static int ext3_freeze(struct super_block *sb);
75 handle_t *ext3_journal_start_sb(struct super_block *sb, int nblocks) in ext3_journal_start_sb() argument
[all …]
Dialloc.c54 read_inode_bitmap(struct super_block * sb, unsigned long block_group) in read_inode_bitmap() argument
59 desc = ext3_get_group_desc(sb, block_group, NULL); in read_inode_bitmap()
63 bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap()
65 ext3_error(sb, "read_inode_bitmap", in read_inode_bitmap()
91 struct super_block * sb = inode->i_sb; in ext3_free_inode() local
113 if (!sb) { in ext3_free_inode()
117 sbi = EXT3_SB(sb); in ext3_free_inode()
136 es = EXT3_SB(sb)->s_es; in ext3_free_inode()
137 if (ino < EXT3_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext3_free_inode()
138 ext3_error (sb, "ext3_free_inode", in ext3_free_inode()
[all …]
/fs/ext2/
Dsuper.c41 static void ext2_sync_super(struct super_block *sb,
43 static int ext2_remount (struct super_block * sb, int * flags, char * data);
46 void ext2_error (struct super_block * sb, const char * function, in ext2_error() argument
50 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_error()
53 if (!(sb->s_flags & MS_RDONLY)) { in ext2_error()
56 ext2_sync_super(sb, es); in ext2_error()
60 printk(KERN_CRIT "EXT2-fs error (device %s): %s: ",sb->s_id, function); in ext2_error()
65 if (test_opt(sb, ERRORS_PANIC)) in ext2_error()
67 if (test_opt(sb, ERRORS_RO)) { in ext2_error()
69 sb->s_flags |= MS_RDONLY; in ext2_error()
[all …]
Dballoc.c38 struct ext2_group_desc * ext2_get_group_desc(struct super_block * sb, in ext2_get_group_desc() argument
45 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_get_group_desc()
48 ext2_error (sb, "ext2_get_group_desc", in ext2_get_group_desc()
56 group_desc = block_group >> EXT2_DESC_PER_BLOCK_BITS(sb); in ext2_get_group_desc()
57 offset = block_group & (EXT2_DESC_PER_BLOCK(sb) - 1); in ext2_get_group_desc()
59 ext2_error (sb, "ext2_get_group_desc", in ext2_get_group_desc()
72 static int ext2_valid_block_bitmap(struct super_block *sb, in ext2_valid_block_bitmap() argument
82 group_first_block = ext2_group_first_block_no(sb, block_group); in ext2_valid_block_bitmap()
102 offset + EXT2_SB(sb)->s_itb_per_group, in ext2_valid_block_bitmap()
104 if (next_zero_bit >= offset + EXT2_SB(sb)->s_itb_per_group) in ext2_valid_block_bitmap()
[all …]
/fs/affs/
Dsuper.c24 static int affs_remount (struct super_block *sb, int *flags, char *data);
27 affs_put_super(struct super_block *sb) in affs_put_super() argument
29 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_put_super()
32 if (!(sb->s_flags & MS_RDONLY)) { in affs_put_super()
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()
41 affs_free_bitmap(sb); in affs_put_super()
44 sb->s_fs_info = NULL; in affs_put_super()
49 affs_write_super(struct super_block *sb) in affs_write_super() argument
[all …]
/fs/sysv/
Dialloc.c38 sv_sb_fic_inode(struct super_block * sb, unsigned int i) in sv_sb_fic_inode() argument
40 struct sysv_sb_info *sbi = SYSV_SB(sb); in sv_sb_fic_inode()
55 sysv_raw_inode(struct super_block *sb, unsigned ino, struct buffer_head **bh) in sysv_raw_inode() argument
57 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_raw_inode()
62 *bh = sb_bread(sb, block); in sysv_raw_inode()
69 static int refill_free_cache(struct super_block *sb) in refill_free_cache() argument
71 struct sysv_sb_info *sbi = SYSV_SB(sb); in refill_free_cache()
77 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache()
82 *sv_sb_fic_inode(sb,i++) = cpu_to_fs16(SYSV_SB(sb), ino); in refill_free_cache()
88 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache()
[all …]
/fs/jfs/
Dsuper.c70 static void jfs_handle_error(struct super_block *sb) in jfs_handle_error() argument
72 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_handle_error()
74 if (sb->s_flags & MS_RDONLY) in jfs_handle_error()
77 updateSuper(sb, FM_DIRTY); in jfs_handle_error()
81 sb->s_id); in jfs_handle_error()
85 sb->s_id); in jfs_handle_error()
86 sb->s_flags |= MS_RDONLY; in jfs_handle_error()
92 void jfs_error(struct super_block *sb, const char * function, ...) in jfs_error() argument
101 printk(KERN_ERR "ERROR: (device %s): %s\n", sb->s_id, error_buf); in jfs_error()
103 jfs_handle_error(sb); in jfs_error()
[all …]
/fs/udf/
Dsuper.c87 static int udf_vrs(struct super_block *sb, int silent);
99 static void udf_error(struct super_block *sb, const char *function,
130 static struct inode *udf_alloc_inode(struct super_block *sb) in udf_alloc_inode() argument
236 static int udf_sb_alloc_partition_maps(struct super_block *sb, u32 count) in module_exit()
238 struct udf_sb_info *sbi = UDF_SB(sb); in module_exit()
243 udf_error(sb, __func__, in module_exit()
256 struct super_block *sb = mnt->mnt_sb; in udf_show_options() local
257 struct udf_sb_info *sbi = UDF_SB(sb); in udf_show_options()
259 if (!UDF_QUERY_FLAG(sb, UDF_FLAG_STRICT)) in udf_show_options()
261 if (sb->s_blocksize != UDF_DEFAULT_BLOCKSIZE) in udf_show_options()
[all …]

12345678910>>...16