Home
last modified time | relevance | path

Searched refs:sb (Results 1 - 25 of 1758) sorted by relevance

12345678910>>...71

/kernel/linux/linux-5.10/fs/befs/
H A 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, inod in befs_dump_inode()
156 befs_dump_super_block(const struct super_block *sb, befs_super_block *sup) befs_dump_super_block() argument
226 befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super *super) befs_dump_index_entry() argument
248 befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead *node) befs_dump_index_node() argument
[all...]
H A 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,
124 * @sb: Filesystem superblock
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, "Could in befs_bt_read_super()
191 befs_bt_read_node(struct super_block *sb, const befs_data_stream *ds, struct befs_btree_node *node, befs_off_t node_off) befs_bt_read_node() argument
245 befs_btree_find(struct super_block *sb, const befs_data_stream *ds, const char *key, befs_off_t * value) befs_btree_find() argument
330 befs_find_key(struct super_block *sb, struct befs_btree_node *node, const char *findkey, befs_off_t * value) befs_find_key() argument
411 befs_btree_read(struct super_block *sb, const befs_data_stream *ds, loff_t key_no, size_t bufsize, char *keybuf, size_t * keysize, befs_off_t * value) befs_btree_read() argument
542 befs_btree_seekleaf(struct super_block *sb, const befs_data_stream *ds, befs_btree_super *bt_super, struct befs_btree_node *this_node, befs_off_t * node_off) befs_btree_seekleaf() argument
675 befs_bt_get_key(struct super_block *sb, struct befs_btree_node *node, int index, u16 * keylen) befs_bt_get_key() argument
[all...]
H A Dlinuxvfs.c48 static struct inode *befs_alloc_inode(struct super_block *sb);
52 static int befs_utf2nls(struct super_block *sb, const char *in, int in_len,
54 static int befs_nls2utf(struct super_block *sb, const char *in, int in_len,
61 static struct dentry *befs_fh_to_dentry(struct super_block *sb,
63 static struct dentry *befs_fh_to_parent(struct super_block *sb,
136 struct super_block *sb = inode->i_sb; in befs_get_block() local
142 befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld", in befs_get_block()
145 befs_error(sb, "befs_get_block() was asked to write to " in befs_get_block()
151 res = befs_fblock2brun(sb, ds, block, &run); in befs_get_block()
153 befs_error(sb, in befs_get_block()
175 struct super_block *sb = dir->i_sb; befs_lookup() local
219 struct super_block *sb = inode->i_sb; befs_readdir() local
276 befs_alloc_inode(struct super_block *sb) befs_alloc_inode() argument
298 befs_iget(struct super_block *sb, unsigned long ino) befs_iget() argument
474 struct super_block *sb = inode->i_sb; befs_symlink_readpage() local
506 befs_utf2nls(struct super_block *sb, const char *in, int in_len, char **out, int *out_len) befs_utf2nls() argument
583 befs_nls2utf(struct super_block *sb, const char *in, int in_len, char **out, int *out_len) befs_nls2utf() argument
640 befs_nfs_get_inode(struct super_block *sb, uint64_t ino, uint32_t generation) befs_nfs_get_inode() argument
650 befs_fh_to_dentry(struct super_block *sb, struct fid *fid, int fh_len, int fh_type) befs_fh_to_dentry() argument
660 befs_fh_to_parent(struct super_block *sb, struct fid *fid, int fh_len, int fh_type) befs_fh_to_parent() argument
793 befs_put_super(struct super_block *sb) befs_put_super() argument
809 befs_fill_super(struct super_block *sb, void *data, int silent) befs_fill_super() argument
943 befs_remount(struct super_block *sb, int *flags, char *data) befs_remount() argument
954 struct super_block *sb = dentry->d_sb; befs_statfs() local
[all...]
/kernel/linux/linux-6.6/fs/befs/
H A 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, inod in befs_dump_inode()
156 befs_dump_super_block(const struct super_block *sb, befs_super_block *sup) befs_dump_super_block() argument
226 befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super *super) befs_dump_index_entry() argument
248 befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead *node) befs_dump_index_node() argument
[all...]
H A 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,
124 * @sb: Filesystem superblock
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, "Could in befs_bt_read_super()
191 befs_bt_read_node(struct super_block *sb, const befs_data_stream *ds, struct befs_btree_node *node, befs_off_t node_off) befs_bt_read_node() argument
245 befs_btree_find(struct super_block *sb, const befs_data_stream *ds, const char *key, befs_off_t * value) befs_btree_find() argument
330 befs_find_key(struct super_block *sb, struct befs_btree_node *node, const char *findkey, befs_off_t * value) befs_find_key() argument
411 befs_btree_read(struct super_block *sb, const befs_data_stream *ds, loff_t key_no, size_t bufsize, char *keybuf, size_t * keysize, befs_off_t * value) befs_btree_read() argument
542 befs_btree_seekleaf(struct super_block *sb, const befs_data_stream *ds, befs_btree_super *bt_super, struct befs_btree_node *this_node, befs_off_t * node_off) befs_btree_seekleaf() argument
675 befs_bt_get_key(struct super_block *sb, struct befs_btree_node *node, int index, u16 * keylen) befs_bt_get_key() argument
[all...]
H A Dlinuxvfs.c48 static struct inode *befs_alloc_inode(struct super_block *sb);
52 static int befs_utf2nls(struct super_block *sb, const char *in, int in_len,
54 static int befs_nls2utf(struct super_block *sb, const char *in, int in_len,
61 static struct dentry *befs_fh_to_dentry(struct super_block *sb,
63 static struct dentry *befs_fh_to_parent(struct super_block *sb,
135 struct super_block *sb = inode->i_sb; in befs_get_block() local
141 befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld", in befs_get_block()
144 befs_error(sb, "befs_get_block() was asked to write to " in befs_get_block()
150 res = befs_fblock2brun(sb, ds, block, &run); in befs_get_block()
152 befs_error(sb, in befs_get_block()
174 struct super_block *sb = dir->i_sb; befs_lookup() local
218 struct super_block *sb = inode->i_sb; befs_readdir() local
275 befs_alloc_inode(struct super_block *sb) befs_alloc_inode() argument
297 befs_iget(struct super_block *sb, unsigned long ino) befs_iget() argument
473 struct super_block *sb = inode->i_sb; befs_symlink_read_folio() local
505 befs_utf2nls(struct super_block *sb, const char *in, int in_len, char **out, int *out_len) befs_utf2nls() argument
582 befs_nls2utf(struct super_block *sb, const char *in, int in_len, char **out, int *out_len) befs_nls2utf() argument
639 befs_nfs_get_inode(struct super_block *sb, uint64_t ino, uint32_t generation) befs_nfs_get_inode() argument
649 befs_fh_to_dentry(struct super_block *sb, struct fid *fid, int fh_len, int fh_type) befs_fh_to_dentry() argument
659 befs_fh_to_parent(struct super_block *sb, struct fid *fid, int fh_len, int fh_type) befs_fh_to_parent() argument
792 befs_put_super(struct super_block *sb) befs_put_super() argument
808 befs_fill_super(struct super_block *sb, void *data, int silent) befs_fill_super() argument
942 befs_remount(struct super_block *sb, int *flags, char *data) befs_remount() argument
953 struct super_block *sb = dentry->d_sb; befs_statfs() local
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Dstrbuf.c20 int strbuf_init(struct strbuf *sb, ssize_t hint) in strbuf_init() argument
22 sb->alloc = sb->len = 0; in strbuf_init()
23 sb->buf = strbuf_slopbuf; in strbuf_init()
25 return strbuf_grow(sb, hint); in strbuf_init()
29 void strbuf_release(struct strbuf *sb) in strbuf_release() argument
31 if (sb->alloc) { in strbuf_release()
32 zfree(&sb->buf); in strbuf_release()
33 strbuf_init(sb, 0); in strbuf_release()
37 char *strbuf_detach(struct strbuf *sb, size_ argument
46 strbuf_grow(struct strbuf *sb, size_t extra) strbuf_grow() argument
73 strbuf_addch(struct strbuf *sb, int c) strbuf_addch() argument
84 strbuf_add(struct strbuf *sb, const void *data, size_t len) strbuf_add() argument
94 strbuf_addv(struct strbuf *sb, const char *fmt, va_list ap) strbuf_addv() argument
128 strbuf_addf(struct strbuf *sb, const char *fmt, ...) strbuf_addf() argument
139 strbuf_read(struct strbuf *sb, int fd, ssize_t hint) strbuf_read() argument
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Dstrbuf.c20 int strbuf_init(struct strbuf *sb, ssize_t hint) in strbuf_init() argument
22 sb->alloc = sb->len = 0; in strbuf_init()
23 sb->buf = strbuf_slopbuf; in strbuf_init()
25 return strbuf_grow(sb, hint); in strbuf_init()
29 void strbuf_release(struct strbuf *sb) in strbuf_release() argument
31 if (sb->alloc) { in strbuf_release()
32 zfree(&sb->buf); in strbuf_release()
33 strbuf_init(sb, 0); in strbuf_release()
37 char *strbuf_detach(struct strbuf *sb, size_ argument
46 strbuf_grow(struct strbuf *sb, size_t extra) strbuf_grow() argument
73 strbuf_addch(struct strbuf *sb, int c) strbuf_addch() argument
84 strbuf_add(struct strbuf *sb, const void *data, size_t len) strbuf_add() argument
94 strbuf_addv(struct strbuf *sb, const char *fmt, va_list ap) strbuf_addv() argument
128 strbuf_addf(struct strbuf *sb, const char *fmt, ...) strbuf_addf() argument
139 strbuf_read(struct strbuf *sb, int fd, ssize_t hint) strbuf_read() argument
[all...]
/kernel/linux/linux-5.10/fs/
H A Dsuper.c43 static int thaw_super_locked(struct super_block *sb);
55 * One thing we have to be careful of with a per-sb shrinker is that we don't
64 struct super_block *sb; in super_cache_scan() local
71 sb = container_of(shrink, struct super_block, s_shrink); in super_cache_scan()
80 if (!trylock_super(sb)) in super_cache_scan()
83 if (sb->s_op->nr_cached_objects) in super_cache_scan()
84 fs_objects = sb->s_op->nr_cached_objects(sb, sc); in super_cache_scan()
86 inodes = list_lru_shrink_count(&sb->s_inode_lru, sc); in super_cache_scan()
87 dentries = list_lru_shrink_count(&sb in super_cache_scan()
121 struct super_block *sb; super_cache_count() local
310 put_super(struct super_block *sb) put_super() argument
416 trylock_super(struct super_block *sb) trylock_super() argument
442 generic_shutdown_super(struct super_block *sb) generic_shutdown_super() argument
637 drop_super(struct super_block *sb) drop_super() argument
645 drop_super_exclusive(struct super_block *sb) drop_super_exclusive() argument
654 struct super_block *sb, *p = NULL; __iterate_supers() local
684 struct super_block *sb, *p = NULL; iterate_supers() local
720 struct super_block *sb, *p = NULL; iterate_supers_type() local
746 struct super_block *sb; __get_super() local
850 struct super_block *sb; get_active_super() local
873 struct super_block *sb; user_get_super() local
906 struct super_block *sb = fc->root->d_sb; reconfigure_super() local
1000 do_emergency_remount_callback(struct super_block *sb) do_emergency_remount_callback() argument
1036 do_thaw_all_callback(struct super_block *sb) do_thaw_all_callback() argument
1115 kill_anon_super(struct super_block *sb) kill_anon_super() argument
1123 kill_litter_super(struct super_block *sb) kill_litter_super() argument
1131 set_anon_super_fc(struct super_block *sb, struct fs_context *fc) set_anon_super_fc() argument
1137 test_keyed_super(struct super_block *sb, struct fs_context *fc) test_keyed_super() argument
1172 vfs_get_super(struct fs_context *fc, enum vfs_get_super_keying keying, int (*fill_super)(struct super_block *sb, struct fs_context *fc)) vfs_get_super() argument
1178 struct super_block *sb; vfs_get_super() local
1227 get_tree_nodev(struct fs_context *fc, int (*fill_super)(struct super_block *sb, struct fs_context *fc)) get_tree_nodev() argument
1235 get_tree_single(struct fs_context *fc, int (*fill_super)(struct super_block *sb, struct fs_context *fc)) get_tree_single() argument
1243 get_tree_single_reconf(struct fs_context *fc, int (*fill_super)(struct super_block *sb, struct fs_context *fc)) get_tree_single_reconf() argument
1251 get_tree_keyed(struct fs_context *fc, int (*fill_super)(struct super_block *sb, struct fs_context *fc), void *key) get_tree_keyed() argument
1450 kill_block_super(struct super_block *sb) kill_block_super() argument
1550 struct super_block *sb; vfs_get_tree() local
1607 super_setup_bdi_name(struct super_block *sb, char *fmt, ...) super_setup_bdi_name() argument
1635 super_setup_bdi(struct super_block *sb) super_setup_bdi() argument
1652 sb_wait_write(struct super_block *sb, int level) sb_wait_write() argument
1661 lockdep_sb_freeze_release(struct super_block *sb) lockdep_sb_freeze_release() argument
1672 lockdep_sb_freeze_acquire(struct super_block *sb) lockdep_sb_freeze_acquire() argument
1680 sb_freeze_unlock(struct super_block *sb, int level) sb_freeze_unlock() argument
1719 freeze_super(struct super_block *sb) freeze_super() argument
1795 thaw_super_locked(struct super_block *sb) thaw_super_locked() argument
1830 thaw_super(struct super_block *sb) thaw_super() argument
[all...]
/kernel/linux/linux-5.10/fs/ext4/
H A Dialloc.c79 static int ext4_validate_inode_bitmap(struct super_block *sb, in ext4_validate_inode_bitmap() argument
87 if (EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY) in ext4_validate_inode_bitmap()
90 grp = ext4_get_group_info(sb, block_group); in ext4_validate_inode_bitmap()
97 ext4_lock_group(sb, block_group); in ext4_validate_inode_bitmap()
100 blk = ext4_inode_bitmap(sb, desc); in ext4_validate_inode_bitmap()
101 if (!ext4_inode_bitmap_csum_verify(sb, block_group, desc, bh, in ext4_validate_inode_bitmap()
102 EXT4_INODES_PER_GROUP(sb) / 8) || in ext4_validate_inode_bitmap()
103 ext4_simulate_fail(sb, EXT4_SIM_IBITMAP_CRC)) { in ext4_validate_inode_bitmap()
104 ext4_unlock_group(sb, block_group); in ext4_validate_inode_bitmap()
105 ext4_error(sb, "Corrup in ext4_validate_inode_bitmap()
124 ext4_read_inode_bitmap(struct super_block *sb, ext4_group_t block_group) ext4_read_inode_bitmap() argument
237 struct super_block *sb = inode->i_sb; ext4_free_inode() local
374 get_orlov_stats(struct super_block *sb, ext4_group_t g, int flex_size, struct orlov_stats *stats) get_orlov_stats() argument
421 find_group_orlov(struct super_block *sb, struct inode *parent, ext4_group_t *group, umode_t mode, const struct qstr *qstr) find_group_orlov() argument
568 find_group_other(struct super_block *sb, struct inode *parent, ext4_group_t *group, umode_t mode) find_group_other() argument
673 recently_deleted(struct super_block *sb, ext4_group_t group, int ino) recently_deleted() argument
716 find_inode_bit(struct super_block *sb, ext4_group_t group, struct buffer_head *bitmap, unsigned long *ino) find_inode_bit() argument
750 ext4_mark_inode_used(struct super_block *sb, int ino) ext4_mark_inode_used() argument
869 struct super_block *sb = dir->i_sb; ext4_xattr_credits_for_new_inode() local
929 struct super_block *sb; __ext4_new_inode() local
1366 ext4_orphan_get(struct super_block *sb, unsigned long ino) ext4_orphan_get() argument
1438 ext4_count_free_inodes(struct super_block *sb) ext4_count_free_inodes() argument
1489 ext4_count_dirs(struct super_block * sb) ext4_count_dirs() argument
1511 ext4_init_inode_table(struct super_block *sb, ext4_group_t group, int barrier) ext4_init_inode_table() argument
[all...]
H A 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()
73 ext4_block_in_group(struct super_block *sb, ext4_fsblk_t block, ext4_group_t block_group) ext4_block_in_group() argument
86 ext4_num_overhead_clusters(struct super_block *sb, ext4_group_t block_group, struct ext4_group_desc *gdp) ext4_num_overhead_clusters() argument
159 num_clusters_in_group(struct super_block *sb, ext4_group_t block_group) num_clusters_in_group() argument
179 ext4_init_block_bitmap(struct super_block *sb, struct buffer_head *bh, ext4_group_t block_group, struct ext4_group_desc *gdp) ext4_init_block_bitmap() argument
238 ext4_free_clusters_after_init(struct super_block *sb, ext4_group_t block_group, struct ext4_group_desc *gdp) ext4_free_clusters_after_init() argument
264 ext4_get_group_desc(struct super_block *sb, ext4_group_t block_group, struct buffer_head **bh) ext4_get_group_desc() argument
306 ext4_valid_block_bitmap_padding(struct super_block *sb, ext4_group_t block_group, struct buffer_head *bh) ext4_valid_block_bitmap_padding() argument
322 ext4_get_group_info(struct super_block *sb, ext4_group_t group) ext4_get_group_info() argument
340 ext4_valid_block_bitmap(struct super_block *sb, struct ext4_group_desc *desc, ext4_group_t block_group, struct buffer_head *bh) ext4_valid_block_bitmap() argument
395 ext4_validate_block_bitmap(struct super_block *sb, struct ext4_group_desc *desc, ext4_group_t block_group, struct buffer_head *bh) ext4_validate_block_bitmap() argument
460 ext4_read_block_bitmap_nowait(struct super_block *sb, ext4_group_t block_group, bool ignore_locked) ext4_read_block_bitmap_nowait() argument
557 ext4_wait_block_bitmap(struct super_block *sb, ext4_group_t block_group, struct buffer_head *bh) ext4_wait_block_bitmap() argument
583 ext4_read_block_bitmap(struct super_block *sb, ext4_group_t block_group) ext4_read_block_bitmap() argument
677 ext4_should_retry_alloc(struct super_block *sb, int *retries) ext4_should_retry_alloc() argument
752 ext4_count_free_clusters(struct super_block *sb) ext4_count_free_clusters() argument
836 ext4_bg_has_super(struct super_block *sb, ext4_group_t group) ext4_bg_has_super() argument
859 ext4_bg_num_gdb_meta(struct super_block *sb, ext4_group_t group) ext4_bg_num_gdb_meta() argument
871 ext4_bg_num_gdb_nometa(struct super_block *sb, ext4_group_t group) ext4_bg_num_gdb_nometa() argument
892 ext4_bg_num_gdb(struct super_block *sb, ext4_group_t group) ext4_bg_num_gdb() argument
909 ext4_num_base_meta_blocks(struct super_block *sb, ext4_group_t block_group) ext4_num_base_meta_blocks() argument
931 ext4_num_base_meta_clusters(struct super_block *sb, ext4_group_t block_group) ext4_num_base_meta_clusters() argument
[all...]
H A 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()
59 if (EXT4_SB(sb)->s_es->s_reserved_gdt_blocks && in ext4_resize_begin()
60 !ext4_has_feature_resize_inode(sb)) { in ext4_resize_begin()
61 ext4_error(sb, "resize_inode disabled but reserved GDT blocks non-zero"); in ext4_resize_begin()
71 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) { in ext4_resize_begin()
72 ext4_warning(sb, "won't resize using backup superblock at %llu", in ext4_resize_begin()
73 (unsigned long long)EXT4_SB(sb)->s_sbh->b_blocknr); in ext4_resize_begin()
81 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { in ext4_resize_begin()
82 ext4_warning(sb, "Ther in ext4_resize_begin()
99 ext4_resize_end(struct super_block *sb) ext4_resize_end() argument
105 ext4_meta_bg_first_group(struct super_block *sb, ext4_group_t group) ext4_meta_bg_first_group() argument
111 ext4_meta_bg_first_block_no(struct super_block *sb, ext4_group_t group) ext4_meta_bg_first_block_no() argument
117 ext4_group_overhead_blocks(struct super_block *sb, ext4_group_t group) ext4_group_overhead_blocks() argument
130 verify_group_input(struct super_block *sb, struct ext4_new_group_data *input) verify_group_input() argument
304 ext4_alloc_group_tables(struct super_block *sb, struct ext4_new_flex_group_data *flex_gd, unsigned int flexbg_size) ext4_alloc_group_tables() argument
423 bclean(handle_t *handle, struct super_block *sb, ext4_fsblk_t blk) bclean() argument
459 set_flexbg_block_bitmap(struct super_block *sb, handle_t *handle, struct ext4_new_flex_group_data *flex_gd, ext4_fsblk_t first_cluster, ext4_fsblk_t last_cluster) set_flexbg_block_bitmap() argument
530 setup_new_flex_group_blocks(struct super_block *sb, struct ext4_new_flex_group_data *flex_gd) setup_new_flex_group_blocks() argument
733 ext4_list_backups(struct super_block *sb, unsigned *three, unsigned *five, unsigned *seven) ext4_list_backups() argument
766 verify_reserved_gdb(struct super_block *sb, ext4_group_t end, struct buffer_head *primary) verify_reserved_gdb() argument
812 struct super_block *sb = inode->i_sb; add_new_gdb() local
944 add_new_gdb_meta_bg(struct super_block *sb, handle_t *handle, ext4_group_t group) add_new_gdb_meta_bg() argument
1004 struct super_block *sb = inode->i_sb; reserve_backup_gdb() local
1115 update_backups(struct super_block *sb, sector_t blk_off, char *data, int size, int meta_bg) update_backups() argument
1223 ext4_add_new_descs(handle_t *handle, struct super_block *sb, ext4_group_t group, struct inode *resize_inode, ext4_group_t count) ext4_add_new_descs() argument
1266 ext4_get_bitmap(struct super_block *sb, __u64 block) ext4_get_bitmap() argument
1281 ext4_set_bitmap_checksums(struct super_block *sb, ext4_group_t group, struct ext4_group_desc *gdp, struct ext4_new_group_data *group_data) ext4_set_bitmap_checksums() argument
1310 ext4_setup_new_descs(handle_t *handle, struct super_block *sb, struct ext4_new_flex_group_data *flex_gd) ext4_setup_new_descs() argument
1379 ext4_update_super(struct super_block *sb, struct ext4_new_flex_group_data *flex_gd) ext4_update_super() argument
1488 ext4_flex_group_add(struct super_block *sb, struct inode *resize_inode, struct ext4_new_flex_group_data *flex_gd) ext4_flex_group_add() argument
1581 ext4_setup_next_flex_gd(struct super_block *sb, struct ext4_new_flex_group_data *flex_gd, ext4_fsblk_t n_blocks_count) ext4_setup_next_flex_gd() argument
1656 ext4_group_add(struct super_block *sb, struct ext4_new_group_data *input) ext4_group_add() argument
1726 ext4_group_extend_no_check(struct super_block *sb, ext4_fsblk_t o_blocks_count, ext4_grpblk_t add) ext4_group_extend_no_check() argument
1789 ext4_group_extend(struct super_block *sb, struct ext4_super_block *es, ext4_fsblk_t n_blocks_count) ext4_group_extend() argument
1856 num_desc_blocks(struct super_block *sb, ext4_group_t groups) num_desc_blocks() argument
1866 ext4_convert_meta_bg(struct super_block *sb, struct inode *inode) ext4_convert_meta_bg() argument
1952 ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count) ext4_resize_fs() argument
[all...]
/kernel/linux/linux-5.10/fs/hfs/
H A Dmdb.c32 static int hfs_get_last_session(struct super_block *sb, in hfs_get_last_session() argument
35 struct cdrom_device_info *cdi = disk_to_cdi(sb->s_bdev->bd_disk); in hfs_get_last_session()
39 *size = i_size_read(sb->s_bdev->bd_inode) >> 9; in hfs_get_last_session()
41 if (HFS_SB(sb)->session >= 0) { in hfs_get_last_session()
47 te.cdte_track = HFS_SB(sb)->session; in hfs_get_last_session()
73 int hfs_mdb_get(struct super_block *sb) in hfs_mdb_get() argument
85 size = sb_min_blocksize(sb, HFS_SECTOR_SIZE); in hfs_mdb_get()
89 if (hfs_get_last_session(sb, &part_start, &part_size)) in hfs_mdb_get()
93 bh = sb_bread512(sb, part_start + HFS_MDB_BLK, mdb); in hfs_mdb_get()
104 if (hfs_part_find(sb, in hfs_mdb_get()
264 hfs_mdb_commit(struct super_block *sb) hfs_mdb_commit() argument
340 hfs_mdb_close(struct super_block *sb) hfs_mdb_close() argument
354 hfs_mdb_put(struct super_block *sb) hfs_mdb_put() argument
[all...]
/kernel/linux/linux-6.6/fs/hfs/
H A Dmdb.c32 static int hfs_get_last_session(struct super_block *sb, in hfs_get_last_session() argument
35 struct cdrom_device_info *cdi = disk_to_cdi(sb->s_bdev->bd_disk); in hfs_get_last_session()
39 *size = bdev_nr_sectors(sb->s_bdev); in hfs_get_last_session()
41 if (HFS_SB(sb)->session >= 0) { in hfs_get_last_session()
47 te.cdte_track = HFS_SB(sb)->session; in hfs_get_last_session()
73 int hfs_mdb_get(struct super_block *sb) in hfs_mdb_get() argument
85 size = sb_min_blocksize(sb, HFS_SECTOR_SIZE); in hfs_mdb_get()
89 if (hfs_get_last_session(sb, &part_start, &part_size)) in hfs_mdb_get()
93 bh = sb_bread512(sb, part_start + HFS_MDB_BLK, mdb); in hfs_mdb_get()
104 if (hfs_part_find(sb, in hfs_mdb_get()
264 hfs_mdb_commit(struct super_block *sb) hfs_mdb_commit() argument
340 hfs_mdb_close(struct super_block *sb) hfs_mdb_close() argument
354 hfs_mdb_put(struct super_block *sb) hfs_mdb_put() argument
[all...]
/kernel/linux/linux-6.6/fs/ext4/
H A Dresize.c48 int ext4_resize_begin(struct super_block *sb) in ext4_resize_begin() argument
50 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_resize_begin()
60 if (EXT4_SB(sb)->s_es->s_reserved_gdt_blocks && in ext4_resize_begin()
61 !ext4_has_feature_resize_inode(sb)) { in ext4_resize_begin()
62 ext4_error(sb, "resize_inode disabled but reserved GDT blocks non-zero"); in ext4_resize_begin()
72 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) { in ext4_resize_begin()
73 ext4_warning(sb, "won't resize using backup superblock at %llu", in ext4_resize_begin()
74 (unsigned long long)EXT4_SB(sb)->s_sbh->b_blocknr); in ext4_resize_begin()
82 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { in ext4_resize_begin()
83 ext4_warning(sb, "Ther in ext4_resize_begin()
100 ext4_resize_end(struct super_block *sb, bool update_backups) ext4_resize_end() argument
109 ext4_meta_bg_first_group(struct super_block *sb, ext4_group_t group) ext4_meta_bg_first_group() argument
115 ext4_meta_bg_first_block_no(struct super_block *sb, ext4_group_t group) ext4_meta_bg_first_block_no() argument
121 ext4_group_overhead_blocks(struct super_block *sb, ext4_group_t group) ext4_group_overhead_blocks() argument
134 verify_group_input(struct super_block *sb, struct ext4_new_group_data *input) verify_group_input() argument
305 ext4_alloc_group_tables(struct super_block *sb, struct ext4_new_flex_group_data *flex_gd, unsigned int flexbg_size) ext4_alloc_group_tables() argument
424 bclean(handle_t *handle, struct super_block *sb, ext4_fsblk_t blk) bclean() argument
461 set_flexbg_block_bitmap(struct super_block *sb, handle_t *handle, struct ext4_new_flex_group_data *flex_gd, ext4_fsblk_t first_cluster, ext4_fsblk_t last_cluster) set_flexbg_block_bitmap() argument
533 setup_new_flex_group_blocks(struct super_block *sb, struct ext4_new_flex_group_data *flex_gd) setup_new_flex_group_blocks() argument
737 ext4_list_backups(struct super_block *sb, unsigned int *three, unsigned int *five, unsigned int *seven) ext4_list_backups() argument
781 verify_reserved_gdb(struct super_block *sb, ext4_group_t end, struct buffer_head *primary) verify_reserved_gdb() argument
827 struct super_block *sb = inode->i_sb; add_new_gdb() local
960 add_new_gdb_meta_bg(struct super_block *sb, handle_t *handle, ext4_group_t group) add_new_gdb_meta_bg() argument
1020 struct super_block *sb = inode->i_sb; reserve_backup_gdb() local
1116 ext4_set_block_group_nr(struct super_block *sb, char *data, ext4_group_t group) ext4_set_block_group_nr() argument
1142 update_backups(struct super_block *sb, sector_t blk_off, char *data, int size, int meta_bg) update_backups() argument
1254 ext4_add_new_descs(handle_t *handle, struct super_block *sb, ext4_group_t group, struct inode *resize_inode, ext4_group_t count) ext4_add_new_descs() argument
1298 ext4_get_bitmap(struct super_block *sb, __u64 block) ext4_get_bitmap() argument
1313 ext4_set_bitmap_checksums(struct super_block *sb, struct ext4_group_desc *gdp, struct ext4_new_group_data *group_data) ext4_set_bitmap_checksums() argument
1341 ext4_setup_new_descs(handle_t *handle, struct super_block *sb, struct ext4_new_flex_group_data *flex_gd) ext4_setup_new_descs() argument
1403 ext4_add_overhead(struct super_block *sb, const ext4_fsblk_t overhead) ext4_add_overhead() argument
1421 ext4_update_super(struct super_block *sb, struct ext4_new_flex_group_data *flex_gd) ext4_update_super() argument
1538 ext4_flex_group_add(struct super_block *sb, struct inode *resize_inode, struct ext4_new_flex_group_data *flex_gd) ext4_flex_group_add() argument
1632 ext4_setup_next_flex_gd(struct super_block *sb, struct ext4_new_flex_group_data *flex_gd, ext4_fsblk_t n_blocks_count) ext4_setup_next_flex_gd() argument
1707 ext4_group_add(struct super_block *sb, struct ext4_new_group_data *input) ext4_group_add() argument
1777 ext4_group_extend_no_check(struct super_block *sb, ext4_fsblk_t o_blocks_count, ext4_grpblk_t add) ext4_group_extend_no_check() argument
1841 ext4_group_extend(struct super_block *sb, struct ext4_super_block *es, ext4_fsblk_t n_blocks_count) ext4_group_extend() argument
1906 num_desc_blocks(struct super_block *sb, ext4_group_t groups) num_desc_blocks() argument
1916 ext4_convert_meta_bg(struct super_block *sb, struct inode *inode) ext4_convert_meta_bg() argument
2003 ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count) ext4_resize_fs() argument
[all...]
H A 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()
73 ext4_block_in_group(struct super_block *sb, ext4_fsblk_t block, ext4_group_t block_group) ext4_block_in_group() argument
87 ext4_num_overhead_clusters(struct super_block *sb, ext4_group_t block_group, struct ext4_group_desc *gdp) ext4_num_overhead_clusters() argument
163 num_clusters_in_group(struct super_block *sb, ext4_group_t block_group) num_clusters_in_group() argument
183 ext4_init_block_bitmap(struct super_block *sb, struct buffer_head *bh, ext4_group_t block_group, struct ext4_group_desc *gdp) ext4_init_block_bitmap() argument
240 ext4_free_clusters_after_init(struct super_block *sb, ext4_group_t block_group, struct ext4_group_desc *gdp) ext4_free_clusters_after_init() argument
266 ext4_get_group_desc(struct super_block *sb, ext4_group_t block_group, struct buffer_head **bh) ext4_get_group_desc() argument
308 ext4_valid_block_bitmap_padding(struct super_block *sb, ext4_group_t block_group, struct buffer_head *bh) ext4_valid_block_bitmap_padding() argument
324 ext4_get_group_info(struct super_block *sb, ext4_group_t group) ext4_get_group_info() argument
342 ext4_valid_block_bitmap(struct super_block *sb, struct ext4_group_desc *desc, ext4_group_t block_group, struct buffer_head *bh) ext4_valid_block_bitmap() argument
397 ext4_validate_block_bitmap(struct super_block *sb, struct ext4_group_desc *desc, ext4_group_t block_group, struct buffer_head *bh) ext4_validate_block_bitmap() argument
462 ext4_read_block_bitmap_nowait(struct super_block *sb, ext4_group_t block_group, bool ignore_locked) ext4_read_block_bitmap_nowait() argument
561 ext4_wait_block_bitmap(struct super_block *sb, ext4_group_t block_group, struct buffer_head *bh) ext4_wait_block_bitmap() argument
587 ext4_read_block_bitmap(struct super_block *sb, ext4_group_t block_group) ext4_read_block_bitmap() argument
681 ext4_should_retry_alloc(struct super_block *sb, int *retries) ext4_should_retry_alloc() argument
762 ext4_count_free_clusters(struct super_block *sb) ext4_count_free_clusters() argument
846 ext4_bg_has_super(struct super_block *sb, ext4_group_t group) ext4_bg_has_super() argument
869 ext4_bg_num_gdb_meta(struct super_block *sb, ext4_group_t group) ext4_bg_num_gdb_meta() argument
881 ext4_bg_num_gdb_nometa(struct super_block *sb, ext4_group_t group) ext4_bg_num_gdb_nometa() argument
902 ext4_bg_num_gdb(struct super_block *sb, ext4_group_t group) ext4_bg_num_gdb() argument
919 ext4_num_base_meta_blocks(struct super_block *sb, ext4_group_t block_group) ext4_num_base_meta_blocks() argument
941 ext4_num_base_meta_clusters(struct super_block *sb, ext4_group_t block_group) ext4_num_base_meta_clusters() argument
[all...]
/kernel/linux/linux-6.6/fs/
H A Dsuper.c42 static int thaw_super_locked(struct super_block *sb, enum freeze_holder who);
53 static inline void __super_lock(struct super_block *sb, bool excl) in __super_lock() argument
56 down_write(&sb->s_umount); in __super_lock()
58 down_read(&sb->s_umount); in __super_lock()
61 static inline void super_unlock(struct super_block *sb, bool excl) in super_unlock() argument
64 up_write(&sb->s_umount); in super_unlock()
66 up_read(&sb->s_umount); in super_unlock()
69 static inline void __super_lock_excl(struct super_block *sb) in __super_lock_excl() argument
71 __super_lock(sb, true); in __super_lock_excl()
74 static inline void super_unlock_excl(struct super_block *sb) in super_unlock_excl() argument
79 super_unlock_shared(struct super_block *sb) super_unlock_shared() argument
84 wait_born(struct super_block *sb) wait_born() argument
111 super_lock(struct super_block *sb, bool excl) super_lock() argument
144 super_lock_shared(struct super_block *sb) super_lock_shared() argument
150 super_lock_excl(struct super_block *sb) super_lock_excl() argument
157 super_wake(struct super_block *sb, unsigned int flag) super_wake() argument
187 struct super_block *sb; super_cache_scan() local
244 struct super_block *sb; super_cache_count() local
430 put_super(struct super_block *sb) put_super() argument
437 kill_super_notify(struct super_block *sb) kill_super_notify() argument
549 wait_dead(struct super_block *sb) wait_dead() argument
573 grab_super_dead(struct super_block *sb) grab_super_dead() argument
605 super_trylock_shared(struct super_block *sb) super_trylock_shared() argument
633 retire_super(struct super_block *sb) retire_super() argument
660 generic_shutdown_super(struct super_block *sb) generic_shutdown_super() argument
909 drop_super(struct super_block *sb) drop_super() argument
917 drop_super_exclusive(struct super_block *sb) drop_super_exclusive() argument
926 struct super_block *sb, *p = NULL; __iterate_supers() local
957 struct super_block *sb, *p = NULL; iterate_supers() local
993 struct super_block *sb, *p = NULL; iterate_supers_type() local
1029 struct super_block *sb; get_active_super() local
1049 struct super_block *sb; user_get_super() local
1081 struct super_block *sb = fc->root->d_sb; reconfigure_super() local
1171 do_emergency_remount_callback(struct super_block *sb) do_emergency_remount_callback() argument
1207 do_thaw_all_callback(struct super_block *sb) do_thaw_all_callback() argument
1289 kill_anon_super(struct super_block *sb) kill_anon_super() argument
1298 kill_litter_super(struct super_block *sb) kill_litter_super() argument
1306 set_anon_super_fc(struct super_block *sb, struct fs_context *fc) set_anon_super_fc() argument
1312 test_keyed_super(struct super_block *sb, struct fs_context *fc) test_keyed_super() argument
1322 vfs_get_super(struct fs_context *fc, int (*test)(struct super_block *, struct fs_context *), int (*fill_super)(struct super_block *sb, struct fs_context *fc)) vfs_get_super() argument
1327 struct super_block *sb; vfs_get_super() local
1350 get_tree_nodev(struct fs_context *fc, int (*fill_super)(struct super_block *sb, struct fs_context *fc)) get_tree_nodev() argument
1358 get_tree_single(struct fs_context *fc, int (*fill_super)(struct super_block *sb, struct fs_context *fc)) get_tree_single() argument
1366 get_tree_keyed(struct fs_context *fc, int (*fill_super)(struct super_block *sb, struct fs_context *fc), void *key) get_tree_keyed() argument
1429 super_lock_shared_active(struct super_block *sb) super_lock_shared_active() argument
1442 struct super_block *sb = bdev->bd_holder; fs_bdev_mark_dead() local
1462 struct super_block *sb = bdev->bd_holder; fs_bdev_sync() local
1478 setup_bdev_super(struct super_block *sb, int sb_flags, struct fs_context *fc) setup_bdev_super() argument
1642 kill_block_super(struct super_block *sb) kill_block_super() argument
1741 struct super_block *sb; vfs_get_tree() local
1798 super_setup_bdi_name(struct super_block *sb, char *fmt, ...) super_setup_bdi_name() argument
1827 super_setup_bdi(struct super_block *sb) super_setup_bdi() argument
1844 sb_wait_write(struct super_block *sb, int level) sb_wait_write() argument
1853 lockdep_sb_freeze_release(struct super_block *sb) lockdep_sb_freeze_release() argument
1864 lockdep_sb_freeze_acquire(struct super_block *sb) lockdep_sb_freeze_acquire() argument
1872 sb_freeze_unlock(struct super_block *sb, int level) sb_freeze_unlock() argument
1878 wait_for_partially_frozen(struct super_block *sb) wait_for_partially_frozen() argument
1940 freeze_super(struct super_block *sb, enum freeze_holder who) freeze_super() argument
2046 thaw_super_locked(struct super_block *sb, enum freeze_holder who) thaw_super_locked() argument
2111 thaw_super(struct super_block *sb, enum freeze_holder who) thaw_super() argument
2125 sb_init_dio_done_wq(struct super_block *sb) sb_init_dio_done_wq() argument
[all...]
/kernel/linux/linux-6.6/lib/
H A Dsbitmap.c12 static int init_alloc_hint(struct sbitmap *sb, gfp_t flags) in init_alloc_hint() argument
14 unsigned depth = sb->depth; in init_alloc_hint()
16 sb->alloc_hint = alloc_percpu_gfp(unsigned int, flags); in init_alloc_hint()
17 if (!sb->alloc_hint) in init_alloc_hint()
20 if (depth && !sb->round_robin) { in init_alloc_hint()
24 *per_cpu_ptr(sb->alloc_hint, i) = get_random_u32_below(depth); in init_alloc_hint()
29 static inline unsigned update_alloc_hint_before_get(struct sbitmap *sb, in update_alloc_hint_before_get() argument
34 hint = this_cpu_read(*sb->alloc_hint); in update_alloc_hint_before_get()
37 this_cpu_write(*sb->alloc_hint, hint); in update_alloc_hint_before_get()
43 static inline void update_alloc_hint_after_get(struct sbitmap *sb, in update_alloc_hint_after_get() argument
83 sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift, gfp_t flags, int node, bool round_robin, bool alloc_hint) sbitmap_init_node() argument
123 sbitmap_resize(struct sbitmap *sb, unsigned int depth) sbitmap_resize() argument
189 sbitmap_find_bit(struct sbitmap *sb, unsigned int depth, unsigned int index, unsigned int alloc_hint, bool wrap) sbitmap_find_bit() argument
219 __sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint) __sbitmap_get() argument
239 sbitmap_get(struct sbitmap *sb) sbitmap_get() argument
256 __sbitmap_get_shallow(struct sbitmap *sb, unsigned int alloc_hint, unsigned long shallow_depth) __sbitmap_get_shallow() argument
268 sbitmap_get_shallow(struct sbitmap *sb, unsigned long shallow_depth) sbitmap_get_shallow() argument
285 sbitmap_any_bit_set(const struct sbitmap *sb) sbitmap_any_bit_set() argument
297 __sbitmap_weight(const struct sbitmap *sb, bool set) __sbitmap_weight() argument
313 sbitmap_cleared(const struct sbitmap *sb) sbitmap_cleared() argument
318 sbitmap_weight(const struct sbitmap *sb) sbitmap_weight() argument
324 sbitmap_show(struct sbitmap *sb, struct seq_file *m) sbitmap_show() argument
346 sbitmap_bitmap_show(struct sbitmap *sb, struct seq_file *m) sbitmap_bitmap_show() argument
485 struct sbitmap *sb = &sbq->sb; __sbitmap_queue_get_batch() local
603 sbitmap_update_cpu_hint(struct sbitmap *sb, int cpu, int tag) sbitmap_update_cpu_hint() argument
612 struct sbitmap *sb = &sbq->sb; sbitmap_queue_clear_batch() local
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dsbitmap.h99 * @sb: Scalable bitmap.
101 struct sbitmap sb; member
146 * @sb: Bitmap to initialize.
155 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
160 * @sb: Bitmap to free.
162 static inline void sbitmap_free(struct sbitmap *sb) in sbitmap_free() argument
164 kfree(sb->map); in sbitmap_free()
165 sb->map = NULL; in sbitmap_free()
170 * @sb: Bitmap to resize.
174 * depth doesn't exceed the depth that the sb wa
234 __sbitmap_for_each_set(struct sbitmap *sb, unsigned int start, sb_for_each_fn fn, void *data) __sbitmap_for_each_set() argument
286 sbitmap_for_each_set(struct sbitmap *sb, sb_for_each_fn fn, void *data) sbitmap_for_each_set() argument
292 __sbitmap_word(struct sbitmap *sb, unsigned int bitnr) __sbitmap_word() argument
300 sbitmap_set_bit(struct sbitmap *sb, unsigned int bitnr) sbitmap_set_bit() argument
305 sbitmap_clear_bit(struct sbitmap *sb, unsigned int bitnr) sbitmap_clear_bit() argument
316 sbitmap_deferred_clear_bit(struct sbitmap *sb, unsigned int bitnr) sbitmap_deferred_clear_bit() argument
323 sbitmap_clear_bit_unlock(struct sbitmap *sb, unsigned int bitnr) sbitmap_clear_bit_unlock() argument
329 sbitmap_test_bit(struct sbitmap *sb, unsigned int bitnr) sbitmap_test_bit() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_ste_v0.c737 struct mlx5dr_ste_build *sb, in dr_ste_v0_build_eth_l2_src_dst_tag()
740 struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer; in dr_ste_v0_build_eth_l2_src_dst_tag()
781 dr_ste_v0_build_eth_l2_src_dst_init(struct mlx5dr_ste_build *sb, in dr_ste_v0_build_eth_l2_src_dst_init() argument
784 dr_ste_v0_build_eth_l2_src_dst_bit_mask(mask, sb->inner, sb->bit_mask); in dr_ste_v0_build_eth_l2_src_dst_init()
786 sb->lu_type = DR_STE_CALC_LU_TYPE(ETHL2_SRC_DST, sb->rx, sb->inner); in dr_ste_v0_build_eth_l2_src_dst_init()
787 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb in dr_ste_v0_build_eth_l2_src_dst_init()
736 dr_ste_v0_build_eth_l2_src_dst_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_eth_l2_src_dst_tag() argument
792 dr_ste_v0_build_eth_l3_ipv6_dst_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_eth_l3_ipv6_dst_tag() argument
807 dr_ste_v0_build_eth_l3_ipv6_dst_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_eth_l3_ipv6_dst_init() argument
818 dr_ste_v0_build_eth_l3_ipv6_src_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_eth_l3_ipv6_src_tag() argument
833 dr_ste_v0_build_eth_l3_ipv6_src_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_eth_l3_ipv6_src_init() argument
844 dr_ste_v0_build_eth_l3_ipv4_5_tuple_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_eth_l3_ipv4_5_tuple_tag() argument
870 dr_ste_v0_build_eth_l3_ipv4_5_tuple_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_eth_l3_ipv4_5_tuple_init() argument
1005 dr_ste_v0_build_eth_l2_src_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_eth_l2_src_tag() argument
1018 dr_ste_v0_build_eth_l2_src_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_eth_l2_src_init() argument
1028 dr_ste_v0_build_eth_l2_dst_bit_mask(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *bit_mask) dr_ste_v0_build_eth_l2_dst_bit_mask() argument
1041 dr_ste_v0_build_eth_l2_dst_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_eth_l2_dst_tag() argument
1054 dr_ste_v0_build_eth_l2_dst_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_eth_l2_dst_init() argument
1094 dr_ste_v0_build_eth_l2_tnl_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_eth_l2_tnl_tag() argument
1139 dr_ste_v0_build_eth_l2_tnl_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_eth_l2_tnl_init() argument
1150 dr_ste_v0_build_eth_l3_ipv4_misc_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_eth_l3_ipv4_misc_tag() argument
1163 dr_ste_v0_build_eth_l3_ipv4_misc_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_eth_l3_ipv4_misc_init() argument
1174 dr_ste_v0_build_eth_ipv6_l3_l4_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_eth_ipv6_l3_l4_tag() argument
1205 dr_ste_v0_build_eth_ipv6_l3_l4_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_eth_ipv6_l3_l4_init() argument
1216 dr_ste_v0_build_mpls_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_mpls_tag() argument
1231 dr_ste_v0_build_mpls_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_mpls_init() argument
1242 dr_ste_v0_build_tnl_gre_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_tnl_gre_tag() argument
1262 dr_ste_v0_build_tnl_gre_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_tnl_gre_init() argument
1273 dr_ste_v0_build_tnl_mpls_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_tnl_mpls_tag() argument
1305 dr_ste_v0_build_tnl_mpls_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_tnl_mpls_init() argument
1316 dr_ste_v0_build_tnl_mpls_over_udp_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_tnl_mpls_over_udp_tag() argument
1342 dr_ste_v0_build_tnl_mpls_over_udp_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_tnl_mpls_over_udp_init() argument
1358 dr_ste_v0_build_tnl_mpls_over_gre_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_tnl_mpls_over_gre_tag() argument
1384 dr_ste_v0_build_tnl_mpls_over_gre_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_tnl_mpls_over_gre_init() argument
1404 dr_ste_v0_build_icmp_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_icmp_tag() argument
1448 dr_ste_v0_build_icmp_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_icmp_init() argument
1470 dr_ste_v0_build_general_purpose_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_general_purpose_tag() argument
1483 dr_ste_v0_build_general_purpose_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_general_purpose_init() argument
1494 dr_ste_v0_build_eth_l4_misc_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_eth_l4_misc_tag() argument
1512 dr_ste_v0_build_eth_l4_misc_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_eth_l4_misc_init() argument
1523 dr_ste_v0_build_flex_parser_tnl_vxlan_gpe_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_flex_parser_tnl_vxlan_gpe_tag() argument
1543 dr_ste_v0_build_flex_parser_tnl_vxlan_gpe_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_flex_parser_tnl_vxlan_gpe_init() argument
1553 dr_ste_v0_build_flex_parser_tnl_geneve_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_flex_parser_tnl_geneve_tag() argument
1572 dr_ste_v0_build_flex_parser_tnl_geneve_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_flex_parser_tnl_geneve_init() argument
1582 dr_ste_v0_build_register_0_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_register_0_tag() argument
1597 dr_ste_v0_build_register_0_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_register_0_init() argument
1608 dr_ste_v0_build_register_1_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_register_1_tag() argument
1623 dr_ste_v0_build_register_1_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_register_1_init() argument
1645 dr_ste_v0_build_src_gvmi_qpn_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_src_gvmi_qpn_tag() argument
1695 dr_ste_v0_build_src_gvmi_qpn_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_src_gvmi_qpn_init() argument
1724 dr_ste_v0_build_flex_parser_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_flex_parser_tag() argument
1750 dr_ste_v0_build_flex_parser_0_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_flex_parser_0_init() argument
1759 dr_ste_v0_build_flex_parser_1_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_flex_parser_1_init() argument
1769 dr_ste_v0_build_flex_parser_tnl_geneve_tlv_opt_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_flex_parser_tnl_geneve_tlv_opt_tag() argument
1785 dr_ste_v0_build_flex_parser_tnl_geneve_tlv_opt_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_flex_parser_tnl_geneve_tlv_opt_init() argument
1801 dr_ste_v0_build_flex_parser_tnl_gtpu_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_flex_parser_tnl_gtpu_tag() argument
1820 dr_ste_v0_build_flex_parser_tnl_gtpu_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_flex_parser_tnl_gtpu_init() argument
1831 dr_ste_v0_build_tnl_gtpu_flex_parser_0_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_tnl_gtpu_flex_parser_0_tag() argument
1847 dr_ste_v0_build_tnl_gtpu_flex_parser_0_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_tnl_gtpu_flex_parser_0_init() argument
1858 dr_ste_v0_build_tnl_gtpu_flex_parser_1_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, u8 *tag) dr_ste_v0_build_tnl_gtpu_flex_parser_1_tag() argument
1874 dr_ste_v0_build_tnl_gtpu_flex_parser_1_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_tnl_gtpu_flex_parser_1_init() argument
1884 dr_ste_v0_build_tnl_header_0_1_tag(struct mlx5dr_match_param *value, struct mlx5dr_ste_build *sb, uint8_t *tag) dr_ste_v0_build_tnl_header_0_1_tag() argument
1896 dr_ste_v0_build_tnl_header_0_1_init(struct mlx5dr_ste_build *sb, struct mlx5dr_match_param *mask) dr_ste_v0_build_tnl_header_0_1_init() argument
[all...]
/kernel/linux/linux-6.6/fs/ufs/
H A Dsuper.c99 static struct inode *ufs_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation) in ufs_nfs_get_inode() argument
101 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; in ufs_nfs_get_inode()
107 inode = ufs_iget(sb, ino); in ufs_nfs_get_inode()
117 static struct dentry *ufs_fh_to_dentry(struct super_block *sb, struct fid *fid, in ufs_fh_to_dentry() argument
120 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, ufs_nfs_get_inode); in ufs_fh_to_dentry()
123 static struct dentry *ufs_fh_to_parent(struct super_block *sb, struct fid *fid, in ufs_fh_to_parent() argument
126 return generic_fh_to_parent(sb, fid, fh_len, fh_type, ufs_nfs_get_inode); in ufs_fh_to_parent()
149 static void ufs_print_super_stuff(struct super_block *sb, in ufs_print_super_stuff() argument
154 u32 magic = fs32_to_cpu(sb, usb3->fs_magic); in ufs_print_super_stuff()
158 if (fs32_to_cpu(sb, usb in ufs_print_super_stuff()
228 ufs_print_cylinder_stuff(struct super_block *sb, struct ufs_cylinder_group *cg) ufs_print_cylinder_stuff() argument
271 ufs_error(struct super_block * sb, const char * function, const char * fmt, ...) ufs_error() argument
305 ufs_panic(struct super_block * sb, const char * function, const char * fmt, ...) ufs_panic() argument
330 ufs_warning(struct super_block * sb, const char * function, const char * fmt, ...) ufs_warning() argument
469 ufs_setup_cstotal(struct super_block *sb) ufs_setup_cstotal() argument
503 ufs_read_cylinder_structures(struct super_block *sb) ufs_read_cylinder_structures() argument
589 ufs_put_cstotal(struct super_block *sb) ufs_put_cstotal() argument
643 ufs_put_super_internal(struct super_block *sb) ufs_put_super_internal() argument
685 ufs_sync_fs(struct super_block *sb, int wait) ufs_sync_fs() argument
728 ufs_mark_sb_dirty(struct super_block *sb) ufs_mark_sb_dirty() argument
742 ufs_put_super(struct super_block *sb) ufs_put_super() argument
760 ufs_max_bytes(struct super_block *sb) ufs_max_bytes() argument
777 ufs_fill_super(struct super_block *sb, void *data, int silent) ufs_fill_super() argument
1307 ufs_remount(struct super_block *sb, int *mount_flags, char *data) ufs_remount() argument
1413 struct super_block *sb = dentry->d_sb; ufs_statfs() local
1442 ufs_alloc_inode(struct super_block *sb) ufs_alloc_inode() argument
[all...]
/kernel/linux/linux-5.10/fs/ufs/
H A Dsuper.c99 static struct inode *ufs_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation) in ufs_nfs_get_inode() argument
101 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; in ufs_nfs_get_inode()
107 inode = ufs_iget(sb, ino); in ufs_nfs_get_inode()
117 static struct dentry *ufs_fh_to_dentry(struct super_block *sb, struct fid *fid, in ufs_fh_to_dentry() argument
120 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, ufs_nfs_get_inode); in ufs_fh_to_dentry()
123 static struct dentry *ufs_fh_to_parent(struct super_block *sb, struct fid *fid, in ufs_fh_to_parent() argument
126 return generic_fh_to_parent(sb, fid, fh_len, fh_type, ufs_nfs_get_inode); in ufs_fh_to_parent()
150 static void ufs_print_super_stuff(struct super_block *sb, in ufs_print_super_stuff() argument
155 u32 magic = fs32_to_cpu(sb, usb3->fs_magic); in ufs_print_super_stuff()
159 if (fs32_to_cpu(sb, usb in ufs_print_super_stuff()
229 ufs_print_cylinder_stuff(struct super_block *sb, struct ufs_cylinder_group *cg) ufs_print_cylinder_stuff() argument
272 ufs_error(struct super_block * sb, const char * function, const char * fmt, ...) ufs_error() argument
306 ufs_panic(struct super_block * sb, const char * function, const char * fmt, ...) ufs_panic() argument
331 ufs_warning(struct super_block * sb, const char * function, const char * fmt, ...) ufs_warning() argument
470 ufs_setup_cstotal(struct super_block *sb) ufs_setup_cstotal() argument
504 ufs_read_cylinder_structures(struct super_block *sb) ufs_read_cylinder_structures() argument
590 ufs_put_cstotal(struct super_block *sb) ufs_put_cstotal() argument
644 ufs_put_super_internal(struct super_block *sb) ufs_put_super_internal() argument
686 ufs_sync_fs(struct super_block *sb, int wait) ufs_sync_fs() argument
729 ufs_mark_sb_dirty(struct super_block *sb) ufs_mark_sb_dirty() argument
743 ufs_put_super(struct super_block *sb) ufs_put_super() argument
761 ufs_max_bytes(struct super_block *sb) ufs_max_bytes() argument
778 ufs_fill_super(struct super_block *sb, void *data, int silent) ufs_fill_super() argument
1308 ufs_remount(struct super_block *sb, int *mount_flags, char *data) ufs_remount() argument
1414 struct super_block *sb = dentry->d_sb; ufs_statfs() local
1443 ufs_alloc_inode(struct super_block *sb) ufs_alloc_inode() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dsbitmap.h106 * @sb: Scalable bitmap.
108 struct sbitmap sb; member
151 * @sb: Bitmap to initialize.
165 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
169 static inline unsigned int __map_depth(const struct sbitmap *sb, int index) in __map_depth() argument
171 if (index == sb->map_nr - 1) in __map_depth()
172 return sb->depth - (index << sb->shift); in __map_depth()
173 return 1U << sb->shift; in __map_depth()
178 * @sb
180 sbitmap_free(struct sbitmap *sb) sbitmap_free() argument
247 __sbitmap_for_each_set(struct sbitmap *sb, unsigned int start, sb_for_each_fn fn, void *data) __sbitmap_for_each_set() argument
299 sbitmap_for_each_set(struct sbitmap *sb, sb_for_each_fn fn, void *data) sbitmap_for_each_set() argument
305 __sbitmap_word(struct sbitmap *sb, unsigned int bitnr) __sbitmap_word() argument
313 sbitmap_set_bit(struct sbitmap *sb, unsigned int bitnr) sbitmap_set_bit() argument
318 sbitmap_clear_bit(struct sbitmap *sb, unsigned int bitnr) sbitmap_clear_bit() argument
329 sbitmap_deferred_clear_bit(struct sbitmap *sb, unsigned int bitnr) sbitmap_deferred_clear_bit() argument
340 sbitmap_put(struct sbitmap *sb, unsigned int bitnr) sbitmap_put() argument
348 sbitmap_test_bit(struct sbitmap *sb, unsigned int bitnr) sbitmap_test_bit() argument
[all...]
/kernel/linux/linux-5.10/drivers/md/bcache/
H A Dfeatures.h26 #define BCH_HAS_COMPAT_FEATURE(sb, mask) \
27 ((sb)->feature_compat & (mask))
28 #define BCH_HAS_RO_COMPAT_FEATURE(sb, mask) \
29 ((sb)->feature_ro_compat & (mask))
30 #define BCH_HAS_INCOMPAT_FEATURE(sb, mask) \
31 ((sb)->feature_incompat & (mask))
34 static inline int bch_has_feature_##name(struct cache_sb *sb) \
36 if (sb->version < BCACHE_SB_VERSION_CDEV_WITH_FEATURES) \
38 return (((sb)->feature_compat & \
41 static inline void bch_set_feature_##name(struct cache_sb *sb) \
93 bch_has_unknown_compat_features(struct cache_sb *sb) bch_has_unknown_compat_features() argument
98 bch_has_unknown_ro_compat_features(struct cache_sb *sb) bch_has_unknown_ro_compat_features() argument
103 bch_has_unknown_incompat_features(struct cache_sb *sb) bch_has_unknown_incompat_features() argument
[all...]
/kernel/linux/linux-6.6/drivers/md/bcache/
H A Dfeatures.h27 #define BCH_HAS_COMPAT_FEATURE(sb, mask) \
28 ((sb)->feature_compat & (mask))
29 #define BCH_HAS_RO_COMPAT_FEATURE(sb, mask) \
30 ((sb)->feature_ro_compat & (mask))
31 #define BCH_HAS_INCOMPAT_FEATURE(sb, mask) \
32 ((sb)->feature_incompat & (mask))
35 static inline int bch_has_feature_##name(struct cache_sb *sb) \
37 if (sb->version < BCACHE_SB_VERSION_CDEV_WITH_FEATURES) \
39 return (((sb)->feature_compat & \
42 static inline void bch_set_feature_##name(struct cache_sb *sb) \
94 bch_has_unknown_compat_features(struct cache_sb *sb) bch_has_unknown_compat_features() argument
99 bch_has_unknown_ro_compat_features(struct cache_sb *sb) bch_has_unknown_ro_compat_features() argument
104 bch_has_unknown_incompat_features(struct cache_sb *sb) bch_has_unknown_incompat_features() argument
[all...]

Completed in 19 milliseconds

12345678910>>...71