Home
last modified time | relevance | path

Searched refs:iblock (Results 1 – 25 of 29) sorted by relevance

12

/fs/freevxfs/
Dvxfs_bmap.c210 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()
274 vxfs_bmap1(struct inode *ip, long iblock) in vxfs_bmap1() argument
279 return vxfs_bmap_ext4(ip, iblock); in vxfs_bmap1()
281 return vxfs_bmap_typed(ip, iblock); in vxfs_bmap1()
Dvxfs_subr.c129 vxfs_getblk(struct inode *ip, sector_t iblock, in vxfs_getblk() argument
134 pblock = vxfs_bmap1(ip, iblock); in vxfs_getblk()
/fs/efs/
Dinode.c206 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()
Dfile.c13 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()
/fs/ocfs2/
Daops.c43 static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock, in ocfs2_symlink_get_block() argument
56 (unsigned long long)iblock, bh_result, create); in ocfs2_symlink_get_block()
60 if ((iblock << inode->i_sb->s_blocksize_bits) > PATH_MAX + 1) { in ocfs2_symlink_get_block()
62 (unsigned long long)iblock); in ocfs2_symlink_get_block()
73 if ((u64)iblock >= ocfs2_clusters_to_blocks(inode->i_sb, in ocfs2_symlink_get_block()
77 "%llu\n", (unsigned long long)iblock); in ocfs2_symlink_get_block()
85 iblock; in ocfs2_symlink_get_block()
104 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block()
114 le64_to_cpu(fe->id2.i_list.l_recs[0].e_blkno) + iblock); in ocfs2_symlink_get_block()
124 static int ocfs2_lock_get_block(struct inode *inode, sector_t iblock, in ocfs2_lock_get_block() argument
[all …]
Daops.h50 int ocfs2_get_block(struct inode *inode, sector_t iblock,
Docfs2_trace.h1126 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))
/fs/qnx4/
Dinode.c55 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() argument
86 u32 offset = iblock; 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()
Dqnx4.h27 extern unsigned long qnx4_block_map(struct inode *inode, long iblock);
/fs/ntfs/
Daops.c178 sector_t iblock, lblock, zblock; in ntfs_read_block() local
215 iblock = (s64)page->index << (PAGE_SHIFT - blocksize_bits); in ntfs_read_block()
241 if (iblock < lblock) { in ntfs_read_block()
245 vcn = (VCN)iblock << blocksize_bits >> in ntfs_read_block()
247 vcn_ofs = ((VCN)iblock << blocksize_bits) & in ntfs_read_block()
268 if (iblock < zblock) { in ntfs_read_block()
327 } while (i++, iblock++, (bh = bh->b_this_page) != head); in ntfs_read_block()
539 sector_t block, dblock, iblock; in ntfs_write_block() local
596 iblock = initialized_size >> blocksize_bits; in ntfs_write_block()
640 if (unlikely((block >= iblock) && in ntfs_write_block()
[all …]
/fs/udf/
Ddir.c46 udf_pblk_t block, iblock; in udf_readdir() local
184 iblock = udf_get_lb_pblock(sb, &tloc, 0); in udf_readdir()
185 if (!dir_emit(ctx, fname, flen, iblock, DT_UNKNOWN)) in udf_readdir()
/fs/sysv/
Ditree.c203 static int get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int creat… in get_block() argument
211 int depth = block_to_path(inode, iblock, offsets); in get_block()
372 long iblock; in sysv_truncate() local
380 iblock = (inode->i_size + blocksize-1) in sysv_truncate()
385 n = block_to_path(inode, iblock, offsets); in sysv_truncate()
/fs/hfsplus/
Dextents.c225 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()
Dhfsplus_fs.h470 int hfsplus_get_block(struct inode *inode, sector_t iblock,
/fs/hpfs/
Dfile.c77 static int hpfs_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int … in hpfs_get_block() argument
83 s = hpfs_bmap(inode, iblock, &n_secs); in hpfs_get_block()
97 if (iblock<<9 != hpfs_i(inode)->mmu_private) { in hpfs_get_block()
/fs/ext2/
Dinode.c624 sector_t iblock, unsigned long maxblocks, in ext2_get_blocks() argument
642 depth = ext2_block_to_path(inode,iblock,offsets,&blocks_to_boundary); in ext2_get_blocks()
720 goal = ext2_find_goal(inode, iblock, partial); in ext2_get_blocks()
764 ext2_splice_branch(inode, iblock, partial, indirect_blks, count); in ext2_get_blocks()
782 int ext2_get_block(struct inode *inode, sector_t iblock, in ext2_get_block() argument
790 ret = ext2_get_blocks(inode, iblock, max_blocks, &bno, &new, &boundary, in ext2_get_block()
1193 long iblock; in __ext2_truncate_blocks() local
1196 iblock = (offset + blocksize-1) >> EXT2_BLOCK_SIZE_BITS(inode->i_sb); in __ext2_truncate_blocks()
1202 n = ext2_block_to_path(inode, iblock, offsets, NULL); in __ext2_truncate_blocks()
/fs/minix/
Ditree_common.c304 long iblock; in truncate() local
306 iblock = (inode->i_size + sb->s_blocksize -1) >> sb->s_blocksize_bits; in truncate()
309 n = block_to_path(inode, iblock, offsets); in truncate()
/fs/ext4/
Dinode.c789 static int _ext4_get_block(struct inode *inode, sector_t iblock, in _ext4_get_block() argument
798 map.m_lblk = iblock; in _ext4_get_block()
815 int ext4_get_block(struct inode *inode, sector_t iblock, in ext4_get_block() argument
818 return _ext4_get_block(inode, iblock, bh, in ext4_get_block()
827 int ext4_get_block_unwritten(struct inode *inode, sector_t iblock, in ext4_get_block_unwritten() argument
832 return _ext4_get_block(inode, iblock, bh_result, in ext4_get_block_unwritten()
844 static int ext4_get_block_trans(struct inode *inode, sector_t iblock, in ext4_get_block_trans() argument
862 ret = _ext4_get_block(inode, iblock, bh_result, flags); in ext4_get_block_trans()
871 int ext4_dio_get_block(struct inode *inode, sector_t iblock, in ext4_dio_get_block() argument
878 return _ext4_get_block(inode, iblock, bh, 0); in ext4_dio_get_block()
[all …]
/fs/
Dbuffer.c2220 sector_t iblock, lblock; in block_read_full_page() local
2230 iblock = (sector_t)page->index << (PAGE_SHIFT - bbits); in block_read_full_page()
2244 if (iblock < lblock) { in block_read_full_page()
2246 err = get_block(inode, iblock, bh, 0); in block_read_full_page()
2264 } while (i++, iblock++, (bh = bh->b_this_page) != head); in block_read_full_page()
2769 sector_t iblock; in nobh_truncate_page() local
2784 iblock = (sector_t)index << (PAGE_SHIFT - inode->i_blkbits); in nobh_truncate_page()
2801 iblock++; in nobh_truncate_page()
2807 err = get_block(inode, iblock, &map_bh, 0); in nobh_truncate_page()
2847 sector_t iblock; in block_truncate_page() local
[all …]
/fs/fat/
Dinode.c118 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()
295 static int fat_get_block_bmap(struct inode *inode, sector_t iblock, in fat_get_block_bmap() argument
306 err = fat_bmap(inode, iblock, &bmap, &mapped_blocks, create, true); in fat_get_block_bmap()
Ddir.c49 static inline void fat_dir_readahead(struct inode *dir, sector_t iblock, in fat_dir_readahead() argument
58 if ((iblock & (sbi->sec_per_clus - 1)) || sbi->sec_per_clus == 1) in fat_dir_readahead()
86 sector_t phys, iblock; in fat__get_entry() local
93 iblock = *pos >> sb->s_blocksize_bits; in fat__get_entry()
94 err = fat_bmap(dir, iblock, &phys, &mapped_blocks, 0, false); in fat__get_entry()
98 fat_dir_readahead(dir, iblock, phys); in fat__get_entry()
105 *pos = (iblock + 1) << sb->s_blocksize_bits; in fat__get_entry()
/fs/qnx6/
Dinode.c70 static unsigned qnx6_block_map(struct inode *inode, unsigned iblock);
72 static int qnx6_get_block(struct inode *inode, sector_t iblock, in qnx6_get_block() argument
78 inode->i_ino, (unsigned long)iblock); in qnx6_get_block()
80 phys = qnx6_block_map(inode, iblock); in qnx6_get_block()
/fs/erofs/
Ddata.c326 static int erofs_get_block(struct inode *inode, sector_t iblock, in erofs_get_block() argument
330 .m_la = iblock << 9, in erofs_get_block()
/fs/isofs/
Dinode.c1057 int isofs_get_blocks(struct inode *inode, sector_t iblock, in isofs_get_blocks() argument
1060 unsigned long b_off = iblock; in isofs_get_blocks()
1069 if (iblock != b_off) { in isofs_get_blocks()
1148 static int isofs_get_block(struct inode *inode, sector_t iblock, in isofs_get_block() argument
1158 ret = isofs_get_blocks(inode, iblock, &bh_result, 1); in isofs_get_block()
/fs/f2fs/
Ddata.c1562 static int __get_data_block(struct inode *inode, sector_t iblock, in __get_data_block() argument
1569 map.m_lblk = iblock; in __get_data_block()
1585 static int get_data_block(struct inode *inode, sector_t iblock, in get_data_block() argument
1589 return __get_data_block(inode, iblock, bh_result, create, in get_data_block()
1594 static int get_data_block_dio_write(struct inode *inode, sector_t iblock, in get_data_block_dio_write() argument
1597 return __get_data_block(inode, iblock, bh_result, create, in get_data_block_dio_write()
1603 static int get_data_block_dio(struct inode *inode, sector_t iblock, in get_data_block_dio() argument
1606 return __get_data_block(inode, iblock, bh_result, create, in get_data_block_dio()
1612 static int get_data_block_bmap(struct inode *inode, sector_t iblock, in get_data_block_bmap() argument
1616 if (unlikely(iblock >= F2FS_I_SB(inode)->max_file_blocks)) in get_data_block_bmap()
[all …]

12