Searched refs:iblock (Results 1 - 25 of 33) sorted by relevance

12

/fs/efs/
H A Dfile.c12 int efs_get_block(struct inode *inode, sector_t iblock, argument
20 if (iblock >= inode->i_blocks) {
30 phys = efs_map_block(inode, iblock);
H A Dinode.c204 efs_block_t iblock, result = 0, lastblock = 0; local
268 iblock = sb->fs_start + in->extents[dirext].cooked.ex_bn +
274 if (first || lastblock != iblock) {
277 bh = sb_bread(inode->i_sb, iblock);
280 __func__, iblock);
284 __func__, iblock);
286 lastblock = iblock;
295 cur, iblock);
/fs/freevxfs/
H A Dvxfs_bmap.c56 * @iblock: logical block.
192 * @iblock: logical block
201 vxfs_bmap_typed(struct inode *ip, long iblock) argument
214 if (iblock < off)
219 typ->vt_size, iblock - off);
224 if ((iblock - off) < typ->vt_size)
225 return (typ->vt_block + iblock - off);
250 * @iblock: logical block
260 vxfs_bmap1(struct inode *ip, long iblock) argument
265 return vxfs_bmap_ext4(ip, iblock);
[all...]
H A Dvxfs_subr.c116 * @iblock: logical block
129 vxfs_getblk(struct inode *ip, sector_t iblock, argument
134 pblock = vxfs_bmap1(ip, iblock);
/fs/qnx4/
H A Dqnx4.h26 extern unsigned long qnx4_block_map(struct inode *inode, long iblock);
H A Dinode.c54 static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create ) argument
58 QNX4DEBUG((KERN_INFO "qnx4: qnx4_get_block inode=[%ld] iblock=[%ld]\n",inode->i_ino,iblock));
60 phys = qnx4_block_map( inode, iblock );
77 unsigned long qnx4_block_map( struct inode *inode, long iblock )
85 u32 offset = iblock;
89 // iblock is in the first extent. This is easy.
91 // iblock is beyond first extent. We have to follow the extent chain.
124 QNX4DEBUG((KERN_INFO "qnx4: mapping block %ld of inode %ld = %ld\n",iblock,inode->i_ino,block));
/fs/ocfs2/
H A Daops.h60 int ocfs2_get_block(struct inode *inode, sector_t iblock,
H A Daops.c51 static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock, argument
64 (unsigned long long)iblock, bh_result, create);
68 if ((iblock << inode->i_sb->s_blocksize_bits) > PATH_MAX + 1) {
70 (unsigned long long)iblock);
81 if ((u64)iblock >= ocfs2_clusters_to_blocks(inode->i_sb,
85 "%llu\n", (unsigned long long)iblock);
93 iblock;
112 memcpy(kaddr + (bh_result->b_size * iblock),
122 le64_to_cpu(fe->id2.i_list.l_recs[0].e_blkno) + iblock);
132 int ocfs2_get_block(struct inode *inode, sector_t iblock, argument
513 ocfs2_direct_IO_get_blocks(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) argument
[all...]
H A Docfs2_trace.h1123 TP_PROTO(unsigned long long ino, unsigned long long iblock,
1125 TP_ARGS(ino, iblock, bh_result, create),
1128 __field(unsigned long long, iblock)
1134 __entry->iblock = iblock;
1139 __entry->ino, __entry->iblock,
1145 TP_PROTO(unsigned long long ino, unsigned long long iblock, \
1147 TP_ARGS(ino, iblock, bh_result, create))
/fs/hpfs/
H A Dfile.c76 static int hpfs_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) argument
82 s = hpfs_bmap(inode, iblock, &n_secs);
91 if (iblock<<9 != hpfs_i(inode)->mmu_private) {
/fs/udf/
H A Ddir.c46 int block, iblock; local
175 iblock = udf_get_lb_pblock(dir->i_sb, &tloc, 0);
176 if (!dir_emit(ctx, fname, flen, iblock, DT_UNKNOWN))
/fs/hfsplus/
H A Dextents.c219 /* Get a block at iblock for inode, possibly allocating if create */
220 int hfsplus_get_block(struct inode *inode, sector_t iblock, argument
232 ablock = iblock >> sbi->fs_shift;
234 if (iblock >= hip->fs_blocks) {
235 if (iblock > hip->fs_blocks || !create)
272 inode->i_ino, (long long)iblock, dblock);
276 sbi->blockoffset + (iblock & mask);
/fs/ntfs/
H A Daops.c195 sector_t iblock, lblock, zblock; local
232 iblock = (s64)page->index << (PAGE_CACHE_SHIFT - blocksize_bits);
258 if (iblock < lblock) {
261 /* Convert iblock into corresponding vcn and offset. */
262 vcn = (VCN)iblock << blocksize_bits >>
264 vcn_ofs = ((VCN)iblock << blocksize_bits) &
285 if (iblock < zblock) {
333 * Either iblock was outside lblock limits or
344 } while (i++, iblock++, (bh = bh->b_this_page) != head);
556 sector_t block, dblock, iblock; local
[all...]
/fs/sysv/
H A Ditree.c202 static int get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) argument
210 int depth = block_to_path(inode, iblock, offsets);
371 long iblock; local
379 iblock = (inode->i_size + blocksize-1)
384 n = block_to_path(inode, iblock, offsets);
/fs/ext2/
H A Dinode.c619 sector_t iblock, unsigned long maxblocks,
637 depth = ext2_block_to_path(inode,iblock,offsets,&blocks_to_boundary);
713 goal = ext2_find_goal(inode, iblock, partial);
746 ext2_splice_branch(inode, iblock, partial, indirect_blks, count);
764 int ext2_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) argument
767 int ret = ext2_get_blocks(inode, iblock, max_blocks,
1097 long iblock; local
1100 iblock = (offset + blocksize-1) >> EXT2_BLOCK_SIZE_BITS(inode->i_sb);
1102 n = ext2_block_to_path(inode, iblock, offsets, NULL);
618 ext2_get_blocks(struct inode *inode, sector_t iblock, unsigned long maxblocks, struct buffer_head *bh_result, int create) argument
/fs/minix/
H A Ditree_common.c303 long iblock; local
305 iblock = (inode->i_size + sb->s_blocksize -1) >> sb->s_blocksize_bits;
308 n = block_to_path(inode, iblock, offsets);
/fs/qnx6/
H A Dinode.c69 static unsigned qnx6_block_map(struct inode *inode, unsigned iblock);
71 static int qnx6_get_block(struct inode *inode, sector_t iblock, argument
76 pr_debug("qnx6_get_block inode=[%ld] iblock=[%ld]\n",
77 inode->i_ino, (unsigned long)iblock);
79 phys = qnx6_block_map(inode, iblock);
/fs/f2fs/
H A Ddata.c620 static int __get_data_block(struct inode *inode, sector_t iblock, argument
631 /* Get the page offset from the block offset(iblock) */
632 pgofs = (pgoff_t)(iblock >> (PAGE_CACHE_SHIFT - blkbits));
717 trace_f2fs_get_data_block(inode, iblock, bh_result, err);
721 static int get_data_block(struct inode *inode, sector_t iblock, argument
724 return __get_data_block(inode, iblock, bh_result, create, false);
727 static int get_data_block_fiemap(struct inode *inode, sector_t iblock, argument
730 return __get_data_block(inode, iblock, bh_result, create, true);
/fs/fat/
H A Ddir.c51 static inline void fat_dir_readahead(struct inode *dir, sector_t iblock, argument
60 if ((iblock & (sbi->sec_per_clus - 1)) || sbi->sec_per_clus == 1)
88 sector_t phys, iblock; local
97 iblock = *pos >> sb->s_blocksize_bits;
98 err = fat_bmap(dir, iblock, &phys, &mapped_blocks, 0);
102 fat_dir_readahead(dir, iblock, phys);
109 *pos = (iblock + 1) << sb->s_blocksize_bits;
H A Dinode.c119 static inline int __fat_get_block(struct inode *inode, sector_t iblock, argument
129 err = fat_bmap(inode, iblock, &phys, &mapped_blocks, create);
140 if (iblock != MSDOS_I(inode)->mmu_private >> sb->s_blocksize_bits) {
146 offset = (unsigned long)iblock & (sbi->sec_per_clus - 1);
159 err = fat_bmap(inode, iblock, &phys, &mapped_blocks, create);
171 static int fat_get_block(struct inode *inode, sector_t iblock, argument
178 err = __fat_get_block(inode, iblock, &max_blocks, bh_result, create);
/fs/xfs/
H A Dxfs_aops.c1258 sector_t iblock,
1277 offset = (xfs_off_t)iblock << inode->i_blkbits;
1415 mapping_size = imap.br_startoff + imap.br_blockcount - iblock;
1443 sector_t iblock,
1447 return __xfs_get_blocks(inode, iblock, bh_result, create, 0);
1453 sector_t iblock,
1457 return __xfs_get_blocks(inode, iblock, bh_result, create, 1);
1256 __xfs_get_blocks( struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create, int direct) argument
1441 xfs_get_blocks( struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) argument
1451 xfs_get_blocks_direct( struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) argument
/fs/ext4/
H A Dinode.c669 static int _ext4_get_block(struct inode *inode, sector_t iblock, argument
680 map.m_lblk = iblock;
713 int ext4_get_block(struct inode *inode, sector_t iblock, argument
716 return _ext4_get_block(inode, iblock, bh,
878 static int ext4_get_block_write_nolock(struct inode *inode, sector_t iblock,
1373 static int ext4_da_map_blocks(struct inode *inode, sector_t iblock, argument
1395 if (ext4_es_lookup_extent(inode, iblock, &es)) {
1414 map->m_pblk = ext4_es_pblock(&es) + iblock - es.es_lblk;
1415 retval = es.es_len - (iblock - es.es_lblk);
1469 ret = ext4_da_reserve_space(inode, iblock);
1530 ext4_da_get_block_prep(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create) argument
2898 ext4_get_block_write(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) argument
2907 ext4_get_block_write_nolock(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) argument
3219 ext4_lblk_t iblock; local
[all...]
/fs/
H A Dbuffer.c2162 sector_t iblock, lblock; local
2172 iblock = (sector_t)page->index << (PAGE_CACHE_SHIFT - bbits);
2186 if (iblock < lblock) {
2188 err = get_block(inode, iblock, bh, 0);
2206 } while (i++, iblock++, (bh = bh->b_this_page) != head);
2734 sector_t iblock; local
2749 iblock = (sector_t)index << (PAGE_CACHE_SHIFT - inode->i_blkbits);
2766 iblock++;
2772 err = get_block(inode, iblock, &map_bh, 0);
2812 sector_t iblock; local
[all...]
/fs/ext3/
H A Dinode.c858 sector_t iblock, unsigned long maxblocks,
875 trace_ext3_get_blocks_enter(inode, iblock, maxblocks, create);
877 depth = ext3_block_to_path(inode,iblock,offsets,&blocks_to_boundary);
960 goal = ext3_find_goal(inode, iblock, partial);
982 err = ext3_splice_branch(handle, inode, iblock,
1004 trace_ext3_get_blocks_exit(inode, iblock,
1021 static int ext3_get_block(struct inode *inode, sector_t iblock, argument
1040 ret = ext3_get_blocks_handle(handle, inode, iblock,
1999 unsigned blocksize, iblock, length, pos; local
2014 iblock
857 ext3_get_blocks_handle(handle_t *handle, struct inode *inode, sector_t iblock, unsigned long maxblocks, struct buffer_head *bh_result, int create) argument
[all...]
/fs/isofs/
H A Dinode.c991 int isofs_get_blocks(struct inode *inode, sector_t iblock, argument
994 unsigned long b_off = iblock;
1003 if (iblock != b_off) {
1082 static int isofs_get_block(struct inode *inode, sector_t iblock, argument
1092 ret = isofs_get_blocks(inode, iblock, &bh_result, 1);

Completed in 1132 milliseconds

12