/kernel/linux/linux-5.10/fs/freevxfs/ |
H A D | vxfs_bmap.c | 56 * @iblock: logical block. 201 * @iblock: logical block 210 vxfs_bmap_typed(struct inode *ip, long iblock) in vxfs_bmap_typed() argument 225 if (iblock < off) in vxfs_bmap_typed() 232 iblock - off); in vxfs_bmap_typed() 237 if ((iblock - off) < fs32_to_cpu(sbi, typ->vt_size)) in vxfs_bmap_typed() 239 iblock - off); in vxfs_bmap_typed() 264 * @iblock: logical block 274 vxfs_bmap1(struct inode *ip, long iblock) in vxfs_bmap1() argument 279 return vxfs_bmap_ext4(ip, iblock); in vxfs_bmap1() [all...] |
H A D | vxfs_subr.c | 116 * @iblock: logical block 129 vxfs_getblk(struct inode *ip, sector_t iblock, in vxfs_getblk() argument 134 pblock = vxfs_bmap1(ip, iblock); in vxfs_getblk()
|
/kernel/linux/linux-6.6/fs/freevxfs/ |
H A D | vxfs_bmap.c | 32 * @iblock: logical block. 177 * @iblock: logical block 186 vxfs_bmap_typed(struct inode *ip, long iblock) in vxfs_bmap_typed() argument 201 if (iblock < off) in vxfs_bmap_typed() 208 iblock - off); in vxfs_bmap_typed() 213 if ((iblock - off) < fs32_to_cpu(sbi, typ->vt_size)) in vxfs_bmap_typed() 215 iblock - off); in vxfs_bmap_typed() 240 * @iblock: logical block 250 vxfs_bmap1(struct inode *ip, long iblock) in vxfs_bmap1() argument 255 return vxfs_bmap_ext4(ip, iblock); in vxfs_bmap1() [all...] |
H A D | vxfs_subr.c | 86 * @iblock: logical block 99 vxfs_getblk(struct inode *ip, sector_t iblock, in vxfs_getblk() argument 104 pblock = vxfs_bmap1(ip, iblock); in vxfs_getblk()
|
/kernel/linux/linux-5.10/fs/efs/ |
H A D | file.c | 13 int efs_get_block(struct inode *inode, sector_t iblock, in efs_get_block() argument 21 if (iblock >= inode->i_blocks) { in efs_get_block() 31 phys = efs_map_block(inode, iblock); in efs_get_block()
|
H A D | inode.c | 206 efs_block_t iblock, result = 0, lastblock = 0; in efs_map_block() local 270 iblock = sb->fs_start + in->extents[dirext].cooked.ex_bn + in efs_map_block() 276 if (first || lastblock != iblock) { in efs_map_block() 279 bh = sb_bread(inode->i_sb, iblock); in efs_map_block() 282 __func__, iblock); in efs_map_block() 286 __func__, iblock); in efs_map_block() 288 lastblock = iblock; in efs_map_block() 297 cur, iblock); in efs_map_block()
|
/kernel/linux/linux-6.6/fs/efs/ |
H A D | file.c | 13 int efs_get_block(struct inode *inode, sector_t iblock, in efs_get_block() argument 21 if (iblock >= inode->i_blocks) { in efs_get_block() 31 phys = efs_map_block(inode, iblock); in efs_get_block()
|
H A D | inode.c | 208 efs_block_t iblock, result = 0, lastblock = 0; in efs_map_block() local 272 iblock = sb->fs_start + in->extents[dirext].cooked.ex_bn + in efs_map_block() 278 if (first || lastblock != iblock) { in efs_map_block() 281 bh = sb_bread(inode->i_sb, iblock); in efs_map_block() 284 __func__, iblock); in efs_map_block() 288 __func__, iblock); in efs_map_block() 290 lastblock = iblock; in efs_map_block() 299 cur, iblock); in efs_map_block()
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | aops.c | 42 static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock, in ocfs2_symlink_get_block() argument 55 (unsigned long long)iblock, bh_result, create); in ocfs2_symlink_get_block() 59 if ((iblock << inode->i_sb->s_blocksize_bits) > PATH_MAX + 1) { in ocfs2_symlink_get_block() 61 (unsigned long long)iblock); in ocfs2_symlink_get_block() 72 if ((u64)iblock >= ocfs2_clusters_to_blocks(inode->i_sb, in ocfs2_symlink_get_block() 76 "%llu\n", (unsigned long long)iblock); in ocfs2_symlink_get_block() 84 iblock; in ocfs2_symlink_get_block() 103 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block() 113 le64_to_cpu(fe->id2.i_list.l_recs[0].e_blkno) + iblock); in ocfs2_symlink_get_block() 123 static int ocfs2_lock_get_block(struct inode *inode, sector_t iblock, in ocfs2_lock_get_block() argument 136 ocfs2_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) ocfs2_get_block() argument 2145 ocfs2_dio_wr_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) ocfs2_dio_wr_get_block() argument [all...] |
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | aops.c | 40 static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock, in ocfs2_symlink_get_block() argument 53 (unsigned long long)iblock, bh_result, create); in ocfs2_symlink_get_block() 57 if ((iblock << inode->i_sb->s_blocksize_bits) > PATH_MAX + 1) { in ocfs2_symlink_get_block() 59 (unsigned long long)iblock); in ocfs2_symlink_get_block() 70 if ((u64)iblock >= ocfs2_clusters_to_blocks(inode->i_sb, in ocfs2_symlink_get_block() 74 "%llu\n", (unsigned long long)iblock); in ocfs2_symlink_get_block() 82 iblock; in ocfs2_symlink_get_block() 101 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block() 111 le64_to_cpu(fe->id2.i_list.l_recs[0].e_blkno) + iblock); in ocfs2_symlink_get_block() 121 static int ocfs2_lock_get_block(struct inode *inode, sector_t iblock, in ocfs2_lock_get_block() argument 134 ocfs2_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) ocfs2_get_block() argument 2142 ocfs2_dio_wr_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) ocfs2_dio_wr_get_block() argument [all...] |
/kernel/linux/linux-6.6/fs/udf/ |
H A D | dir.c | 80 udf_pblk_t iblock; in udf_readdir() local 112 iblock = udf_get_lb_pblock(sb, &tloc, 0); in udf_readdir() 113 if (!dir_emit(ctx, fname, flen, iblock, DT_UNKNOWN)) in udf_readdir()
|
/kernel/linux/linux-5.10/fs/qnx4/ |
H A D | inode.c | 55 static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create ) in qnx4_get_block() argument 59 QNX4DEBUG((KERN_INFO "qnx4: qnx4_get_block inode=[%ld] iblock=[%ld]\n",inode->i_ino,iblock)); in qnx4_get_block() 61 phys = qnx4_block_map( inode, iblock ); in qnx4_get_block() 78 unsigned long qnx4_block_map( struct inode *inode, long iblock ) in qnx4_block_map() 86 u32 offset = iblock; in qnx4_block_map() 90 // iblock is in the first extent. This is easy. in qnx4_block_map() 92 // iblock is beyond first extent. We have to follow the extent chain. in qnx4_block_map() 125 QNX4DEBUG((KERN_INFO "qnx4: mapping block %ld of inode %ld = %ld\n",iblock,inode->i_ino,block)); in qnx4_block_map()
|
/kernel/linux/linux-6.6/fs/qnx4/ |
H A D | inode.c | 55 static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create ) in qnx4_get_block() argument 59 QNX4DEBUG((KERN_INFO "qnx4: qnx4_get_block inode=[%ld] iblock=[%ld]\n",inode->i_ino,iblock)); in qnx4_get_block() 61 phys = qnx4_block_map( inode, iblock ); in qnx4_get_block() 78 unsigned long qnx4_block_map( struct inode *inode, long iblock ) in qnx4_block_map() 86 u32 offset = iblock; in qnx4_block_map() 90 // iblock is in the first extent. This is easy. in qnx4_block_map() 92 // iblock is beyond first extent. We have to follow the extent chain. in qnx4_block_map() 125 QNX4DEBUG((KERN_INFO "qnx4: mapping block %ld of inode %ld = %ld\n",iblock,inode->i_ino,block)); in qnx4_block_map()
|
/kernel/linux/linux-5.10/fs/exfat/ |
H A D | inode.c | 288 static int exfat_get_block(struct inode *inode, sector_t iblock, in exfat_get_block() argument 304 if (iblock >= last_block && !create) in exfat_get_block() 308 err = exfat_map_cluster(inode, iblock >> sbi->sect_per_clus_bits, in exfat_get_block() 313 "failed to bmap (inode : %p iblock : %llu, err : %d)", in exfat_get_block() 314 inode, (unsigned long long)iblock, err); in exfat_get_block() 322 sec_offset = iblock & (sbi->sect_per_clus - 1); in exfat_get_block() 329 if (iblock < last_block) in exfat_get_block() 333 pos = EXFAT_BLK_TO_B((iblock + 1), sb); in exfat_get_block()
|
/kernel/linux/linux-6.6/fs/exfat/ |
H A D | inode.c | 266 static int exfat_get_block(struct inode *inode, sector_t iblock, in exfat_get_block() argument 282 if (iblock >= last_block && !create) in exfat_get_block() 286 err = exfat_map_cluster(inode, iblock >> sbi->sect_per_clus_bits, in exfat_get_block() 291 "failed to bmap (inode : %p iblock : %llu, err : %d)", in exfat_get_block() 292 inode, (unsigned long long)iblock, err); in exfat_get_block() 300 sec_offset = iblock & (sbi->sect_per_clus - 1); in exfat_get_block() 307 if (iblock < last_block) in exfat_get_block() 311 pos = EXFAT_BLK_TO_B((iblock + 1), sb); in exfat_get_block()
|
/kernel/linux/linux-5.10/fs/hpfs/ |
H A D | file.c | 78 static int hpfs_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) in hpfs_get_block() argument 84 s = hpfs_bmap(inode, iblock, &n_secs); in hpfs_get_block() 98 if (iblock<<9 != hpfs_i(inode)->mmu_private) { in hpfs_get_block()
|
/kernel/linux/linux-5.10/fs/udf/ |
H A D | dir.c | 47 udf_pblk_t block, iblock; in udf_readdir() local 209 iblock = udf_get_lb_pblock(sb, &tloc, 0); in udf_readdir() 210 if (!dir_emit(ctx, fname, flen, iblock, DT_UNKNOWN)) in udf_readdir()
|
/kernel/linux/linux-5.10/fs/sysv/ |
H A D | itree.c | 207 static int get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) in get_block() argument 215 int depth = block_to_path(inode, iblock, offsets); in get_block() 376 long iblock; in sysv_truncate() local 384 iblock = (inode->i_size + blocksize-1) in sysv_truncate() 389 n = block_to_path(inode, iblock, offsets); in sysv_truncate()
|
/kernel/linux/linux-6.6/fs/sysv/ |
H A D | itree.c | 207 static int get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) in get_block() argument 215 int depth = block_to_path(inode, iblock, offsets); in get_block() 376 long iblock; in sysv_truncate() local 384 iblock = (inode->i_size + blocksize-1) in sysv_truncate() 389 n = block_to_path(inode, iblock, offsets); in sysv_truncate()
|
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | aops.c | 175 sector_t iblock, lblock, zblock; in ntfs_read_block() local 212 iblock = (s64)page->index << (PAGE_SHIFT - blocksize_bits); in ntfs_read_block() 238 if (iblock < lblock) { in ntfs_read_block() 241 /* Convert iblock into corresponding vcn and offset. */ in ntfs_read_block() 242 vcn = (VCN)iblock << blocksize_bits >> in ntfs_read_block() 244 vcn_ofs = ((VCN)iblock << blocksize_bits) & in ntfs_read_block() 265 if (iblock < zblock) { in ntfs_read_block() 313 * Either iblock was outside lblock limits or in ntfs_read_block() 324 } while (i++, iblock++, (bh = bh->b_this_page) != head); in ntfs_read_block() 536 sector_t block, dblock, iblock; in ntfs_write_block() local [all...] |
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | aops.c | 175 sector_t iblock, lblock, zblock; in ntfs_read_block() local 212 iblock = (s64)page->index << (PAGE_SHIFT - blocksize_bits); in ntfs_read_block() 238 if (iblock < lblock) { in ntfs_read_block() 241 /* Convert iblock into corresponding vcn and offset. */ in ntfs_read_block() 242 vcn = (VCN)iblock << blocksize_bits >> in ntfs_read_block() 244 vcn_ofs = ((VCN)iblock << blocksize_bits) & in ntfs_read_block() 265 if (iblock < zblock) { in ntfs_read_block() 313 * Either iblock was outside lblock limits or in ntfs_read_block() 324 } while (i++, iblock++, (bh = bh->b_this_page) != head); in ntfs_read_block() 537 sector_t block, dblock, iblock; in ntfs_write_block() local [all...] |
/kernel/linux/linux-5.10/fs/hfsplus/ |
H A D | extents.c | 224 /* Get a block at iblock for inode, possibly allocating if create */ 225 int hfsplus_get_block(struct inode *inode, sector_t iblock, in hfsplus_get_block() argument 237 ablock = iblock >> sbi->fs_shift; in hfsplus_get_block() 239 if (iblock >= hip->fs_blocks) { in hfsplus_get_block() 242 if (iblock > hip->fs_blocks) in hfsplus_get_block() 279 inode->i_ino, (long long)iblock, dblock); in hfsplus_get_block() 283 sbi->blockoffset + (iblock & mask); in hfsplus_get_block()
|
/kernel/linux/linux-6.6/fs/hfsplus/ |
H A D | extents.c | 224 /* Get a block at iblock for inode, possibly allocating if create */ 225 int hfsplus_get_block(struct inode *inode, sector_t iblock, in hfsplus_get_block() argument 237 ablock = iblock >> sbi->fs_shift; in hfsplus_get_block() 239 if (iblock >= hip->fs_blocks) { in hfsplus_get_block() 242 if (iblock > hip->fs_blocks) in hfsplus_get_block() 279 inode->i_ino, (long long)iblock, dblock); in hfsplus_get_block() 283 sbi->blockoffset + (iblock & mask); in hfsplus_get_block()
|
/kernel/linux/linux-6.6/fs/hpfs/ |
H A D | file.c | 79 static int hpfs_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) in hpfs_get_block() argument 85 s = hpfs_bmap(inode, iblock, &n_secs); in hpfs_get_block() 99 if (iblock<<9 != hpfs_i(inode)->mmu_private) { in hpfs_get_block()
|
/kernel/linux/linux-6.6/fs/ext2/ |
H A D | inode.c | 625 sector_t iblock, unsigned long maxblocks, in ext2_get_blocks() 643 depth = ext2_block_to_path(inode,iblock,offsets,&blocks_to_boundary); in ext2_get_blocks() 721 goal = ext2_find_goal(inode, iblock, partial); in ext2_get_blocks() 765 ext2_splice_branch(inode, iblock, partial, indirect_blks, count); in ext2_get_blocks() 783 int ext2_get_block(struct inode *inode, sector_t iblock, in ext2_get_block() argument 791 ret = ext2_get_blocks(inode, iblock, max_blocks, &bno, &new, &boundary, in ext2_get_block() 1173 long iblock; in __ext2_truncate_blocks() local 1176 iblock = (offset + blocksize-1) >> EXT2_BLOCK_SIZE_BITS(inode->i_sb); in __ext2_truncate_blocks() 1182 n = ext2_block_to_path(inode, iblock, offsets, NULL); in __ext2_truncate_blocks() 624 ext2_get_blocks(struct inode *inode, sector_t iblock, unsigned long maxblocks, u32 *bno, bool *new, bool *boundary, int create) ext2_get_blocks() argument
|