/fs/freevxfs/ |
D | vxfs_bmap.c | 201 vxfs_bmap_typed(struct inode *ip, long iblock) in vxfs_bmap_typed() argument 214 if (iblock < off) in vxfs_bmap_typed() 219 typ->vt_size, iblock - off); in vxfs_bmap_typed() 224 if ((iblock - off) < typ->vt_size) in vxfs_bmap_typed() 225 return (typ->vt_block + iblock - off); in vxfs_bmap_typed() 260 vxfs_bmap1(struct inode *ip, long iblock) in vxfs_bmap1() argument 265 return vxfs_bmap_ext4(ip, iblock); in vxfs_bmap1() 267 return vxfs_bmap_typed(ip, iblock); in vxfs_bmap1()
|
D | vxfs_subr.c | 131 vxfs_getblk(struct inode *ip, sector_t iblock, in vxfs_getblk() argument 136 pblock = vxfs_bmap1(ip, iblock); in vxfs_getblk()
|
/fs/qnx4/ |
D | fsync.c | 60 static int sync_iblock(struct inode *inode, unsigned short *iblock, in sync_iblock() argument 67 tmp = *iblock; in sync_iblock() 70 rc = sync_block(inode, iblock, wait); in sync_iblock() 74 if (tmp != *iblock) { in sync_iblock() 102 static int sync_indirect(struct inode *inode, unsigned short *iblock, int wait) in sync_indirect() argument 108 rc = sync_iblock(inode, iblock, &ind_bh, wait); in sync_indirect()
|
D | inode.c | 213 static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create… in qnx4_get_block() argument 217 QNX4DEBUG(("qnx4: qnx4_get_block inode=[%ld] iblock=[%ld]\n",inode->i_ino,iblock)); in qnx4_get_block() 219 phys = qnx4_block_map( inode, iblock ); in qnx4_get_block() 229 unsigned long qnx4_block_map( struct inode *inode, long iblock ) in qnx4_block_map() argument 239 if ( iblock < le32_to_cpu(qnx4_inode->di_first_xtnt.xtnt_size) ) { in qnx4_block_map() 241 block = le32_to_cpu(qnx4_inode->di_first_xtnt.xtnt_blk) + iblock - 1; in qnx4_block_map() 245 offset = iblock - le32_to_cpu(qnx4_inode->di_first_xtnt.xtnt_size); in qnx4_block_map() 278 QNX4DEBUG(("qnx4: mapping block %ld of inode %ld = %ld\n",iblock,inode->i_ino,block)); in qnx4_block_map()
|
/fs/efs/ |
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() 283 printk(KERN_ERR "EFS: bread() failed at block %d\n", iblock); in efs_map_block() 287 printk(KERN_DEBUG "EFS: map_block(): read indirect extent block %d\n", iblock); in efs_map_block() 290 lastblock = iblock; in efs_map_block() 298 printk(KERN_ERR "EFS: extent %d has bad magic number in block %d\n", cur, iblock); in efs_map_block()
|
D | file.c | 12 int efs_get_block(struct inode *inode, sector_t iblock, in efs_get_block() argument 20 if (iblock >= inode->i_blocks) { in efs_get_block() 32 phys = efs_map_block(inode, iblock); in efs_get_block()
|
/fs/ocfs2/ |
D | aops.c | 50 static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock, in ocfs2_symlink_get_block() argument 62 (unsigned long long)iblock, bh_result, create); in ocfs2_symlink_get_block() 66 if ((iblock << inode->i_sb->s_blocksize_bits) > PATH_MAX + 1) { in ocfs2_symlink_get_block() 68 (unsigned long long)iblock); in ocfs2_symlink_get_block() 79 if ((u64)iblock >= ocfs2_clusters_to_blocks(inode->i_sb, in ocfs2_symlink_get_block() 82 "%llu\n", (unsigned long long)iblock); in ocfs2_symlink_get_block() 90 iblock; in ocfs2_symlink_get_block() 108 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block() 118 le64_to_cpu(fe->id2.i_list.l_recs[0].e_blkno) + iblock); in ocfs2_symlink_get_block() 129 static int ocfs2_get_block(struct inode *inode, sector_t iblock, in ocfs2_get_block() argument [all …]
|
/fs/udf/ |
D | dir.c | 45 int block, iblock; in do_udf_readdir() local 159 iblock = parent_ino(filp->f_path.dentry); in do_udf_readdir() 166 iblock = udf_get_lb_pblock(dir->i_sb, tloc, 0); in do_udf_readdir() 172 iblock, dt_type) < 0) in do_udf_readdir()
|
/fs/ext4/ |
D | extents.c | 2381 ext4_lblk_t iblock, in ext4_ext_convert_to_initialized() argument 2400 allocated = ee_len - (iblock - ee_block); in ext4_ext_convert_to_initialized() 2401 newblock = iblock - ee_block + ext_pblock(ex); in ext4_ext_convert_to_initialized() 2425 if (iblock > ee_block) { in ext4_ext_convert_to_initialized() 2427 ex1->ee_len = cpu_to_le16(iblock - ee_block); in ext4_ext_convert_to_initialized() 2457 ex3->ee_block = cpu_to_le32(iblock); in ext4_ext_convert_to_initialized() 2492 iblock, path); in ext4_ext_convert_to_initialized() 2512 ex3->ee_block = cpu_to_le32(iblock + max_blocks); in ext4_ext_convert_to_initialized() 2545 path = ext4_ext_find_extent(inode, iblock, path); in ext4_ext_convert_to_initialized() 2566 iblock != ee_block) { in ext4_ext_convert_to_initialized() [all …]
|
D | inode.c | 556 ext4_lblk_t iblock, ext4_fsblk_t goal, in ext4_alloc_blocks() argument 613 ar.logical = iblock; in ext4_alloc_blocks() 674 ext4_lblk_t iblock, int indirect_blks, in ext4_alloc_branch() argument 686 num = ext4_alloc_blocks(handle, inode, iblock, goal, indirect_blks, in ext4_alloc_branch() 862 ext4_lblk_t iblock, unsigned int maxblocks, in ext4_get_blocks_handle() argument 882 depth = ext4_block_to_path(inode, iblock, offsets, in ext4_get_blocks_handle() 916 goal = ext4_find_goal(inode, iblock, partial); in ext4_get_blocks_handle() 930 err = ext4_alloc_branch(handle, inode, iblock, indirect_blks, in ext4_get_blocks_handle() 942 err = ext4_splice_branch(handle, inode, iblock, in ext4_get_blocks_handle() 950 disksize = ((loff_t) iblock + count) << inode->i_blkbits; in ext4_get_blocks_handle() [all …]
|
/fs/hpfs/ |
D | file.c | 61 static int hpfs_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int … in hpfs_get_block() argument 64 s = hpfs_bmap(inode, iblock); in hpfs_get_block() 70 if (iblock<<9 != hpfs_i(inode)->mmu_private) { in hpfs_get_block()
|
/fs/ntfs/ |
D | aops.c | 195 sector_t iblock, lblock, zblock; in ntfs_read_block() local 232 iblock = (s64)page->index << (PAGE_CACHE_SHIFT - blocksize_bits); in ntfs_read_block() 258 if (iblock < lblock) { in ntfs_read_block() 262 vcn = (VCN)iblock << blocksize_bits >> in ntfs_read_block() 264 vcn_ofs = ((VCN)iblock << blocksize_bits) & in ntfs_read_block() 285 if (iblock < zblock) { in ntfs_read_block() 344 } while (i++, iblock++, (bh = bh->b_this_page) != head); in ntfs_read_block() 556 sector_t block, dblock, iblock; in ntfs_write_block() local 613 iblock = initialized_size >> blocksize_bits; in ntfs_write_block() 657 if (unlikely((block >= iblock) && in ntfs_write_block() [all …]
|
/fs/hfsplus/ |
D | extents.c | 172 int hfsplus_get_block(struct inode *inode, sector_t iblock, in hfsplus_get_block() argument 184 ablock = iblock >> HFSPLUS_SB(sb).fs_shift; in hfsplus_get_block() 186 if (iblock >= HFSPLUS_I(inode).fs_blocks) { in hfsplus_get_block() 187 if (iblock > HFSPLUS_I(inode).fs_blocks || !create) in hfsplus_get_block() 217 dprint(DBG_EXTENT, "get_block(%lu): %llu - %u\n", inode->i_ino, (long long)iblock, dblock); in hfsplus_get_block() 219 …map_bh(bh_result, sb, (dblock << HFSPLUS_SB(sb).fs_shift) + HFSPLUS_SB(sb).blockoffset + (iblock &… in hfsplus_get_block()
|
/fs/sysv/ |
D | itree.c | 202 static int get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int creat… in get_block() argument 210 int depth = block_to_path(inode, iblock, offsets); in get_block() 371 long iblock; in sysv_truncate() local 379 iblock = (inode->i_size + blocksize-1) in sysv_truncate() 384 n = block_to_path(inode, iblock, offsets); in sysv_truncate()
|
/fs/ext2/ |
D | inode.c | 573 sector_t iblock, unsigned long maxblocks, in ext2_get_blocks() argument 589 depth = ext2_block_to_path(inode,iblock,offsets,&blocks_to_boundary); in ext2_get_blocks() 637 goal = ext2_find_goal(inode, iblock, partial); in ext2_get_blocks() 670 ext2_splice_branch(inode, iblock, partial, indirect_blks, count); in ext2_get_blocks() 694 int ext2_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) in ext2_get_block() argument 697 int ret = ext2_get_blocks(inode, iblock, max_blocks, in ext2_get_block() 1013 long iblock; in ext2_truncate() local 1025 iblock = (inode->i_size + blocksize-1) in ext2_truncate() 1037 n = ext2_block_to_path(inode, iblock, offsets, NULL); in ext2_truncate()
|
/fs/isofs/ |
D | inode.c | 951 long iblock = (long)iblock_s; in isofs_get_blocks() local 959 if (iblock < 0 || iblock != iblock_s) { in isofs_get_blocks() 964 b_off = iblock; in isofs_get_blocks() 983 __func__, iblock, (unsigned long) inode->i_size); in isofs_get_blocks() 1011 iblock, firstext, (unsigned) sect_size, in isofs_get_blocks() 1039 static int isofs_get_block(struct inode *inode, sector_t iblock, in isofs_get_block() argument 1049 ret = isofs_get_blocks(inode, iblock, &bh_result, 1); in isofs_get_block()
|
/fs/minix/ |
D | itree_common.c | 303 long iblock; in truncate() local 305 iblock = (inode->i_size + sb->s_blocksize -1) >> sb->s_blocksize_bits; in truncate() 308 n = block_to_path(inode, iblock, offsets); in truncate()
|
/fs/ |
D | block_dev.c | 117 blkdev_get_block(struct inode *inode, sector_t iblock, in blkdev_get_block() argument 120 if (iblock >= max_block(I_BDEV(inode))) { in blkdev_get_block() 133 bh->b_blocknr = iblock; in blkdev_get_block() 139 blkdev_get_blocks(struct inode *inode, sector_t iblock, in blkdev_get_blocks() argument 145 if ((iblock + max_blocks) > end_block) { in blkdev_get_blocks() 146 max_blocks = end_block - iblock; in blkdev_get_blocks() 159 bh->b_blocknr = iblock; in blkdev_get_blocks()
|
D | buffer.c | 2217 sector_t iblock, lblock; in block_read_full_page() local 2229 iblock = (sector_t)page->index << (PAGE_CACHE_SHIFT - inode->i_blkbits); in block_read_full_page() 2243 if (iblock < lblock) { in block_read_full_page() 2245 err = get_block(inode, iblock, bh, 0); in block_read_full_page() 2263 } while (i++, iblock++, (bh = bh->b_this_page) != head); in block_read_full_page() 2774 sector_t iblock; in nobh_truncate_page() local 2789 iblock = (sector_t)index << (PAGE_CACHE_SHIFT - inode->i_blkbits); in nobh_truncate_page() 2806 iblock++; in nobh_truncate_page() 2810 err = get_block(inode, iblock, &map_bh, 0); in nobh_truncate_page() 2850 sector_t iblock; in block_truncate_page() local [all …]
|
/fs/fat/ |
D | dir.c | 33 static inline void fat_dir_readahead(struct inode *dir, sector_t iblock, in fat_dir_readahead() argument 42 if ((iblock & (sbi->sec_per_clus - 1)) || sbi->sec_per_clus == 1) in fat_dir_readahead() 70 sector_t phys, iblock; in fat__get_entry() local 79 iblock = *pos >> sb->s_blocksize_bits; in fat__get_entry() 80 err = fat_bmap(dir, iblock, &phys, &mapped_blocks, 0); in fat__get_entry() 84 fat_dir_readahead(dir, iblock, phys); in fat__get_entry() 91 *pos = (iblock + 1) << sb->s_blocksize_bits; in fat__get_entry()
|
D | inode.c | 57 static inline int __fat_get_block(struct inode *inode, sector_t iblock, in __fat_get_block() argument 67 err = fat_bmap(inode, iblock, &phys, &mapped_blocks, create); in __fat_get_block() 78 if (iblock != MSDOS_I(inode)->mmu_private >> sb->s_blocksize_bits) { in __fat_get_block() 84 offset = (unsigned long)iblock & (sbi->sec_per_clus - 1); in __fat_get_block() 97 err = fat_bmap(inode, iblock, &phys, &mapped_blocks, create); in __fat_get_block() 109 static int fat_get_block(struct inode *inode, sector_t iblock, in fat_get_block() argument 116 err = __fat_get_block(inode, iblock, &max_blocks, bh_result, create); in fat_get_block()
|
/fs/xfs/linux-2.6/ |
D | xfs_aops.c | 1364 sector_t iblock, in __xfs_get_blocks() argument 1376 offset = (xfs_off_t)iblock << inode->i_blkbits; in __xfs_get_blocks() 1449 sector_t iblock, in xfs_get_blocks() argument 1453 return __xfs_get_blocks(inode, iblock, in xfs_get_blocks() 1460 sector_t iblock, in xfs_get_blocks_direct() argument 1464 return __xfs_get_blocks(inode, iblock, in xfs_get_blocks_direct()
|
/fs/ext3/ |
D | inode.c | 789 sector_t iblock, unsigned long maxblocks, in ext3_get_blocks_handle() argument 807 depth = ext3_block_to_path(inode,iblock,offsets,&blocks_to_boundary); in ext3_get_blocks_handle() 887 goal = ext3_find_goal(inode, iblock, partial); in ext3_get_blocks_handle() 912 err = ext3_splice_branch(handle, inode, iblock, in ext3_get_blocks_handle() 955 static int ext3_get_block(struct inode *inode, sector_t iblock, in ext3_get_block() argument 974 ret = ext3_get_blocks_handle(handle, inode, iblock, in ext3_get_block() 1850 unsigned blocksize, iblock, length, pos; in ext3_block_truncate_page() local 1857 iblock = index << (PAGE_CACHE_SHIFT - inode->i_sb->s_blocksize_bits); in ext3_block_truncate_page() 1878 iblock++; in ext3_block_truncate_page() 1890 ext3_get_block(inode, iblock, bh, 0); in ext3_block_truncate_page()
|
/fs/gfs2/ |
D | bmap.c | 960 unsigned blocksize, iblock, length, pos; in gfs2_block_truncate_page() local 971 iblock = index << (PAGE_CACHE_SHIFT - inode->i_sb->s_blocksize_bits); in gfs2_block_truncate_page() 981 iblock++; in gfs2_block_truncate_page() 988 gfs2_block_map(inode, iblock, bh, 0); in gfs2_block_truncate_page()
|
D | quota.c | 612 unsigned blocksize, iblock, pos; in gfs2_adjust_quota() local 629 iblock = index << (PAGE_CACHE_SHIFT - inode->i_sb->s_blocksize_bits); in gfs2_adjust_quota() 638 iblock++; in gfs2_adjust_quota() 643 gfs2_block_map(inode, iblock, bh, 1); in gfs2_adjust_quota()
|