Home
last modified time | relevance | path

Searched refs:lblock (Results 1 – 23 of 23) sorted by relevance

/fs/jfs/
Djfs_metapage.c234 static sector_t metapage_get_blocks(struct inode *inode, sector_t lblock, in metapage_get_blocks() argument
243 if (lblock >= file_blocks) in metapage_get_blocks()
245 if (lblock + *len > file_blocks) in metapage_get_blocks()
246 *len = file_blocks - lblock; in metapage_get_blocks()
249 rc = xtLookup(inode, (s64)lblock, *len, &xflag, &xaddr, len, 0); in metapage_get_blocks()
251 lblock = (sector_t)xaddr; in metapage_get_blocks()
253 lblock = 0; in metapage_get_blocks()
256 return lblock; in metapage_get_blocks()
345 sector_t lblock; in metapage_writepage() local
381 lblock = page_start + block_offset; in metapage_writepage()
[all …]
Djfs_metapage.h51 unsigned long lblock, unsigned int size,
54 #define read_metapage(inode, lblock, size, absolute)\ argument
55 __get_metapage(inode, lblock, size, absolute, false)
57 #define get_metapage(inode, lblock, size, absolute)\ argument
58 __get_metapage(inode, lblock, size, absolute, true)
Djfs_dtree.c237 struct metapage ** mp, s64 *lblock) in find_index() argument
271 if (*mp && (*lblock != blkno)) { in find_index()
276 *lblock = blkno; in find_index()
486 s64 lblock; in free_index() local
489 dirtab_slot = find_index(ip, index, &mp, &lblock); in free_index()
512 int slot, struct metapage ** mp, s64 *lblock) in modify_index() argument
516 dirtab_slot = find_index(ip, index, mp, lblock); in modify_index()
539 s64 lblock; in read_index() local
543 slot = find_index(ip, index, &mp, &lblock); in read_index()
1570 s64 lblock; in dtSplitPage() local
[all …]
Dinode.c197 int jfs_get_block(struct inode *ip, sector_t lblock, in jfs_get_block() argument
200 s64 lblock64 = lblock; in jfs_get_block()
/fs/udf/
Dlowlevel.c53 unsigned long lblock = 0; in udf_get_last_block() local
59 if (ioctl_by_bdev(bdev, CDROM_LAST_WRITTEN, (unsigned long) &lblock) || in udf_get_last_block()
60 lblock == 0) in udf_get_last_block()
61 lblock = i_size_read(bdev->bd_inode) >> sb->s_blocksize_bits; in udf_get_last_block()
63 if (lblock) in udf_get_last_block()
64 return lblock - 1; in udf_get_last_block()
/fs/gfs2/
Dbmap.c583 static int gfs2_hole_size(struct inode *inode, sector_t lblock, u64 len, in gfs2_hole_size() argument
596 hole_size = metapath_to_block(GFS2_SB(inode), &clone) - lblock; in gfs2_hole_size()
848 sector_t lblock; in gfs2_iomap_get() local
895 lblock = pos >> inode->i_blkbits; in gfs2_iomap_get()
896 iomap->offset = lblock << inode->i_blkbits; in gfs2_iomap_get()
898 len = lblock_stop - lblock + 1; in gfs2_iomap_get()
902 while ((lblock + 1) * sdp->sd_sb.sb_bsize > sdp->sd_heightsize[height]) in gfs2_iomap_get()
904 find_metapath(sdp, lblock, mp, height); in gfs2_iomap_get()
942 ret = gfs2_hole_size(inode, lblock, len, mp, iomap); in gfs2_iomap_get()
957 ret = gfs2_hole_size(inode, lblock, len, mp, iomap); in gfs2_iomap_get()
[all …]
Dbmap.h49 extern int gfs2_block_map(struct inode *inode, sector_t lblock,
53 extern int gfs2_extent_map(struct inode *inode, u64 lblock, int *new,
64 extern int gfs2_lblk_to_dblk(struct inode *inode, u32 lblock, u64 *dblock);
Drecovery.c263 u32 lblock = head->lh_blkno; in clean_journal() local
265 gfs2_replay_incr_blk(jd, &lblock); in clean_journal()
267 sdp->sd_log_flush_head = lblock; in clean_journal()
268 gfs2_write_log_header(sdp, jd, head->lh_sequence + 1, 0, lblock, in clean_journal()
Dtrace_gfs2.h441 sector_t lblock, int create, int errno),
443 TP_ARGS(ip, bh, lblock, create, errno),
447 __field( sector_t, lblock )
458 __entry->lblock = lblock;
470 (unsigned long long)__entry->lblock,
Ddir.c160 u64 lblock, dblock; in gfs2_dir_write_data() local
183 lblock = offset; in gfs2_dir_write_data()
184 o = do_div(lblock, sdp->sd_jbsize) + sizeof(struct gfs2_meta_header); in gfs2_dir_write_data()
196 error = gfs2_extent_map(&ip->i_inode, lblock, &new, in gfs2_dir_write_data()
219 lblock++; in gfs2_dir_write_data()
274 u64 lblock, dblock; in gfs2_dir_read_data() local
286 lblock = 0; in gfs2_dir_read_data()
287 o = do_div(lblock, sdp->sd_jbsize) + sizeof(struct gfs2_meta_header); in gfs2_dir_read_data()
300 error = gfs2_extent_map(&ip->i_inode, lblock, &new, in gfs2_dir_read_data()
322 lblock++; in gfs2_dir_read_data()
Daops.c71 static int gfs2_get_block_noalloc(struct inode *inode, sector_t lblock, in gfs2_get_block_noalloc() argument
76 error = gfs2_block_map(inode, lblock, bh_result, 0); in gfs2_get_block_noalloc()
688 static sector_t gfs2_bmap(struct address_space *mapping, sector_t lblock) in gfs2_bmap() argument
700 dblock = iomap_bmap(mapping, lblock, &gfs2_iomap_ops); in gfs2_bmap()
Dlops.c148 if ((lbn >= je->lblock) && (lbn < (je->lblock + je->blocks))) { in gfs2_log_bmap()
149 block = je->dblock + lbn - je->lblock; in gfs2_log_bmap()
507 for (; block < je->lblock + je->blocks; block++) { in gfs2_find_jhead()
537 dblock = je->dblock + (block - je->lblock); in gfs2_find_jhead()
Dlog.h70 u64 seq, u32 tail, u32 lblock, u32 flags,
Dlog.c688 u64 seq, u32 tail, u32 lblock, u32 flags, in gfs2_write_log_header() argument
710 lh->lh_blkno = cpu_to_be32(lblock); in gfs2_write_log_header()
720 int ret = gfs2_lblk_to_dblk(jd->jd_inode, lblock, &dblock); in gfs2_write_log_header()
Dincore.h521 unsigned int lblock; /* First logical block */ member
/fs/ext4/
Dindirect.c656 int ext4_ind_calc_metadata_amount(struct inode *inode, sector_t lblock) in ext4_ind_calc_metadata_amount() argument
662 if (lblock < EXT4_NDIR_BLOCKS) in ext4_ind_calc_metadata_amount()
665 lblock -= EXT4_NDIR_BLOCKS; in ext4_ind_calc_metadata_amount()
668 (lblock & dind_mask) == ei->i_da_metadata_calc_last_lblock) { in ext4_ind_calc_metadata_amount()
672 ei->i_da_metadata_calc_last_lblock = lblock & dind_mask; in ext4_ind_calc_metadata_amount()
674 blk_bits = order_base_2(lblock); in ext4_ind_calc_metadata_amount()
Dmove_extent.c25 get_ext_path(struct inode *inode, ext4_lblk_t lblock, in get_ext_path() argument
30 path = ext4_find_extent(inode, lblock, ppath, EXT4_EX_NOCACHE); in get_ext_path()
Dextents.c305 int ext4_ext_calc_metadata_amount(struct inode *inode, ext4_lblk_t lblock) in ext4_ext_calc_metadata_amount() argument
322 ei->i_da_metadata_calc_last_lblock+1 == lblock) { in ext4_ext_calc_metadata_amount()
343 ei->i_da_metadata_calc_last_lblock = lblock; in ext4_ext_calc_metadata_amount()
371 ext4_lblk_t lblock = le32_to_cpu(ext->ee_block); in ext4_valid_extent() local
378 if (lblock + len <= lblock) in ext4_valid_extent()
406 ext4_lblk_t lblock = 0; in ext4_valid_extent_entries() local
414 lblock = le32_to_cpu(ext->ee_block); in ext4_valid_extent_entries()
416 if ((lblock <= prev) && prev) { in ext4_valid_extent_entries()
423 prev = lblock + len - 1; in ext4_valid_extent_entries()
Dnamei.c2855 unsigned int lblock; in ext4_empty_dir() local
2857 lblock = offset >> EXT4_BLOCK_SIZE_BITS(sb); in ext4_empty_dir()
2858 bh = ext4_read_dirblock(inode, lblock, EITHER); in ext4_empty_dir()
Dext4.h2631 extern int ext4_ind_calc_metadata_amount(struct inode *inode, sector_t lblock);
/fs/ufs/
Dballoc.c248 unsigned pos, j, lblock; in ufs_change_blocknr() local
287 lblock = end & mask; in ufs_change_blocknr()
289 lblock = blks_per_page; in ufs_change_blocknr()
292 if (j >= lblock) in ufs_change_blocknr()
/fs/ntfs/
Daops.c178 sector_t iblock, lblock, zblock; in ntfs_read_block() local
217 lblock = (ni->allocated_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block()
241 if (iblock < lblock) { in ntfs_read_block()
/fs/
Dbuffer.c2220 sector_t iblock, lblock; in block_read_full_page() local
2231 lblock = (i_size_read(inode)+blocksize-1) >> bbits; in block_read_full_page()
2244 if (iblock < lblock) { in block_read_full_page()