Home
last modified time | relevance | path

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

12345678910>>...24

/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.c43 static int thaw_super_locked(struct super_block *sb, enum freeze_holder who,
55 static inline void __super_lock(struct super_block *sb, bool excl) in __super_lock() argument
58 down_write(&sb->s_umount); in __super_lock()
60 down_read(&sb->s_umount); in __super_lock()
63 static inline void super_unlock(struct super_block *sb, bool excl) in super_unlock() argument
66 up_write(&sb->s_umount); in super_unlock()
68 up_read(&sb->s_umount); in super_unlock()
71 static inline void __super_lock_excl(struct super_block *sb) in __super_lock_excl() argument
73 __super_lock(sb, true); in __super_lock_excl()
76 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/drivers/usb/host/
H A Dxhci-sideband.c18 xhci_ring_to_sgtable(struct xhci_sideband *sb, struct xhci_ring *ring) in xhci_ring_to_sgtable() argument
28 dev = xhci_to_hcd(sb->xhci)->self.sysdev; in xhci_ring_to_sgtable()
78 __xhci_sideband_remove_endpoint(struct xhci_sideband *sb, struct xhci_virt_ep *ep) in __xhci_sideband_remove_endpoint() argument
80 lockdep_assert_held(&sb->mutex); in __xhci_sideband_remove_endpoint()
86 xhci_stop_endpoint_sync(sb->xhci, ep, 0, GFP_KERNEL); in __xhci_sideband_remove_endpoint()
89 sb->eps[ep->ep_index] = NULL; in __xhci_sideband_remove_endpoint()
94 __xhci_sideband_remove_interrupter(struct xhci_sideband *sb) in __xhci_sideband_remove_interrupter() argument
96 lockdep_assert_held(&sb->mutex); in __xhci_sideband_remove_interrupter()
98 if (!sb->ir) in __xhci_sideband_remove_interrupter()
101 xhci_remove_secondary_interrupter(xhci_to_hcd(sb->xhci), sb->ir); in __xhci_sideband_remove_interrupter()
[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.c71 static void ext4_update_super(struct super_block *sb);
72 static int ext4_commit_super(struct super_block *sb);
73 static int ext4_mark_recovery_complete(struct super_block *sb,
75 static int ext4_clear_journal_err(struct super_block *sb,
77 static int ext4_sync_fs(struct super_block *sb, int wait);
79 static int ext4_unfreeze(struct super_block *sb);
80 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);
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.c34 static struct inode *mbt_alloc_inode(struct super_block *sb) in mbt_alloc_inode() argument
61 static void mbt_kill_sb(struct super_block *sb) in mbt_kill_sb() argument
63 generic_shutdown_super(sb); in mbt_kill_sb()
71 static int mbt_mb_init(struct super_block *sb) in mbt_mb_init() argument
77 sb->s_bdev = kzalloc_obj(*sb->s_bdev); in mbt_mb_init()
78 if (sb->s_bdev == NULL) in mbt_mb_init()
81 sb->s_bdev->bd_queue = kzalloc_obj(struct request_queue); in mbt_mb_init()
82 if (sb->s_bdev->bd_queue == NULL) { in mbt_mb_init()
83 kfree(sb->s_bdev); in mbt_mb_init()
91 INIT_LIST_HEAD(&sb->s_inodes); in mbt_mb_init()
[all …]
H A Dmmp.c11 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_feature_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_feature_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_thawed(struct super_block *sb, in write_mmp_block_thawed() argument
47 ext4_mmp_csum_set(sb, mmp); in write_mmp_block_thawed()
[all …]
/linux/include/linux/fs/
H A Dsuper.h12 static inline void __sb_end_write(struct super_block *sb, int level) in __sb_end_write() argument
14 percpu_up_read(sb->s_writers.rw_sem + level - 1); in __sb_end_write()
17 static inline void __sb_start_write(struct super_block *sb, int level) in __sb_start_write() argument
19 percpu_down_read_freezable(sb->s_writers.rw_sem + level - 1, true); in __sb_start_write()
22 static inline bool __sb_start_write_trylock(struct super_block *sb, int level) in __sb_start_write_trylock() argument
24 return percpu_down_read_trylock(sb->s_writers.rw_sem + level - 1); in __sb_start_write_trylock()
27 #define __sb_writers_acquired(sb, lev) \ argument
28 percpu_rwsem_acquire(&(sb)->s_writers.rw_sem[(lev) - 1], 1, _THIS_IP_)
29 #define __sb_writers_release(sb, lev) \ argument
30 percpu_rwsem_release(&(sb)->s_writers.rw_sem[(lev) - 1], _THIS_IP_)
[all …]
/linux/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, usb3->fs_magic) == UFS2_MAGIC) { in ufs_print_super_stuff()
[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/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/jfs/
H A Dsuper.c62 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/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/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_ste_v1.c991 struct mlx5dr_ste_build *sb, in dr_ste_v1_build_eth_l2_src_dst_tag() argument
994 struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer; in dr_ste_v1_build_eth_l2_src_dst_tag()
1026 void dr_ste_v1_build_eth_l2_src_dst_init(struct mlx5dr_ste_build *sb, in dr_ste_v1_build_eth_l2_src_dst_init() argument
1029 dr_ste_v1_build_eth_l2_src_dst_bit_mask(mask, sb->inner, sb->bit_mask); in dr_ste_v1_build_eth_l2_src_dst_init()
1031 sb->lu_type = DR_STE_CALC_DFNR_TYPE(ETHL2_SRC_DST, sb->inner); in dr_ste_v1_build_eth_l2_src_dst_init()
1032 sb->byte_mask = mlx5dr_ste_conv_bit_to_byte_mask(sb->bit_mask); in dr_ste_v1_build_eth_l2_src_dst_init()
1033 sb->ste_build_tag_func = &dr_ste_v1_build_eth_l2_src_dst_tag; in dr_ste_v1_build_eth_l2_src_dst_init()
1037 struct mlx5dr_ste_build *sb, in dr_ste_v1_build_eth_l3_ipv6_dst_tag() argument
1040 struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer; in dr_ste_v1_build_eth_l3_ipv6_dst_tag()
1050 void dr_ste_v1_build_eth_l3_ipv6_dst_init(struct mlx5dr_ste_build *sb, in dr_ste_v1_build_eth_l3_ipv6_dst_init() argument
[all …]
/linux/fs/kernfs/
H A Dmount.c97 static struct dentry *__kernfs_fh_to_dentry(struct super_block *sb, in __kernfs_fh_to_dentry() argument
101 struct kernfs_super_info *info = kernfs_info(sb); in __kernfs_fh_to_dentry()
141 inode = kernfs_get_inode(sb, kn); in __kernfs_fh_to_dentry()
146 static struct dentry *kernfs_fh_to_dentry(struct super_block *sb, in kernfs_fh_to_dentry() argument
150 return __kernfs_fh_to_dentry(sb, fid, fh_len, fh_type, false); in kernfs_fh_to_dentry()
153 static struct dentry *kernfs_fh_to_parent(struct super_block *sb, in kernfs_fh_to_parent() argument
157 return __kernfs_fh_to_dentry(sb, fid, fh_len, fh_type, true); in kernfs_fh_to_parent()
183 struct kernfs_root *kernfs_root_from_sb(struct super_block *sb) in kernfs_root_from_sb() argument
185 if (sb->s_op == &kernfs_sops) in kernfs_root_from_sb()
186 return kernfs_info(sb)->root; in kernfs_root_from_sb()
[all …]
/linux/drivers/infiniband/hw/bng_re/
H A Dbng_sp.c46 struct creq_query_func_resp_sb *sb; in bng_re_get_dev_attr() local
57 sbuf.size = ALIGN(sizeof(*sb), BNG_FW_CMDQE_UNITS); in bng_re_get_dev_attr()
58 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bng_re_get_dev_attr()
60 if (!sbuf.sb) in bng_re_get_dev_attr()
62 sb = sbuf.sb; in bng_re_get_dev_attr()
70 attr->max_qp = le32_to_cpu(sb->max_qp); in bng_re_get_dev_attr()
74 sb->max_qp_rd_atom > BNG_RE_MAX_OUT_RD_ATOM ? in bng_re_get_dev_attr()
75 BNG_RE_MAX_OUT_RD_ATOM : sb->max_qp_rd_atom; in bng_re_get_dev_attr()
77 sb->max_qp_init_rd_atom > BNG_RE_MAX_OUT_RD_ATOM ? in bng_re_get_dev_attr()
78 BNG_RE_MAX_OUT_RD_ATOM : sb->max_qp_init_rd_atom; in bng_re_get_dev_attr()
[all …]
/linux/fs/erofs/
H A Dsuper.c22 void _erofs_printk(struct super_block *sb, const char *fmt, ...) in _erofs_printk() argument
33 if (sb) in _erofs_printk()
35 KERN_SOH_ASCII, level, sb->s_id, &vaf); in _erofs_printk()
41 static int erofs_superblock_csum_verify(struct super_block *sb, void *sbdata) in erofs_superblock_csum_verify() argument
44 u32 len = 1 << EROFS_SB(sb)->blkszbits, crc; in erofs_superblock_csum_verify()
55 erofs_err(sb, "invalid checksum 0x%08x, 0x%08x expected", in erofs_superblock_csum_verify()
67 static struct inode *erofs_alloc_inode(struct super_block *sb) in erofs_alloc_inode() argument
70 alloc_inode_sb(sb, erofs_inode_cachep, GFP_KERNEL); in erofs_alloc_inode()
91 void *erofs_read_metadata(struct super_block *sb, struct erofs_buf *buf, in erofs_read_metadata() argument
112 cnt = min_t(int, sb->s_blocksize - erofs_blkoff(sb, *offset), in erofs_read_metadata()
[all …]
/linux/fs/hfs/
H A Dsuper.c35 static int hfs_sync_fs(struct super_block *sb, int wait) in hfs_sync_fs() argument
37 is_hfs_cnid_counts_valid(sb); in hfs_sync_fs()
38 hfs_mdb_commit(sb); in hfs_sync_fs()
49 static void hfs_put_super(struct super_block *sb) in hfs_put_super() argument
51 cancel_delayed_work_sync(&HFS_SB(sb)->mdb_work); in hfs_put_super()
52 hfs_mdb_close(sb); in hfs_put_super()
54 hfs_mdb_put(sb); in hfs_put_super()
60 struct super_block *sb; in flush_mdb() local
63 sb = sbi->sb; in flush_mdb()
69 is_hfs_cnid_counts_valid(sb); in flush_mdb()
[all …]
/linux/fs/minix/
H A Ditree_v2.c25 #define INDIRCOUNT(sb) (1 << ((sb)->s_blocksize_bits - 2)) argument
30 struct super_block *sb = inode->i_sb; in block_to_path() local
34 block, sb->s_bdev); in block_to_path()
37 if ((u64)block * (u64)sb->s_blocksize >= sb->s_maxbytes) in block_to_path()
42 } else if ((block -= DIRCOUNT) < INDIRCOUNT(sb)) { in block_to_path()
45 } else if ((block -= INDIRCOUNT(sb)) < INDIRCOUNT(sb) * INDIRCOUNT(sb)) { in block_to_path()
47 offsets[n++] = block / INDIRCOUNT(sb); in block_to_path()
48 offsets[n++] = block % INDIRCOUNT(sb); in block_to_path()
50 block -= INDIRCOUNT(sb) * INDIRCOUNT(sb); in block_to_path()
52 offsets[n++] = (block / INDIRCOUNT(sb)) / INDIRCOUNT(sb); in block_to_path()
[all …]

12345678910>>...24