/fs/udf/ |
D | lowlevel.c | 53 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 = bdev->bd_inode->i_size >> 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/jfs/ |
D | jfs_metapage.c | 254 static sector_t metapage_get_blocks(struct inode *inode, sector_t lblock, in metapage_get_blocks() argument 263 if (lblock >= file_blocks) in metapage_get_blocks() 265 if (lblock + *len > file_blocks) in metapage_get_blocks() 266 *len = file_blocks - lblock; in metapage_get_blocks() 269 rc = xtLookup(inode, (s64)lblock, *len, &xflag, &xaddr, len, 0); in metapage_get_blocks() 271 lblock = (sector_t)xaddr; in metapage_get_blocks() 273 lblock = 0; in metapage_get_blocks() 276 return lblock; in metapage_get_blocks() 365 sector_t lblock; in metapage_writepage() local 401 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 | 250 struct metapage ** mp, s64 *lblock) in find_index() argument 284 if (*mp && (*lblock != blkno)) { in find_index() 289 *lblock = blkno; in find_index() 499 s64 lblock; in free_index() local 502 dirtab_slot = find_index(ip, index, &mp, &lblock); in free_index() 525 int slot, struct metapage ** mp, s64 *lblock) in modify_index() argument 529 dirtab_slot = find_index(ip, index, mp, lblock); in modify_index() 552 s64 lblock; in read_index() local 556 slot = find_index(ip, index, &mp, &lblock); in read_index() 1582 s64 lblock; in dtSplitPage() local [all …]
|
D | inode.c | 196 int jfs_get_block(struct inode *ip, sector_t lblock, in jfs_get_block() argument 199 s64 lblock64 = lblock; in jfs_get_block()
|
/fs/gfs2/ |
D | bmap.c | 448 static int gfs2_bmap_alloc(struct inode *inode, const sector_t lblock, in gfs2_bmap_alloc() argument 602 int gfs2_block_map(struct inode *inode, sector_t lblock, in gfs2_block_map() argument 626 trace_gfs2_bmap(ip, bh_map, lblock, create, 1); in gfs2_block_map() 637 size = (lblock + 1) * bsize; in gfs2_block_map() 640 find_metapath(sdp, lblock, &mp, height); in gfs2_block_map() 661 trace_gfs2_bmap(ip, bh_map, lblock, create, ret); in gfs2_block_map() 674 ret = gfs2_bmap_alloc(inode, lblock, bh_map, &mp, ret, height, maxlen); in gfs2_block_map() 681 int gfs2_extent_map(struct inode *inode, u64 lblock, int *new, u64 *dblock, unsigned *extlen) in gfs2_extent_map() argument 692 ret = gfs2_block_map(inode, lblock, &bh, create); in gfs2_extent_map() 1088 u64 lblock; in trunc_dealloc() local [all …]
|
D | bmap.h | 48 extern int gfs2_block_map(struct inode *inode, sector_t lblock, 50 extern int gfs2_extent_map(struct inode *inode, u64 lblock, int *new,
|
D | trace_gfs2.h | 436 sector_t lblock, int create, int errno), 438 TP_ARGS(ip, bh, lblock, create, errno), 442 __field( sector_t, lblock ) 453 __entry->lblock = lblock; 465 (unsigned long long)__entry->lblock,
|
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() 419 lh->lh_blkno = cpu_to_be32(lblock); in clean_journal()
|
D | aops.c | 69 static int gfs2_get_block_noalloc(struct inode *inode, sector_t lblock, in gfs2_get_block_noalloc() argument 74 error = gfs2_block_map(inode, lblock, bh_result, 0); in gfs2_get_block_noalloc() 82 static int gfs2_get_block_direct(struct inode *inode, sector_t lblock, in gfs2_get_block_direct() argument 85 return gfs2_block_map(inode, lblock, bh_result, 0); in gfs2_get_block_direct() 906 static sector_t gfs2_bmap(struct address_space *mapping, sector_t lblock) in gfs2_bmap() argument 918 dblock = generic_block_bmap(mapping, lblock, gfs2_block_map); in gfs2_bmap()
|
D | file.c | 364 u64 lblock = page->index << (PAGE_CACHE_SHIFT - inode->i_blkbits); in gfs2_allocate_page_backing() local 369 gfs2_block_map(inode, lblock, &bh, 1); in gfs2_allocate_page_backing() 373 lblock += (bh.b_size >> inode->i_blkbits); in gfs2_allocate_page_backing() 713 sector_t lblock = offset >> inode->i_blkbits; in fallocate_chunk() local 732 error = gfs2_block_map(inode, lblock, &bh_map, 1); in fallocate_chunk() 737 lblock += nr_blks; in fallocate_chunk()
|
D | dir.c | 158 u64 lblock, dblock; in gfs2_dir_write_data() local 182 lblock = offset; in gfs2_dir_write_data() 183 o = do_div(lblock, sdp->sd_jbsize) + sizeof(struct gfs2_meta_header); in gfs2_dir_write_data() 195 error = gfs2_extent_map(&ip->i_inode, lblock, &new, in gfs2_dir_write_data() 218 lblock++; in gfs2_dir_write_data() 273 u64 lblock, dblock; in gfs2_dir_read_data() local 285 lblock = 0; in gfs2_dir_read_data() 286 o = do_div(lblock, sdp->sd_jbsize) + sizeof(struct gfs2_meta_header); in gfs2_dir_read_data() 299 error = gfs2_extent_map(&ip->i_inode, lblock, &new, in gfs2_dir_read_data() 321 lblock++; in gfs2_dir_read_data()
|
D | lops.c | 148 if (lbn >= je->lblock && lbn < je->lblock + je->blocks) { in gfs2_log_bmap() 149 block = je->dblock + lbn - je->lblock; in gfs2_log_bmap()
|
D | incore.h | 454 unsigned int lblock; /* First logical block */ member
|
D | ops_fstype.c | 558 jext->lblock = lb; in map_journal_extents()
|
/fs/ext4/ |
D | indirect.c | 758 int ext4_ind_calc_metadata_amount(struct inode *inode, sector_t lblock) in ext4_ind_calc_metadata_amount() argument 764 if (lblock < EXT4_NDIR_BLOCKS) in ext4_ind_calc_metadata_amount() 767 lblock -= EXT4_NDIR_BLOCKS; in ext4_ind_calc_metadata_amount() 770 (lblock & dind_mask) == ei->i_da_metadata_calc_last_lblock) { in ext4_ind_calc_metadata_amount() 774 ei->i_da_metadata_calc_last_lblock = lblock & dind_mask; in ext4_ind_calc_metadata_amount() 776 blk_bits = order_base_2(lblock); in ext4_ind_calc_metadata_amount()
|
D | extents.c | 311 int ext4_ext_calc_metadata_amount(struct inode *inode, ext4_lblk_t lblock) in ext4_ext_calc_metadata_amount() argument 328 ei->i_da_metadata_calc_last_lblock+1 == lblock) { in ext4_ext_calc_metadata_amount() 349 ei->i_da_metadata_calc_last_lblock = lblock; in ext4_ext_calc_metadata_amount() 377 ext4_lblk_t lblock = le32_to_cpu(ext->ee_block); in ext4_valid_extent() local 378 ext4_lblk_t last = lblock + len - 1; in ext4_valid_extent() 380 if (lblock > last) in ext4_valid_extent() 408 ext4_lblk_t lblock = 0; in ext4_valid_extent_entries() local 416 lblock = le32_to_cpu(ext->ee_block); in ext4_valid_extent_entries() 418 if ((lblock <= prev) && prev) { in ext4_valid_extent_entries() 425 prev = lblock + len - 1; in ext4_valid_extent_entries() [all …]
|
D | move_extent.c | 34 get_ext_path(struct inode *inode, ext4_lblk_t lblock, in get_ext_path() argument 39 path = ext4_find_extent(inode, lblock, ppath, EXT4_EX_NOCACHE); in get_ext_path()
|
D | namei.c | 2698 unsigned int lblock; in ext4_empty_dir() local 2701 lblock = offset >> EXT4_BLOCK_SIZE_BITS(sb); in ext4_empty_dir() 2702 bh = ext4_read_dirblock(inode, lblock, EITHER); in ext4_empty_dir()
|
D | ext4.h | 2330 extern int ext4_ind_calc_metadata_amount(struct inode *inode, sector_t lblock);
|
D | inode.c | 1254 static int ext4_da_reserve_space(struct inode *inode, ext4_lblk_t lblock) in ext4_da_reserve_space() argument
|
/fs/ufs/ |
D | balloc.c | 248 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/ |
D | aops.c | 196 sector_t iblock, lblock, zblock; in ntfs_read_block() local 235 lblock = (ni->allocated_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block() 259 if (iblock < lblock) { in ntfs_read_block()
|
/fs/ |
D | buffer.c | 2122 sector_t iblock, lblock; in block_read_full_page() local 2133 lblock = (i_size_read(inode)+blocksize-1) >> bbits; in block_read_full_page() 2146 if (iblock < lblock) { in block_read_full_page()
|