/linux/fs/freevxfs/ |
H A D | vxfs_bmap.c | 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() 250 vxfs_bmap1(struct inode *ip, long iblock) in vxfs_bmap1() argument 255 return vxfs_bmap_ext4(ip, iblock); in vxfs_bmap1() 257 return vxfs_bmap_typed(ip, iblock); in vxfs_bmap1()
|
H A D | vxfs_subr.c | 99 vxfs_getblk(struct inode *ip, sector_t iblock, in vxfs_getblk() argument 104 pblock = vxfs_bmap1(ip, iblock); in vxfs_getblk()
|
/linux/fs/efs/ |
H A D | inode.c | 207 efs_block_t iblock, result = 0, lastblock = 0; in efs_map_block() local 271 iblock = sb->fs_start + in->extents[dirext].cooked.ex_bn + in efs_map_block() 277 if (first || lastblock != iblock) { in efs_map_block() 280 bh = sb_bread(inode->i_sb, iblock); in efs_map_block() 283 __func__, iblock); in efs_map_block() 287 __func__, iblock); in efs_map_block() 289 lastblock = iblock; in efs_map_block() 298 cur, iblock); in efs_map_block()
|
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()
|
/linux/fs/exfat/ |
H A D | inode.c | 264 static int exfat_get_block(struct inode *inode, sector_t iblock, in exfat_get_block() argument 280 if (iblock >= last_block && !create) in exfat_get_block() 284 err = exfat_map_cluster(inode, iblock >> sbi->sect_per_clus_bits, in exfat_get_block() 290 inode, (unsigned long long)iblock, err); in exfat_get_block() 298 sec_offset = iblock & (sbi->sect_per_clus - 1); in exfat_get_block() 311 if (iblock + max_blocks < valid_blks) { in exfat_get_block() 314 } else if (iblock < valid_blks) { in exfat_get_block() 319 max_blocks = valid_blks - iblock; in exfat_get_block() 326 ei->valid_size = EXFAT_BLK_TO_B(iblock + max_blocks, sb); in exfat_get_block() 331 if (iblock + max_blocks < valid_blks) { in exfat_get_block() [all …]
|
/linux/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 [all …]
|
H A D | aops.h | 48 int ocfs2_get_block(struct inode *inode, sector_t iblock,
|
H A D | ocfs2_trace.h | 1126 TP_PROTO(unsigned long long ino, unsigned long long iblock, 1128 TP_ARGS(ino, iblock, bh_result, create), 1131 __field(unsigned long long, iblock) 1137 __entry->iblock = iblock; 1142 __entry->ino, __entry->iblock, 1148 TP_PROTO(unsigned long long ino, unsigned long long iblock, \ 1150 TP_ARGS(ino, iblock, bh_result, create))
|
/linux/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()
|
/linux/fs/qnx4/ |
H A D | inode.c | 61 static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create… in qnx4_get_block() argument 65 QNX4DEBUG((KERN_INFO "qnx4: qnx4_get_block inode=[%ld] iblock=[%ld]\n",inode->i_ino,iblock)); in qnx4_get_block() 67 phys = qnx4_block_map( inode, iblock ); in qnx4_get_block() 84 unsigned long qnx4_block_map( struct inode *inode, long iblock ) in qnx4_block_map() argument 92 u32 offset = iblock; in qnx4_block_map() 131 QNX4DEBUG((KERN_INFO "qnx4: mapping block %ld of inode %ld = %ld\n",iblock,inode->i_ino,block)); in qnx4_block_map()
|
H A D | qnx4.h | 27 extern unsigned long qnx4_block_map(struct inode *inode, long iblock);
|
/linux/fs/sysv/ |
H A D | itree.c | 208 static int get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int creat… in get_block() argument 216 int depth = block_to_path(inode, iblock, offsets); in get_block() 375 long iblock; in sysv_truncate() local 383 iblock = (inode->i_size + blocksize-1) in sysv_truncate() 388 n = block_to_path(inode, iblock, offsets); in sysv_truncate()
|
/linux/fs/hfsplus/ |
H A D | extents.c | 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()
|
H A D | hfsplus_fs.h | 464 int hfsplus_get_block(struct inode *inode, sector_t iblock,
|
/linux/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 … 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()
|
/linux/fs/ext2/ |
H A D | inode.c | 625 sector_t iblock, unsigned long maxblocks, in ext2_get_blocks() argument 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() 1171 long iblock; in __ext2_truncate_blocks() local 1174 iblock = (offset + blocksize-1) >> EXT2_BLOCK_SIZE_BITS(inode->i_sb); in __ext2_truncate_blocks() 1180 n = ext2_block_to_path(inode, iblock, offsets, NULL); in __ext2_truncate_blocks()
|
/linux/fs/minix/ |
H A D | itree_common.c | 310 long iblock; in truncate() local 312 iblock = (inode->i_size + sb->s_blocksize -1) >> sb->s_blocksize_bits; in truncate() 315 n = block_to_path(inode, iblock, offsets); in truncate()
|
/linux/fs/fat/ |
H A D | inode.c | 118 static inline int __fat_get_block(struct inode *inode, sector_t iblock, in __fat_get_block() argument 128 err = fat_bmap(inode, iblock, &phys, &mapped_blocks, create, false); in __fat_get_block() 139 if (iblock != MSDOS_I(inode)->mmu_private >> sb->s_blocksize_bits) { in __fat_get_block() 146 offset = (unsigned long)iblock & (sbi->sec_per_clus - 1); in __fat_get_block() 152 if (!offset && !(iblock < last_block)) { in __fat_get_block() 164 err = fat_bmap(inode, iblock, &phys, &mapped_blocks, create, false); in __fat_get_block() 182 static int fat_get_block(struct inode *inode, sector_t iblock, in fat_get_block() argument 189 err = __fat_get_block(inode, iblock, &max_blocks, bh_result, create); in fat_get_block() 288 static int fat_get_block_bmap(struct inode *inode, sector_t iblock, in fat_get_block_bmap() argument 299 err = fat_bmap(inode, iblock, &bmap, &mapped_blocks, create, true); in fat_get_block_bmap()
|
/linux/fs/qnx6/ |
H A D | inode.c | 71 static unsigned qnx6_block_map(struct inode *inode, unsigned iblock); 73 static int qnx6_get_block(struct inode *inode, sector_t iblock, in qnx6_get_block() argument 79 inode->i_ino, (unsigned long)iblock); in qnx6_get_block() 81 phys = qnx6_block_map(inode, iblock); in qnx6_get_block()
|
/linux/fs/ntfs3/ |
H A D | file.c | 267 sector_t iblock; in ntfs_zero_range() local 275 iblock = page_off >> inode->i_blkbits; in ntfs_zero_range() 296 ntfs_get_block(inode, iblock, bh, 0); in ntfs_zero_range() 313 } while (bh_off = bh_next, iblock += 1, in ntfs_zero_range()
|
H A D | inode.c | 773 static int ntfs_get_block_direct_IO_R(struct inode *inode, sector_t iblock, in ntfs_get_block_direct_IO_R() argument 776 return ntfs_get_block_vbo(inode, (u64)iblock << inode->i_blkbits, in ntfs_get_block_direct_IO_R() 780 static int ntfs_get_block_direct_IO_W(struct inode *inode, sector_t iblock, in ntfs_get_block_direct_IO_W() argument 783 return ntfs_get_block_vbo(inode, (u64)iblock << inode->i_blkbits, in ntfs_get_block_direct_IO_W()
|
/linux/fs/ext4/ |
H A D | inode.c | 769 static int _ext4_get_block(struct inode *inode, sector_t iblock, in _ext4_get_block() argument 778 map.m_lblk = iblock; in _ext4_get_block() 795 int ext4_get_block(struct inode *inode, sector_t iblock, in ext4_get_block() argument 798 return _ext4_get_block(inode, iblock, bh, in ext4_get_block() 807 int ext4_get_block_unwritten(struct inode *inode, sector_t iblock, in ext4_get_block_unwritten() argument 814 ret = _ext4_get_block(inode, iblock, bh_result, in ext4_get_block_unwritten() 1852 int ext4_da_get_block_prep(struct inode *inode, sector_t iblock, in ext4_da_get_block_prep() argument 1865 map.m_lblk = iblock; in ext4_da_get_block_prep() 3685 ext4_lblk_t iblock; in __ext4_block_zero_page_range() local 3699 iblock = index << (PAGE_SHIFT - inode->i_sb->s_blocksize_bits); in __ext4_block_zero_page_range() [all …]
|
H A D | ext4.h | 2966 int ext4_get_block_unwritten(struct inode *inode, sector_t iblock, 2968 int ext4_get_block(struct inode *inode, sector_t iblock, 2970 int ext4_da_get_block_prep(struct inode *inode, sector_t iblock,
|
/linux/block/ |
H A D | fops.c | 411 static int blkdev_get_block(struct inode *inode, sector_t iblock, in blkdev_get_block() argument 415 bh->b_blocknr = iblock; in blkdev_get_block()
|
/linux/include/linux/ |
H A D | fs.h | 96 typedef int (get_block_t)(struct inode *inode, sector_t iblock,
|