/fs/jfs/ |
D | jfs_metapage.c | 253 static sector_t metapage_get_blocks(struct inode *inode, sector_t lblock, in metapage_get_blocks() argument 262 if (lblock >= file_blocks) in metapage_get_blocks() 264 if (lblock + *len > file_blocks) in metapage_get_blocks() 265 *len = file_blocks - lblock; in metapage_get_blocks() 268 rc = xtLookup(inode, (s64)lblock, *len, &xflag, &xaddr, len, 0); in metapage_get_blocks() 270 lblock = (sector_t)xaddr; in metapage_get_blocks() 272 lblock = 0; in metapage_get_blocks() 275 return lblock; in metapage_get_blocks() 364 sector_t lblock; in metapage_writepage() local 398 lblock = page_start + block_offset; in metapage_writepage() [all …]
|
D | jfs_metapage.h | 64 unsigned long lblock, unsigned int size, 67 #define read_metapage(inode, lblock, size, absolute)\ argument 68 __get_metapage(inode, lblock, size, absolute, false) 70 #define get_metapage(inode, lblock, size, absolute)\ argument 71 __get_metapage(inode, lblock, size, absolute, true)
|
D | jfs_dtree.c | 249 struct metapage ** mp, s64 *lblock) in find_index() argument 283 if (*mp && (*lblock != blkno)) { in find_index() 288 *lblock = blkno; in find_index() 498 s64 lblock; in free_index() local 501 dirtab_slot = find_index(ip, index, &mp, &lblock); in free_index() 524 int slot, struct metapage ** mp, s64 *lblock) in modify_index() argument 528 dirtab_slot = find_index(ip, index, mp, lblock); in modify_index() 551 s64 lblock; in read_index() local 555 slot = find_index(ip, index, &mp, &lblock); in read_index() 1581 s64 lblock; in dtSplitPage() local [all …]
|
D | inode.c | 188 int jfs_get_block(struct inode *ip, sector_t lblock, in jfs_get_block() argument 191 s64 lblock64 = lblock; in jfs_get_block()
|
/fs/udf/ |
D | lowlevel.c | 57 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 = bdev->bd_inode->i_size >> sb->s_blocksize_bits; in udf_get_last_block() 62 if (lblock) in udf_get_last_block() 63 return lblock - 1; in udf_get_last_block()
|
/fs/gfs2/ |
D | bmap.c | 425 static int gfs2_bmap_alloc(struct inode *inode, const sector_t lblock, in gfs2_bmap_alloc() argument 565 int gfs2_block_map(struct inode *inode, sector_t lblock, in gfs2_block_map() argument 599 size = (lblock + 1) * bsize; in gfs2_block_map() 602 find_metapath(sdp, lblock, &mp, height); in gfs2_block_map() 635 ret = gfs2_bmap_alloc(inode, lblock, bh_map, &mp, ret, height, maxlen); in gfs2_block_map() 642 int gfs2_extent_map(struct inode *inode, u64 lblock, int *new, u64 *dblock, unsigned *extlen) in gfs2_extent_map() argument 653 ret = gfs2_block_map(inode, lblock, &bh, create); in gfs2_extent_map() 1067 u64 lblock; in trunc_dealloc() local 1072 lblock = 0; in trunc_dealloc() 1074 lblock = (size - 1) >> sdp->sd_sb.sb_bsize_shift; in trunc_dealloc() [all …]
|
D | bmap.h | 48 int gfs2_block_map(struct inode *inode, sector_t lblock, struct buffer_head *bh, int create); 49 int gfs2_extent_map(struct inode *inode, u64 lblock, int *new, u64 *dblock, unsigned *extlen);
|
D | recovery.c | 385 unsigned int lblock; in clean_journal() local 392 lblock = head->lh_blkno; in clean_journal() 393 gfs2_replay_incr_blk(sdp, &lblock); in clean_journal() 395 error = gfs2_block_map(&ip->i_inode, lblock, &bh_map, 0); in clean_journal() 417 lh->lh_blkno = cpu_to_be32(lblock); in clean_journal()
|
D | ops_address.c | 70 static int gfs2_get_block_noalloc(struct inode *inode, sector_t lblock, in gfs2_get_block_noalloc() argument 75 error = gfs2_block_map(inode, lblock, bh_result, 0); in gfs2_get_block_noalloc() 83 static int gfs2_get_block_direct(struct inode *inode, sector_t lblock, in gfs2_get_block_direct() argument 86 return gfs2_block_map(inode, lblock, bh_result, 0); in gfs2_get_block_direct() 895 static sector_t gfs2_bmap(struct address_space *mapping, sector_t lblock) in gfs2_bmap() argument 907 dblock = generic_block_bmap(mapping, lblock, gfs2_block_map); in gfs2_bmap()
|
D | dir.c | 157 u64 lblock, dblock; in gfs2_dir_write_data() local 181 lblock = offset; in gfs2_dir_write_data() 182 o = do_div(lblock, sdp->sd_jbsize) + sizeof(struct gfs2_meta_header); in gfs2_dir_write_data() 194 error = gfs2_extent_map(&ip->i_inode, lblock, &new, in gfs2_dir_write_data() 217 lblock++; in gfs2_dir_write_data() 274 u64 lblock, dblock; in gfs2_dir_read_data() local 295 lblock = offset; in gfs2_dir_read_data() 296 o = do_div(lblock, sdp->sd_jbsize) + sizeof(struct gfs2_meta_header); in gfs2_dir_read_data() 309 error = gfs2_extent_map(&ip->i_inode, lblock, &new, in gfs2_dir_read_data() 333 lblock++; in gfs2_dir_read_data()
|
D | ops_file.c | 316 u64 lblock = page->index << (PAGE_CACHE_SHIFT - inode->i_blkbits); in gfs2_allocate_page_backing() local 321 gfs2_block_map(inode, lblock, &bh, 1); in gfs2_allocate_page_backing() 325 lblock += (bh.b_size >> inode->i_blkbits); in gfs2_allocate_page_backing()
|
D | log.c | 348 if (lbn >= je->lblock && lbn < je->lblock + je->blocks) in log_bmap() 349 return je->dblock + lbn - je->lblock; in log_bmap()
|
D | meta_io.c | 37 static int aspace_get_block(struct inode *inode, sector_t lblock, in aspace_get_block() argument
|
D | incore.h | 344 unsigned int lblock; /* First logical block */ member
|
D | ops_fstype.c | 622 jext->lblock = lb; in map_journal_extents()
|
/fs/ufs/ |
D | balloc.c | 257 unsigned pos, j, lblock; in ufs_change_blocknr() local 296 lblock = end & mask; in ufs_change_blocknr() 298 lblock = blks_per_page; in ufs_change_blocknr() 301 if (j >= lblock) in ufs_change_blocknr()
|
/fs/ext4/ |
D | extents.c | 1761 ext4_lblk_t lblock; in ext4_ext_put_gap_in_cache() local 1767 lblock = 0; in ext4_ext_put_gap_in_cache() 1771 lblock = block; in ext4_ext_put_gap_in_cache() 1780 lblock = le32_to_cpu(ex->ee_block) in ext4_ext_put_gap_in_cache() 1788 BUG_ON(next == lblock); in ext4_ext_put_gap_in_cache() 1789 len = next - lblock; in ext4_ext_put_gap_in_cache() 1791 lblock = len = 0; in ext4_ext_put_gap_in_cache() 1795 ext_debug(" -> %u:%lu\n", lblock, len); in ext4_ext_put_gap_in_cache() 1796 ext4_ext_put_in_cache(inode, lblock, len, 0, EXT4_EXT_CACHE_GAP); in ext4_ext_put_gap_in_cache()
|
/fs/ntfs/ |
D | aops.c | 195 sector_t iblock, lblock, zblock; in ntfs_read_block() local 234 lblock = (ni->allocated_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block() 258 if (iblock < lblock) { in ntfs_read_block()
|
/fs/ |
D | buffer.c | 2217 sector_t iblock, lblock; in block_read_full_page() local 2230 lblock = (i_size_read(inode)+blocksize-1) >> inode->i_blkbits; in block_read_full_page() 2243 if (iblock < lblock) { in block_read_full_page()
|