Home
last modified time | relevance | path

Searched defs:sb (Results 1 – 25 of 438) sorted by relevance

12345678910>>...18

/fs/logfs/
Dgc.c31 static int no_free_segments(struct super_block *sb) in no_free_segments()
39 static u8 root_distance(struct super_block *sb, gc_level_t __gc_level) in root_distance()
65 static int segment_is_reserved(struct super_block *sb, u32 segno) in segment_is_reserved()
87 static void logfs_mark_segment_bad(struct super_block *sb, u32 segno) in logfs_mark_segment_bad()
96 static u32 logfs_valid_bytes(struct super_block *sb, u32 segno, u32 *ec, in logfs_valid_bytes()
113 static void logfs_cleanse_block(struct super_block *sb, u64 ofs, u64 ino, in logfs_cleanse_block()
125 static u32 logfs_gc_segment(struct super_block *sb, u32 segno) in logfs_gc_segment()
226 static void free_candidate(struct super_block *sb, struct gc_candidate *cand) in free_candidate()
234 u32 get_best_cand(struct super_block *sb, struct candidate_list *list, u32 *ec) in get_best_cand()
268 static void __add_candidate(struct super_block *sb, struct gc_candidate *cand) in __add_candidate()
[all …]
Djournal.c11 static void logfs_calc_free(struct super_block *sb) in logfs_calc_free()
50 static void reserve_sb_and_journal(struct super_block *sb) in reserve_sb_and_journal()
73 static void read_dynsb(struct super_block *sb, in read_dynsb()
87 static void read_anchor(struct super_block *sb, in read_anchor()
105 static void read_erasecount(struct super_block *sb, in read_erasecount()
115 static int read_area(struct super_block *sb, struct logfs_je_area *a) in read_area()
159 static int __read_je_header(struct super_block *sb, u64 ofs, in __read_je_header()
184 static int __read_je_payload(struct super_block *sb, u64 ofs, in __read_je_payload()
211 static int __read_je(struct super_block *sb, u64 ofs, in __read_je()
222 static int read_je(struct super_block *sb, u64 ofs) in read_je()
[all …]
Dsuper.c54 static void dump_segfile(struct super_block *sb) in dump_segfile()
89 void logfs_crash_dump(struct super_block *sb) in logfs_crash_dump()
99 struct super_block *sb = dentry->d_sb; in logfs_statfs() local
113 static int logfs_sb_set(struct super_block *sb, void *_super) in logfs_sb_set()
131 static int logfs_sb_test(struct super_block *sb, void *_super) in logfs_sb_test()
155 static void logfs_write_ds(struct super_block *sb, struct logfs_disk_super *ds, in logfs_write_ds()
187 static int write_one_sb(struct super_block *sb, in write_one_sb()
188 struct page *(*find_sb)(struct super_block *sb, u64 *ofs)) in write_one_sb()
213 int logfs_write_sb(struct super_block *sb) in logfs_write_sb()
241 static int logfs_recover_sb(struct super_block *sb) in logfs_recover_sb()
[all …]
Dsegment.c15 static int logfs_mark_segment_bad(struct super_block *sb, u32 segno) in logfs_mark_segment_bad()
29 int logfs_erase_segment(struct super_block *sb, u32 segno, int ensure_erase) in logfs_erase_segment()
52 static struct page *get_mapping_page(struct super_block *sb, pgoff_t index, in get_mapping_page()
107 struct super_block *sb = area->a_sb; in pad_partial_page() local
128 struct super_block *sb = area->a_sb; in pad_full_pages() local
167 static void *alias_tree_lookup(struct super_block *sb, u64 ino, u64 bix, in alias_tree_lookup()
176 static int alias_tree_insert(struct super_block *sb, u64 ino, u64 bix, in alias_tree_insert()
185 static int btree_write_alias(struct super_block *sb, struct logfs_block *block, in btree_write_alias()
206 int logfs_load_object_aliases(struct super_block *sb, in logfs_load_object_aliases()
256 struct super_block *sb = block->sb; in kill_alias() local
[all …]
Ddev_bdev.c38 struct super_block *sb = _sb; in bdev_readpage() local
60 struct super_block *sb = bio->bi_private; in writeseg_end_io() local
74 static int __bdev_writeseg(struct super_block *sb, u64 ofs, pgoff_t index, in __bdev_writeseg()
130 static void bdev_writeseg(struct super_block *sb, u64 ofs, size_t len) in bdev_writeseg()
156 struct super_block *sb = bio->bi_private; in erase_end_io() local
166 static int do_erase(struct super_block *sb, u64 ofs, pgoff_t index, in do_erase()
214 static int bdev_erase(struct super_block *sb, loff_t to, size_t len, in bdev_erase()
238 static void bdev_sync(struct super_block *sb) in bdev_sync()
245 static struct page *bdev_find_first_sb(struct super_block *sb, u64 *ofs) in bdev_find_first_sb()
255 static struct page *bdev_find_last_sb(struct super_block *sb, u64 *ofs) in bdev_find_last_sb()
[all …]
Dinode.c81 static struct inode *__logfs_iget(struct super_block *sb, ino_t ino) in __logfs_iget()
109 struct inode *logfs_iget(struct super_block *sb, ino_t ino) in logfs_iget()
120 struct inode *logfs_safe_iget(struct super_block *sb, ino_t ino, int *is_cached) in logfs_safe_iget()
202 static void logfs_init_inode(struct super_block *sb, struct inode *inode) in logfs_init_inode()
226 static struct inode *logfs_alloc_inode(struct super_block *sb) in logfs_alloc_inode()
262 struct inode *logfs_new_meta_inode(struct super_block *sb, u64 ino) in logfs_new_meta_inode()
278 struct inode *logfs_read_meta_inode(struct super_block *sb, u64 ino) in logfs_read_meta_inode()
322 static void logfs_set_ino_generation(struct super_block *sb, in logfs_set_ino_generation()
344 struct super_block *sb = dir->i_sb; in logfs_new_inode() local
380 static int logfs_sync_fs(struct super_block *sb, int wait) in logfs_sync_fs()
[all …]
Ddev_mtd.c16 static int logfs_mtd_read(struct super_block *sb, loff_t ofs, size_t len, in logfs_mtd_read()
35 static int loffs_mtd_write(struct super_block *sb, loff_t ofs, size_t len, in loffs_mtd_write()
72 static int logfs_mtd_erase_mapping(struct super_block *sb, loff_t ofs, in logfs_mtd_erase_mapping()
90 static int logfs_mtd_erase(struct super_block *sb, loff_t ofs, size_t len, in logfs_mtd_erase()
118 static void logfs_mtd_sync(struct super_block *sb) in logfs_mtd_sync()
127 struct super_block *sb = _sb; in logfs_mtd_readpage() local
148 static struct page *logfs_mtd_find_first_sb(struct super_block *sb, u64 *ofs) in logfs_mtd_find_first_sb()
165 static struct page *logfs_mtd_find_last_sb(struct super_block *sb, u64 *ofs) in logfs_mtd_find_last_sb()
183 static int __logfs_mtd_writeseg(struct super_block *sb, u64 ofs, pgoff_t index, in __logfs_mtd_writeseg()
205 static void logfs_mtd_writeseg(struct super_block *sb, u64 ofs, size_t len) in logfs_mtd_writeseg()
[all …]
/fs/befs/
Dendian.h15 fs64_to_cpu(const struct super_block *sb, fs64 n) in fs64_to_cpu()
24 cpu_to_fs64(const struct super_block *sb, u64 n) in cpu_to_fs64()
33 fs32_to_cpu(const struct super_block *sb, fs32 n) in fs32_to_cpu()
42 cpu_to_fs32(const struct super_block *sb, u32 n) in cpu_to_fs32()
51 fs16_to_cpu(const struct super_block *sb, fs16 n) in fs16_to_cpu()
60 cpu_to_fs16(const struct super_block *sb, u16 n) in cpu_to_fs16()
71 fsrun_to_cpu(const struct super_block *sb, befs_disk_block_run n) in fsrun_to_cpu()
88 cpu_to_fsrun(const struct super_block *sb, befs_block_run n) in cpu_to_fsrun()
105 fsds_to_cpu(const struct super_block *sb, const befs_disk_data_stream *n) in fsds_to_cpu()
Ddebug.c28 befs_error(const struct super_block *sb, const char *fmt, ...) in befs_error()
41 befs_warning(const struct super_block *sb, const char *fmt, ...) in befs_warning()
54 befs_debug(const struct super_block *sb, const char *fmt, ...) in befs_debug()
70 befs_dump_inode(const struct super_block *sb, befs_inode * inode) in befs_dump_inode()
154 befs_dump_super_block(const struct super_block *sb, befs_super_block * sup) in befs_dump_super_block()
223 befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * super) in befs_dump_index_entry()
244 befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead * node) in befs_dump_index_node()
/fs/
Dsuper.c58 struct super_block *sb; in super_cache_scan() local
115 struct super_block *sb; in super_cache_count() local
271 static void __put_super(struct super_block *sb) in __put_super()
286 static void put_super(struct super_block *sb) in put_super()
392 bool trylock_super(struct super_block *sb) in trylock_super()
418 void generic_shutdown_super(struct super_block *sb) in generic_shutdown_super()
520 void drop_super(struct super_block *sb) in drop_super()
538 struct super_block *sb, *p = NULL; in iterate_supers() local
574 struct super_block *sb, *p = NULL; in iterate_supers_type() local
608 struct super_block *sb; in get_super() local
[all …]
/fs/ext4/
Dsuper.c93 #define IS_EXT2_SB(sb) ((sb)->s_bdev->bd_holder == &ext2_fs_type) argument
95 #define IS_EXT2_SB(sb) (0) argument
108 #define IS_EXT3_SB(sb) ((sb)->s_bdev->bd_holder == &ext3_fs_type) argument
110 static int ext4_verify_csum_type(struct super_block *sb, in ext4_verify_csum_type()
119 static __le32 ext4_superblock_csum(struct super_block *sb, in ext4_superblock_csum()
131 static int ext4_superblock_csum_verify(struct super_block *sb, in ext4_superblock_csum_verify()
140 void ext4_superblock_csum_set(struct super_block *sb) in ext4_superblock_csum_set()
170 ext4_fsblk_t ext4_block_bitmap(struct super_block *sb, in ext4_block_bitmap()
178 ext4_fsblk_t ext4_inode_bitmap(struct super_block *sb, in ext4_inode_bitmap()
186 ext4_fsblk_t ext4_inode_table(struct super_block *sb, in ext4_inode_table()
[all …]
Dballoc.c34 ext4_group_t ext4_get_group_number(struct super_block *sb, in ext4_get_group_number()
52 void ext4_get_group_no_and_offset(struct super_block *sb, ext4_fsblk_t blocknr, in ext4_get_group_no_and_offset()
72 static inline int ext4_block_in_group(struct super_block *sb, in ext4_block_in_group()
85 static unsigned ext4_num_overhead_clusters(struct super_block *sb, in ext4_num_overhead_clusters()
158 static unsigned int num_clusters_in_group(struct super_block *sb, in num_clusters_in_group()
178 static int ext4_init_block_bitmap(struct super_block *sb, in ext4_init_block_bitmap()
247 unsigned ext4_free_clusters_after_init(struct super_block *sb, in ext4_free_clusters_after_init()
273 struct ext4_group_desc * ext4_get_group_desc(struct super_block *sb, in ext4_get_group_desc()
319 static ext4_fsblk_t ext4_valid_block_bitmap(struct super_block *sb, in ext4_valid_block_bitmap()
374 static int ext4_validate_block_bitmap(struct super_block *sb, in ext4_validate_block_bitmap()
[all …]
Dmmp.c10 static __le32 ext4_mmp_csum(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum()
21 static int ext4_mmp_csum_verify(struct super_block *sb, struct mmp_struct *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()
41 static int write_mmp_block(struct super_block *sb, struct buffer_head *bh) in write_mmp_block()
67 static int read_mmp_block(struct super_block *sb, struct buffer_head **bh, in read_mmp_block()
116 void __dump_mmp_msg(struct super_block *sb, struct mmp_struct *mmp, in __dump_mmp_msg()
132 struct super_block *sb = ((struct mmpd_data *) data)->sb; in kmmpd() local
274 int ext4_multi_mount_protect(struct super_block *sb, in ext4_multi_mount_protect()
Dext4_jbd2.h36 #define EXT4_SINGLEDATA_TRANS_BLOCKS(sb) \ argument
51 #define EXT4_DATA_TRANS_BLOCKS(sb) (EXT4_SINGLEDATA_TRANS_BLOCKS(sb) + \ argument
60 #define EXT4_META_TRANS_BLOCKS(sb) (EXT4_XATTR_TRANS_BLOCKS + \ argument
85 #define EXT4_QUOTA_TRANS_BLOCKS(sb) ((test_opt(sb, QUOTA) ||\ argument
89 #define EXT4_QUOTA_INIT_BLOCKS(sb) ((test_opt(sb, QUOTA) ||\ argument
94 #define EXT4_QUOTA_DEL_BLOCKS(sb) ((test_opt(sb, QUOTA) ||\ argument
99 #define EXT4_QUOTA_TRANS_BLOCKS(sb) 0 argument
100 #define EXT4_QUOTA_INIT_BLOCKS(sb) 0 argument
101 #define EXT4_QUOTA_DEL_BLOCKS(sb) 0 argument
103 #define EXT4_MAXQUOTAS_TRANS_BLOCKS(sb) (EXT4_MAXQUOTAS*EXT4_QUOTA_TRANS_BLOCKS(sb)) argument
[all …]
/fs/quota/
Dquota.c22 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission()
49 static void quota_sync_one(struct super_block *sb, void *arg) in quota_sync_one()
83 static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, in quota_quotaon()
95 static int quota_quotaoff(struct super_block *sb, int type) in quota_quotaoff()
104 static int quota_getfmt(struct super_block *sb, int type, void __user *addr) in quota_getfmt()
120 static int quota_getinfo(struct super_block *sb, int type, void __user *addr) in quota_getinfo()
150 static int quota_setinfo(struct super_block *sb, int type, void __user *addr) in quota_setinfo()
204 static int quota_getquota(struct super_block *sb, int type, qid_t id, in quota_getquota()
252 static int quota_setquota(struct super_block *sb, int type, qid_t id, in quota_setquota()
270 static int quota_enable(struct super_block *sb, void __user *addr) in quota_enable()
[all …]
/fs/kernfs/
Dmount.c22 static int kernfs_sop_remount_fs(struct super_block *sb, int *flags, char *data) in kernfs_sop_remount_fs()
58 struct kernfs_root *kernfs_root_from_sb(struct super_block *sb) in kernfs_root_from_sb()
65 static int kernfs_fill_super(struct super_block *sb, unsigned long magic) in kernfs_fill_super()
100 static int kernfs_test_super(struct super_block *sb, void *data) in kernfs_test_super()
108 static int kernfs_set_super(struct super_block *sb, void *data) in kernfs_set_super()
123 const void *kernfs_super_ns(struct super_block *sb) in kernfs_super_ns()
150 struct super_block *sb; in kernfs_mount_ns() local
196 void kernfs_kill_sb(struct super_block *sb) in kernfs_kill_sb()
229 struct super_block *sb = NULL; in kernfs_pin_sb() local
/fs/ufs/
Dsuper.c97 static struct inode *ufs_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation) 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()
121 static struct dentry *ufs_fh_to_parent(struct super_block *sb, struct fid *fid, in ufs_fh_to_parent()
148 static void ufs_print_super_stuff(struct super_block *sb, in ufs_print_super_stuff()
227 static void ufs_print_cylinder_stuff(struct super_block *sb, in ufs_print_cylinder_stuff()
264 # define ufs_print_super_stuff(sb, usb1, usb2, usb3) /**/ argument
265 # define ufs_print_cylinder_stuff(sb, cg) /**/ argument
270 void ufs_error (struct super_block * sb, const char * function, in ufs_error()
304 void ufs_panic (struct super_block * sb, const char * function, in ufs_panic()
329 void ufs_warning (struct super_block * sb, const char * function, in ufs_warning()
[all …]
/fs/ocfs2/
Dquota_local.c28 static inline unsigned int ol_quota_entries_per_block(struct super_block *sb) in ol_quota_entries_per_block()
35 static inline unsigned int ol_chunk_blocks(struct super_block *sb) in ol_chunk_blocks()
43 static unsigned int ol_chunk_entries(struct super_block *sb) in ol_chunk_entries()
49 static unsigned int ol_quota_chunk_block(struct super_block *sb, int c) in ol_quota_chunk_block()
55 static unsigned int ol_dqblk_block(struct super_block *sb, int c, int off) in ol_dqblk_block()
62 static unsigned int ol_dqblk_block_off(struct super_block *sb, int c, int off) in ol_dqblk_block_off()
70 static loff_t ol_dqblk_off(struct super_block *sb, int c, int off) in ol_dqblk_off()
76 static inline unsigned int ol_dqblk_block_offset(struct super_block *sb, loff_t off) in ol_dqblk_block_offset()
82 static int ol_dqblk_chunk_off(struct super_block *sb, int c, loff_t off) in ol_dqblk_chunk_off()
96 struct super_block *sb = inode->i_sb; in ocfs2_modify_bh() local
[all …]
Dquota_global.c132 int ocfs2_validate_quota_block(struct super_block *sb, struct buffer_head *bh) in ocfs2_validate_quota_block()
165 ssize_t ocfs2_quota_read(struct super_block *sb, int type, char *data, in ocfs2_quota_read()
214 ssize_t ocfs2_quota_write(struct super_block *sb, int type, in ocfs2_quota_write()
336 int ocfs2_global_read_info(struct super_block *sb, int type) in ocfs2_global_read_info()
415 static int __ocfs2_global_write_info(struct super_block *sb, int type) in __ocfs2_global_write_info()
443 int ocfs2_global_write_info(struct super_block *sb, int type) in ocfs2_global_write_info()
456 static int ocfs2_global_qinit_alloc(struct super_block *sb, int type) in ocfs2_global_qinit_alloc()
467 static int ocfs2_calc_global_qinit_credits(struct super_block *sb, int type) in ocfs2_calc_global_qinit_credits()
481 struct super_block *sb = dquot->dq_sb; in __ocfs2_sync_dquot() local
594 struct super_block *sb = dquot->dq_sb; in ocfs2_sync_dquot_helper() local
[all …]
/fs/nilfs2/
Dsuper.c78 static void nilfs_set_error(struct super_block *sb) in nilfs_set_error()
109 void nilfs_error(struct super_block *sb, const char *function, in nilfs_error()
140 void nilfs_warning(struct super_block *sb, const char *function, in nilfs_warning()
158 struct inode *nilfs_alloc_inode(struct super_block *sb) in nilfs_alloc_inode()
190 static int nilfs_sync_super(struct super_block *sb, int flag) in nilfs_sync_super()
264 struct nilfs_super_block **nilfs_prepare_super(struct super_block *sb, in nilfs_prepare_super()
291 int nilfs_commit_super(struct super_block *sb, int flag) in nilfs_commit_super()
327 int nilfs_cleanup_super(struct super_block *sb) in nilfs_cleanup_super()
357 static int nilfs_move_2nd_super(struct super_block *sb, loff_t sb2off) in nilfs_move_2nd_super()
417 int nilfs_resize_fs(struct super_block *sb, __u64 newsize) in nilfs_resize_fs()
[all …]
/fs/ext2/
Dsuper.c47 void ext2_error(struct super_block *sb, const char *function, in ext2_error()
82 void ext2_msg(struct super_block *sb, const char *prefix, in ext2_msg()
101 void ext2_update_dynamic_rev(struct super_block *sb) in ext2_update_dynamic_rev()
126 static void ext2_put_super (struct super_block * sb) in ext2_put_super()
163 static struct inode *ext2_alloc_inode(struct super_block *sb) in ext2_alloc_inode()
228 struct super_block *sb = root->d_sb; in ext2_show_options() local
342 static struct inode *ext2_nfs_get_inode(struct super_block *sb, in ext2_nfs_get_inode()
368 static struct dentry *ext2_fh_to_dentry(struct super_block *sb, struct fid *fid, in ext2_fh_to_dentry()
375 static struct dentry *ext2_fh_to_parent(struct super_block *sb, struct fid *fid, in ext2_fh_to_parent()
452 static int parse_options(char *options, struct super_block *sb) in parse_options()
[all …]
/fs/romfs/
Dstorage.c22 #define ROMFS_MTD_READ(sb, ...) mtd_read((sb)->s_mtd, ##__VA_ARGS__) argument
27 static int romfs_mtd_read(struct super_block *sb, unsigned long pos, in romfs_mtd_read()
40 static ssize_t romfs_mtd_strnlen(struct super_block *sb, in romfs_mtd_strnlen()
70 static int romfs_mtd_strcmp(struct super_block *sb, unsigned long pos, in romfs_mtd_strcmp()
107 static int romfs_blk_read(struct super_block *sb, unsigned long pos, in romfs_blk_read()
134 static ssize_t romfs_blk_strnlen(struct super_block *sb, in romfs_blk_strnlen()
167 static int romfs_blk_strcmp(struct super_block *sb, unsigned long pos, in romfs_blk_strcmp()
218 int romfs_dev_read(struct super_block *sb, unsigned long pos, in romfs_dev_read()
241 ssize_t romfs_dev_strnlen(struct super_block *sb, in romfs_dev_strnlen()
269 int romfs_dev_strcmp(struct super_block *sb, unsigned long pos, in romfs_dev_strcmp()
/fs/udf/
Dsuper.c99 struct logicalVolIntegrityDescImpUse *udf_sb_lvidiu(struct super_block *sb) in udf_sb_lvidiu()
139 static struct inode *udf_alloc_inode(struct super_block *sb) in udf_alloc_inode()
323 static void udf_sb_free_partitions(struct super_block *sb) in udf_sb_free_partitions()
337 struct super_block *sb = root->d_sb; in udf_show_options() local
645 static int udf_remount_fs(struct super_block *sb, int *flags, char *options) in udf_remount_fs()
692 static loff_t udf_check_vsd(struct super_block *sb) in udf_check_vsd()
795 static int udf_find_fileset(struct super_block *sb, in udf_find_fileset()
891 static int udf_load_pvoldesc(struct super_block *sb, sector_t block) in udf_load_pvoldesc()
958 struct inode *udf_find_metadata_inode_efe(struct super_block *sb, in udf_find_metadata_inode_efe()
982 static int udf_load_metadata_files(struct super_block *sb, int partition) in udf_load_metadata_files()
[all …]
/fs/reiserfs/
Djournal.c114 static void init_journal_hash(struct super_block *sb) in init_journal_hash()
136 static struct reiserfs_bitmap_node *allocate_bitmap_node(struct super_block in allocate_bitmap_node()
156 static struct reiserfs_bitmap_node *get_bitmap_node(struct super_block *sb) in get_bitmap_node()
179 static inline void free_bitmap_node(struct super_block *sb, in free_bitmap_node()
193 static void allocate_bitmap_nodes(struct super_block *sb) in allocate_bitmap_nodes()
210 static int set_bit_in_list_bitmap(struct super_block *sb, in set_bit_in_list_bitmap()
224 static void cleanup_bitmap_list(struct super_block *sb, in cleanup_bitmap_list()
242 static int free_list_bitmaps(struct super_block *sb, in free_list_bitmaps()
257 static int free_bitmap_nodes(struct super_block *sb) in free_bitmap_nodes()
279 int reiserfs_allocate_list_bitmaps(struct super_block *sb, in reiserfs_allocate_list_bitmaps()
[all …]
/fs/xfs/
Dxfs_quotaops.c69 struct super_block *sb, in xfs_fs_get_quota_state()
121 struct super_block *sb, in xfs_fs_set_info()
173 struct super_block *sb, in xfs_quota_enable()
188 struct super_block *sb, in xfs_quota_disable()
205 struct super_block *sb, in xfs_fs_rm_xquota()
232 struct super_block *sb, in xfs_fs_get_dqblk()
249 struct super_block *sb, in xfs_fs_set_dqblk()

12345678910>>...18