Home
last modified time | relevance | path

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

12345678910>>...33

/linux/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, inode->magic1)); in befs_dump_inode()
82 tmp_run = fsrun_to_cpu(sb, inode->inode_num); in befs_dump_inode()
[all …]
H A Ddatastream.c24 static int befs_find_brun_direct(struct super_block *sb,
28 static int befs_find_brun_indirect(struct super_block *sb,
33 static int befs_find_brun_dblindirect(struct super_block *sb,
49 befs_read_datastream(struct super_block *sb, 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 …]
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,
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 …]
H A Dsuper.c21 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/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
[all …]
/linux/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_t *sz) in strbuf_detach() argument
39 char *res = sb->alloc ? sb->buf : NULL; in strbuf_detach()
[all …]
/linux/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, &part_start, &part_size)) in hfs_mdb_get()
[all …]
/linux/fs/bcachefs/
H A Dsuper-io.c81 struct bch_sb_field *bch2_sb_field_get_id(struct bch_sb *sb, in bch2_sb_field_get_id() argument
86 vstruct_for_each(sb, f) in bch2_sb_field_get_id()
92 static struct bch_sb_field *__bch2_sb_field_resize(struct bch_sb_handle *sb, in __bch2_sb_field_resize() argument
97 unsigned sb_u64s = le32_to_cpu(sb->sb->u64s) + u64s - old_u64s; in __bch2_sb_field_resize()
99 BUG_ON(__vstruct_bytes(struct bch_sb, sb_u64s) > sb->buffer_size); in __bch2_sb_field_resize()
104 f = vstruct_last(sb->sb); in __bch2_sb_field_resize()
120 memmove(dst, src, vstruct_end(sb->sb) - src); in __bch2_sb_field_resize()
126 sb->sb->u64s = cpu_to_le32(sb_u64s); in __bch2_sb_field_resize()
131 void bch2_sb_field_delete(struct bch_sb_handle *sb, in bch2_sb_field_delete() argument
134 struct bch_sb_field *f = bch2_sb_field_get_id(sb->sb, type); in bch2_sb_field_delete()
[all …]
/linux/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()
93 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, desc, bh) || in ext4_validate_inode_bitmap()
102 ext4_simulate_fail(sb, EXT4_SIM_IBITMAP_CRC)) { in ext4_validate_inode_bitmap()
103 ext4_unlock_group(sb, block_group); in ext4_validate_inode_bitmap()
104 ext4_error(sb, "Corrupt inode bitmap - block_group = %u, " in ext4_validate_inode_bitmap()
106 ext4_mark_group_bitmap_corrupted(sb, block_group, in ext4_validate_inode_bitmap()
[all …]
H A Dsuper.c70 static void ext4_update_super(struct super_block *sb);
71 static int ext4_commit_super(struct super_block *sb);
72 static int ext4_mark_recovery_complete(struct super_block *sb,
74 static int ext4_clear_journal_err(struct super_block *sb,
76 static int ext4_sync_fs(struct super_block *sb, int wait);
78 static int ext4_unfreeze(struct super_block *sb);
79 static int ext4_freeze(struct super_block *sb);
80 static inline int ext2_feature_set_ok(struct super_block *sb);
81 static inline int ext3_feature_set_ok(struct super_block *sb);
83 static void ext4_unregister_li_request(struct super_block *sb);
[all …]
H A Dresize.c46 int ext4_resize_begin(struct super_block *sb) in ext4_resize_begin() argument
48 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_resize_begin()
59 !ext4_has_feature_resize_inode(sb)) { in ext4_resize_begin()
60 ext4_error(sb, "resize_inode disabled but reserved GDT blocks non-zero"); in ext4_resize_begin()
71 ext4_warning(sb, "won't resize using backup superblock at %llu", in ext4_resize_begin()
81 ext4_warning(sb, "There are errors in the filesystem, " in ext4_resize_begin()
86 if (ext4_has_feature_sparse_super2(sb)) { in ext4_resize_begin()
87 ext4_msg(sb, KERN_ERR, "Online resizing not supported with sparse_super2"); in ext4_resize_begin()
98 int ext4_resize_end(struct super_block *sb, bool update_backups) in ext4_resize_end() argument
100 clear_bit_unlock(EXT4_FLAGS_RESIZING, &EXT4_SB(sb)->s_ext4_flags); in ext4_resize_end()
[all …]
H A Dmballoc-test.c33 static struct inode *mbt_alloc_inode(struct super_block *sb) in mbt_alloc_inode() argument
60 static void mbt_kill_sb(struct super_block *sb) in mbt_kill_sb() argument
62 generic_shutdown_super(sb); in mbt_kill_sb()
70 static int mbt_mb_init(struct super_block *sb) in mbt_mb_init() argument
76 sb->s_bdev = kzalloc(sizeof(*sb->s_bdev), GFP_KERNEL); in mbt_mb_init()
77 if (sb->s_bdev == NULL) in mbt_mb_init()
80 sb->s_bdev->bd_queue = kzalloc(sizeof(struct request_queue), GFP_KERNEL); in mbt_mb_init()
81 if (sb->s_bdev->bd_queue == NULL) { in mbt_mb_init()
82 kfree(sb->s_bdev); in mbt_mb_init()
90 INIT_LIST_HEAD(&sb->s_inodes); in mbt_mb_init()
[all …]
/linux/fs/ext2/
H A Dsuper.c42 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 …]
H A Dialloc.c47 read_inode_bitmap(struct super_block * sb, unsigned long block_group) in read_inode_bitmap() argument
52 desc = ext2_get_group_desc(sb, block_group, NULL); in read_inode_bitmap()
56 bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap()
58 ext2_error(sb, "read_inode_bitmap", in read_inode_bitmap()
66 static void ext2_release_inode(struct super_block *sb, int group, int dir) in ext2_release_inode() argument
71 desc = ext2_get_group_desc(sb, group, &bh); in ext2_release_inode()
73 ext2_error(sb, "ext2_release_inode", in ext2_release_inode()
78 spin_lock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode()
82 spin_unlock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode()
83 percpu_counter_inc(&EXT2_SB(sb)->s_freeinodes_counter); in ext2_release_inode()
[all …]
/linux/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
[all …]
/linux/include/linux/
H A Dsbitmap.h113 struct sbitmap sb; member
170 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
174 static inline unsigned int __map_depth(const struct sbitmap *sb, int index) in __map_depth() argument
176 if (index == sb->map_nr - 1) in __map_depth()
177 return sb->depth - (index << sb->shift); in __map_depth()
178 return 1U << sb->shift; in __map_depth()
185 static inline void sbitmap_free(struct sbitmap *sb) in sbitmap_free() argument
187 free_percpu(sb->alloc_hint); in sbitmap_free()
188 kvfree(sb->map); in sbitmap_free()
189 sb->map = NULL; in sbitmap_free()
[all …]
H A Dquotaops.h17 static inline struct quota_info *sb_dqopt(struct super_block *sb) in sb_dqopt() argument
19 return &sb->s_dquot; in sb_dqopt()
33 #define quota_error(sb, fmt, args...) \ argument
34 __quota_error((sb), __func__, fmt , ## args)
37 void __quota_error(struct super_block *sb, const char *func,
46 struct dquot *dqget(struct super_block *sb, struct kqid qid);
66 int dquot_scan_active(struct super_block *sb,
69 struct dquot *dquot_alloc(struct super_block *sb, int type);
81 int dquot_disable(struct super_block *sb, int type, unsigned int flags);
83 static inline int dquot_suspend(struct super_block *sb, int type) in dquot_suspend() argument
[all …]
/linux/drivers/md/bcache/
H A Dfeatures.h27 #define BCH_HAS_COMPAT_FEATURE(sb, mask) \ argument
28 ((sb)->feature_compat & (mask))
29 #define BCH_HAS_RO_COMPAT_FEATURE(sb, mask) \ argument
30 ((sb)->feature_ro_compat & (mask))
31 #define BCH_HAS_INCOMPAT_FEATURE(sb, mask) \ argument
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) \
[all …]
/linux/Documentation/admin-guide/mm/
H A Dshrinker_debugfs.rst11 unique id: e.g. *kfree_rcu-0* or *sb-xfs:vda1-36*.
26 dquota-cache-16 sb-devpts-28 sb-proc-47 sb-tmpfs-42
27 mm-shadow-18 sb-devtmpfs-5 sb-proc-48 sb-tmpfs-43
28 mm-zspool:zram0-34 sb-hugetlbfs-17 sb-pstore-31 sb-tmpfs-44
29 rcu-kfree-0 sb-hugetlbfs-33 sb-rootfs-2 sb-tmpfs-49
30 sb-aio-20 sb-iomem-12 sb-securityfs-6 sb-tracefs-13
31 sb-anon_inodefs-15 sb-mqueue-21 sb-selinuxfs-22 sb-xfs:vda1-36
32 sb-bdev-3 sb-nsfs-4 sb-sockfs-8 sb-zsmalloc-19
33 sb-bpf-32 sb-pipefs-14 sb-sysfs-26 thp-deferred_split-10
34 sb-btrfs:vda2-24 sb-proc-25 sb-tmpfs-1 thp-zero-9
[all …]
/linux/fs/exfat/
H A Dsuper.c34 static void exfat_put_super(struct super_block *sb) in exfat_put_super() argument
36 struct exfat_sb_info *sbi = EXFAT_SB(sb); in exfat_put_super()
44 static int exfat_sync_fs(struct super_block *sb, int wait) in exfat_sync_fs() argument
46 struct exfat_sb_info *sbi = EXFAT_SB(sb); in exfat_sync_fs()
49 if (unlikely(exfat_forced_shutdown(sb))) in exfat_sync_fs()
57 sync_blockdev(sb->s_bdev); in exfat_sync_fs()
58 if (exfat_clear_volume_dirty(sb)) in exfat_sync_fs()
66 struct super_block *sb = dentry->d_sb; in exfat_statfs() local
67 struct exfat_sb_info *sbi = EXFAT_SB(sb); in exfat_statfs()
68 unsigned long long id = huge_encode_dev(sb->s_bdev->bd_dev); in exfat_statfs()
[all …]
H A Dfatent.c14 static int exfat_mirror_bh(struct super_block *sb, sector_t sec, in exfat_mirror_bh() argument
18 struct exfat_sb_info *sbi = EXFAT_SB(sb); in exfat_mirror_bh()
24 c_bh = sb_getblk(sb, sec2); in exfat_mirror_bh()
27 memcpy(c_bh->b_data, bh->b_data, sb->s_blocksize); in exfat_mirror_bh()
30 if (sb->s_flags & SB_SYNCHRONOUS) in exfat_mirror_bh()
38 static int __exfat_ent_get(struct super_block *sb, unsigned int loc, in __exfat_ent_get() argument
45 sec = FAT_ENT_OFFSET_SECTOR(sb, loc); in __exfat_ent_get()
46 off = FAT_ENT_OFFSET_BYTE_IN_SECTOR(sb, loc); in __exfat_ent_get()
48 bh = sb_bread(sb, sec); in __exfat_ent_get()
62 int exfat_ent_set(struct super_block *sb, unsigned int loc, in exfat_ent_set() argument
[all …]
/linux/fs/nilfs2/
H A Dsuper.c63 static int nilfs_setup_super(struct super_block *sb, int is_mount);
65 void __nilfs_msg(struct super_block *sb, const char *fmt, ...) in __nilfs_msg() argument
77 if (sb) in __nilfs_msg()
79 KERN_SOH_ASCII, level, sb->s_id, &vaf); in __nilfs_msg()
87 static void nilfs_set_error(struct super_block *sb) in nilfs_set_error() argument
89 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_set_error()
95 sbp = nilfs_prepare_super(sb, 0); in nilfs_set_error()
100 nilfs_commit_super(sb, NILFS_SB_COMMIT_ALL); in nilfs_set_error()
123 void __nilfs_error(struct super_block *sb, const char *function, in __nilfs_error() argument
126 struct the_nilfs *nilfs = sb->s_fs_info; in __nilfs_error()
[all …]
/linux/fs/quota/
H A Dquota.c27 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument
51 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission()
54 static void quota_sync_one(struct super_block *sb, void *arg) in quota_sync_one() argument
58 if (sb->s_qcop && sb->s_qcop->quota_sync && in quota_sync_one()
59 (sb->s_quota_types & (1 << type))) in quota_sync_one()
60 sb->s_qcop->quota_sync(sb, type); in quota_sync_one()
86 static int quota_quotaon(struct super_block *sb, int type, qid_t id, in quota_quotaon() argument
89 if (!sb->s_qcop->quota_on && !sb->s_qcop->quota_enable) in quota_quotaon()
91 if (sb->s_qcop->quota_enable) in quota_quotaon()
92 return sb->s_qcop->quota_enable(sb, qtype_enforce_flag(type)); in quota_quotaon()
[all …]
/linux/fs/ufs/
H A Dialloc.c59 struct super_block * sb; in ufs_free_inode() local
68 sb = inode->i_sb; in ufs_free_inode()
69 uspi = UFS_SB(sb)->s_uspi; in ufs_free_inode()
73 mutex_lock(&UFS_SB(sb)->s_lock); in ufs_free_inode()
76 ufs_warning(sb, "ufs_free_inode", "reserved inode or nonexistent inode %u\n", ino); in ufs_free_inode()
77 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_free_inode()
83 ucpi = ufs_load_cylinder (sb, cg); in ufs_free_inode()
85 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_free_inode()
89 if (!ufs_cg_chkmagic(sb, ucg)) in ufs_free_inode()
90 ufs_panic (sb, "ufs_free_fragments", "internal error, bad cg magic number"); in ufs_free_inode()
[all …]
/linux/fs/erofs/
H A Dsuper.c21 void _erofs_printk(struct super_block *sb, const char *fmt, ...) in _erofs_printk() argument
32 if (sb) in _erofs_printk()
34 KERN_SOH_ASCII, level, sb->s_id, &vaf); in _erofs_printk()
40 static int erofs_superblock_csum_verify(struct super_block *sb, void *sbdata) in erofs_superblock_csum_verify() argument
42 size_t len = 1 << EROFS_SB(sb)->blkszbits; in erofs_superblock_csum_verify()
60 erofs_err(sb, "invalid checksum 0x%08x, 0x%08x expected", in erofs_superblock_csum_verify()
74 static struct inode *erofs_alloc_inode(struct super_block *sb) in erofs_alloc_inode() argument
77 alloc_inode_sb(sb, erofs_inode_cachep, GFP_KERNEL); in erofs_alloc_inode()
98 void *erofs_read_metadata(struct super_block *sb, struct erofs_buf *buf, in erofs_read_metadata() argument
119 cnt = min_t(int, sb->s_blocksize - erofs_blkoff(sb, *offset), in erofs_read_metadata()
[all …]

12345678910>>...33