/Linux-v5.15/fs/befs/ |
D | debug.c | 29 befs_error(const struct super_block *sb, const char *fmt, ...) in befs_error() argument 37 pr_err("(%s): %pV\n", sb->s_id, &vaf); in befs_error() 42 befs_warning(const struct super_block *sb, const char *fmt, ...) in befs_warning() argument 50 pr_warn("(%s): %pV\n", sb->s_id, &vaf); in befs_warning() 55 befs_debug(const struct super_block *sb, const char *fmt, ...) in befs_debug() argument 65 pr_debug("(%s): %pV\n", sb->s_id, &vaf); in befs_debug() 72 befs_dump_inode(const struct super_block *sb, befs_inode *inode) in befs_dump_inode() argument 78 befs_debug(sb, "befs_inode information"); in befs_dump_inode() 80 befs_debug(sb, " magic1 %08x", fs32_to_cpu(sb, inode->magic1)); in befs_dump_inode() 82 tmp_run = fsrun_to_cpu(sb, inode->inode_num); in befs_dump_inode() [all …]
|
D | datastream.c | 24 static int befs_find_brun_direct(struct super_block *sb, 28 static int befs_find_brun_indirect(struct super_block *sb, 33 static int befs_find_brun_dblindirect(struct super_block *sb, 49 befs_read_datastream(struct super_block *sb, const befs_data_stream *ds, in befs_read_datastream() argument 56 befs_debug(sb, "---> %s %llu", __func__, pos); in befs_read_datastream() 57 block = pos >> BEFS_SB(sb)->block_shift; in befs_read_datastream() 59 *off = pos - (block << BEFS_SB(sb)->block_shift); in befs_read_datastream() 61 if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) { in befs_read_datastream() 62 befs_error(sb, "BeFS: Error finding disk addr of block %lu", in befs_read_datastream() 64 befs_debug(sb, "<--- %s ERROR", __func__); in befs_read_datastream() [all …]
|
D | btree.c | 91 static int befs_btree_seekleaf(struct super_block *sb, const befs_data_stream *ds, 96 static int befs_bt_read_super(struct super_block *sb, const befs_data_stream *ds, 99 static int befs_bt_read_node(struct super_block *sb, const befs_data_stream *ds, 111 static int befs_find_key(struct super_block *sb, 115 static char *befs_bt_get_key(struct super_block *sb, 134 befs_bt_read_super(struct super_block *sb, const befs_data_stream *ds, in befs_bt_read_super() argument 140 befs_debug(sb, "---> %s", __func__); in befs_bt_read_super() 142 bh = befs_read_datastream(sb, ds, 0, NULL); in befs_bt_read_super() 145 befs_error(sb, "Couldn't read index header."); in befs_bt_read_super() 149 befs_dump_index_entry(sb, od_sup); in befs_bt_read_super() [all …]
|
D | linuxvfs.c | 48 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() [all …]
|
D | super.c | 21 befs_load_sb(struct super_block *sb, befs_super_block *disk_sb) in befs_load_sb() argument 23 struct befs_sb_info *befs_sb = BEFS_SB(sb); in befs_load_sb() 31 befs_sb->magic1 = fs32_to_cpu(sb, disk_sb->magic1); in befs_load_sb() 32 befs_sb->magic2 = fs32_to_cpu(sb, disk_sb->magic2); in befs_load_sb() 33 befs_sb->magic3 = fs32_to_cpu(sb, disk_sb->magic3); in befs_load_sb() 34 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); in befs_load_sb() 35 befs_sb->block_shift = fs32_to_cpu(sb, disk_sb->block_shift); in befs_load_sb() 36 befs_sb->num_blocks = fs64_to_cpu(sb, disk_sb->num_blocks); in befs_load_sb() 37 befs_sb->used_blocks = fs64_to_cpu(sb, disk_sb->used_blocks); in befs_load_sb() 38 befs_sb->inode_size = fs32_to_cpu(sb, disk_sb->inode_size); in befs_load_sb() [all …]
|
/Linux-v5.15/tools/perf/util/ |
D | strbuf.c | 20 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_t *sz) in strbuf_detach() argument 39 char *res = sb->alloc ? sb->buf : NULL; in strbuf_detach() [all …]
|
/Linux-v5.15/fs/hfs/ |
D | mdb.c | 32 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, &part_start, &part_size)) in hfs_mdb_get() [all …]
|
/Linux-v5.15/fs/ |
D | super.c | 43 static int thaw_super_locked(struct super_block *sb); 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->s_dentry_lru, sc); in super_cache_scan() 105 freed = prune_dcache_sb(sb, sc); in super_cache_scan() 107 freed += prune_icache_sb(sb, sc); in super_cache_scan() [all …]
|
/Linux-v5.15/fs/ext4/ |
D | balloc.c | 26 static unsigned ext4_num_base_meta_clusters(struct super_block *sb, 35 ext4_group_t ext4_get_group_number(struct super_block *sb, in ext4_get_group_number() argument 40 if (test_opt2(sb, STD_GROUP_SIZE)) in ext4_get_group_number() 42 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) >> in ext4_get_group_number() 43 (EXT4_BLOCK_SIZE_BITS(sb) + EXT4_CLUSTER_BITS(sb) + 3); in ext4_get_group_number() 45 ext4_get_group_no_and_offset(sb, block, &group, NULL); in ext4_get_group_number() 53 void ext4_get_group_no_and_offset(struct super_block *sb, ext4_fsblk_t blocknr, in ext4_get_group_no_and_offset() argument 56 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_get_group_no_and_offset() 60 offset = do_div(blocknr, EXT4_BLOCKS_PER_GROUP(sb)) >> in ext4_get_group_no_and_offset() 61 EXT4_SB(sb)->s_cluster_bits; in ext4_get_group_no_and_offset() [all …]
|
D | super.c | 68 static void ext4_update_super(struct super_block *sb); 69 static int ext4_commit_super(struct super_block *sb); 70 static int ext4_mark_recovery_complete(struct super_block *sb, 72 static int ext4_clear_journal_err(struct super_block *sb, 74 static int ext4_sync_fs(struct super_block *sb, int wait); 75 static int ext4_remount(struct super_block *sb, int *flags, char *data); 77 static int ext4_unfreeze(struct super_block *sb); 78 static int ext4_freeze(struct super_block *sb); 81 static inline int ext2_feature_set_ok(struct super_block *sb); 82 static inline int ext3_feature_set_ok(struct super_block *sb); [all …]
|
D | resize.c | 47 int ext4_resize_begin(struct super_block *sb) in ext4_resize_begin() argument 49 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_resize_begin() 61 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) { in ext4_resize_begin() 62 ext4_warning(sb, "won't resize using backup superblock at %llu", in ext4_resize_begin() 63 (unsigned long long)EXT4_SB(sb)->s_sbh->b_blocknr); in ext4_resize_begin() 71 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { in ext4_resize_begin() 72 ext4_warning(sb, "There are errors in the filesystem, " in ext4_resize_begin() 77 if (ext4_has_feature_sparse_super2(sb)) { in ext4_resize_begin() 78 ext4_msg(sb, KERN_ERR, "Online resizing not supported with sparse_super2"); in ext4_resize_begin() 83 &EXT4_SB(sb)->s_ext4_flags)) in ext4_resize_begin() [all …]
|
D | ialloc.c | 79 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, "Corrupt inode bitmap - block_group = %u, " in ext4_validate_inode_bitmap() [all …]
|
D | mmp.c | 11 static __le32 ext4_mmp_csum(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum() argument 13 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mmp_csum() 22 static int ext4_mmp_csum_verify(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum_verify() argument 24 if (!ext4_has_metadata_csum(sb)) in ext4_mmp_csum_verify() 27 return mmp->mmp_checksum == ext4_mmp_csum(sb, mmp); in ext4_mmp_csum_verify() 30 static void ext4_mmp_csum_set(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum_set() argument 32 if (!ext4_has_metadata_csum(sb)) in ext4_mmp_csum_set() 35 mmp->mmp_checksum = ext4_mmp_csum(sb, mmp); in ext4_mmp_csum_set() 42 static int write_mmp_block(struct super_block *sb, struct buffer_head *bh) in write_mmp_block() argument 50 sb_start_write(sb); in write_mmp_block() [all …]
|
/Linux-v5.15/fs/ext2/ |
D | super.c | 42 static void ext2_write_super(struct super_block *sb); 43 static int ext2_remount (struct super_block * sb, int * flags, char * data); 45 static int ext2_sync_fs(struct super_block *sb, int wait); 46 static int ext2_freeze(struct super_block *sb); 47 static int ext2_unfreeze(struct super_block *sb); 49 void ext2_error(struct super_block *sb, const char *function, in ext2_error() argument 54 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_error() 57 if (!sb_rdonly(sb)) { in ext2_error() 62 ext2_sync_super(sb, es, 1); in ext2_error() 71 sb->s_id, function, &vaf); in ext2_error() [all …]
|
/Linux-v5.15/fs/ufs/ |
D | super.c | 99 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, usb3->fs_magic) == UFS2_MAGIC) { in ufs_print_super_stuff() [all …]
|
/Linux-v5.15/lib/ |
D | sbitmap.c | 12 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) = prandom_u32() % 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 [all …]
|
/Linux-v5.15/include/linux/ |
D | sbitmap.h | 109 struct sbitmap sb; member 155 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift, 162 static inline void sbitmap_free(struct sbitmap *sb) in sbitmap_free() argument 164 free_percpu(sb->alloc_hint); in sbitmap_free() 165 kfree(sb->map); in sbitmap_free() 166 sb->map = NULL; in sbitmap_free() 177 void sbitmap_resize(struct sbitmap *sb, unsigned int depth); 187 int sbitmap_get(struct sbitmap *sb); 204 int sbitmap_get_shallow(struct sbitmap *sb, unsigned long shallow_depth); 212 bool sbitmap_any_bit_set(const struct sbitmap *sb); [all …]
|
D | quotaops.h | 17 static inline struct quota_info *sb_dqopt(struct super_block *sb) in sb_dqopt() argument 19 return &sb->s_dquot; in sb_dqopt() 32 #define quota_error(sb, fmt, args...) \ argument 33 __quota_error((sb), __func__, fmt , ## args) 36 void __quota_error(struct super_block *sb, const char *func, 45 struct dquot *dqget(struct super_block *sb, struct kqid qid); 65 int dquot_scan_active(struct super_block *sb, 68 struct dquot *dquot_alloc(struct super_block *sb, int type); 80 int dquot_disable(struct super_block *sb, int type, unsigned int flags); 82 static inline int dquot_suspend(struct super_block *sb, int type) in dquot_suspend() argument [all …]
|
/Linux-v5.15/drivers/md/bcache/ |
D | features.h | 26 #define BCH_HAS_COMPAT_FEATURE(sb, mask) \ argument 27 ((sb)->feature_compat & (mask)) 28 #define BCH_HAS_RO_COMPAT_FEATURE(sb, mask) \ argument 29 ((sb)->feature_ro_compat & (mask)) 30 #define BCH_HAS_INCOMPAT_FEATURE(sb, mask) \ argument 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) \ [all …]
|
/Linux-v5.15/fs/reiserfs/ |
D | journal.c | 92 struct super_block *sb); 110 struct super_block *sb, 113 static void init_journal_hash(struct super_block *sb) in init_journal_hash() argument 115 struct reiserfs_journal *journal = SB_JOURNAL(sb); in init_journal_hash() 136 *sb) in allocate_bitmap_node() 145 bn->data = kzalloc(sb->s_blocksize, GFP_NOFS); in allocate_bitmap_node() 155 static struct reiserfs_bitmap_node *get_bitmap_node(struct super_block *sb) in get_bitmap_node() argument 157 struct reiserfs_journal *journal = SB_JOURNAL(sb); in get_bitmap_node() 167 memset(bn->data, 0, sb->s_blocksize); in get_bitmap_node() 171 bn = allocate_bitmap_node(sb); in get_bitmap_node() [all …]
|
/Linux-v5.15/fs/jfs/ |
D | super.c | 62 static void jfs_handle_error(struct super_block *sb) in jfs_handle_error() argument 64 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_handle_error() 66 if (sb_rdonly(sb)) in jfs_handle_error() 69 updateSuper(sb, FM_DIRTY); in jfs_handle_error() 73 sb->s_id); in jfs_handle_error() 76 sb->s_id); in jfs_handle_error() 77 sb->s_flags |= SB_RDONLY; in jfs_handle_error() 83 void jfs_error(struct super_block *sb, const char *fmt, ...) in jfs_error() argument 94 sb->s_id, __builtin_return_address(0), &vaf); in jfs_error() 98 jfs_handle_error(sb); in jfs_error() [all …]
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_ste_v0.c | 734 struct mlx5dr_ste_build *sb, in dr_ste_v0_build_eth_l2_src_dst_tag() argument 737 struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer; in dr_ste_v0_build_eth_l2_src_dst_tag() 778 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 781 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() 783 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() 784 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v0_build_eth_l2_src_dst_init() 785 sb->ste_build_tag_func = &dr_ste_v0_build_eth_l2_src_dst_tag; in dr_ste_v0_build_eth_l2_src_dst_init() 790 struct mlx5dr_ste_build *sb, in dr_ste_v0_build_eth_l3_ipv6_dst_tag() argument 793 struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer; in dr_ste_v0_build_eth_l3_ipv6_dst_tag() 804 dr_ste_v0_build_eth_l3_ipv6_dst_init(struct mlx5dr_ste_build *sb, in dr_ste_v0_build_eth_l3_ipv6_dst_init() argument [all …]
|
/Linux-v5.15/fs/kernfs/ |
D | mount.c | 71 static struct dentry *__kernfs_fh_to_dentry(struct super_block *sb, in __kernfs_fh_to_dentry() argument 75 struct kernfs_super_info *info = kernfs_info(sb); in __kernfs_fh_to_dentry() 115 inode = kernfs_get_inode(sb, kn); in __kernfs_fh_to_dentry() 123 static struct dentry *kernfs_fh_to_dentry(struct super_block *sb, in kernfs_fh_to_dentry() argument 127 return __kernfs_fh_to_dentry(sb, fid, fh_len, fh_type, false); in kernfs_fh_to_dentry() 130 static struct dentry *kernfs_fh_to_parent(struct super_block *sb, in kernfs_fh_to_parent() argument 134 return __kernfs_fh_to_dentry(sb, fid, fh_len, fh_type, true); in kernfs_fh_to_parent() 158 struct kernfs_root *kernfs_root_from_sb(struct super_block *sb) in kernfs_root_from_sb() argument 160 if (sb->s_op == &kernfs_sops) in kernfs_root_from_sb() 161 return kernfs_info(sb)->root; in kernfs_root_from_sb() [all …]
|
/Linux-v5.15/fs/exfat/ |
D | super.c | 43 static void exfat_put_super(struct super_block *sb) in exfat_put_super() argument 45 struct exfat_sb_info *sbi = EXFAT_SB(sb); in exfat_put_super() 55 static int exfat_sync_fs(struct super_block *sb, int wait) in exfat_sync_fs() argument 57 struct exfat_sb_info *sbi = EXFAT_SB(sb); in exfat_sync_fs() 65 sync_blockdev(sb->s_bdev); in exfat_sync_fs() 66 if (exfat_clear_volume_dirty(sb)) in exfat_sync_fs() 74 struct super_block *sb = dentry->d_sb; in exfat_statfs() local 75 struct exfat_sb_info *sbi = EXFAT_SB(sb); in exfat_statfs() 76 unsigned long long id = huge_encode_dev(sb->s_bdev->bd_dev); in exfat_statfs() 80 if (exfat_count_used_clusters(sb, &sbi->used_clusters)) { in exfat_statfs() [all …]
|
/Linux-v5.15/fs/udf/ |
D | super.c | 101 struct logicalVolIntegrityDescImpUse *udf_sb_lvidiu(struct super_block *sb) in udf_sb_lvidiu() argument 107 if (!UDF_SB(sb)->s_lvid_bh) in udf_sb_lvidiu() 109 lvid = (struct logicalVolIntegrityDesc *)UDF_SB(sb)->s_lvid_bh->b_data; in udf_sb_lvidiu() 135 static struct inode *udf_alloc_inode(struct super_block *sb) in udf_alloc_inode() argument 246 static int udf_sb_alloc_partition_maps(struct super_block *sb, u32 count) in udf_sb_alloc_partition_maps() argument 248 struct udf_sb_info *sbi = UDF_SB(sb); in udf_sb_alloc_partition_maps() 296 static void udf_sb_free_partitions(struct super_block *sb) in udf_sb_free_partitions() argument 298 struct udf_sb_info *sbi = UDF_SB(sb); in udf_sb_free_partitions() 311 struct super_block *sb = root->d_sb; in udf_show_options() local 312 struct udf_sb_info *sbi = UDF_SB(sb); in udf_show_options() [all …]
|