/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 603 int gfs2_block_map(struct inode *inode, sector_t lblock, in gfs2_block_map() argument 627 trace_gfs2_bmap(ip, bh_map, lblock, create, 1); in gfs2_block_map() 638 size = (lblock + 1) * bsize; in gfs2_block_map() 641 find_metapath(sdp, lblock, &mp, height); in gfs2_block_map() 662 trace_gfs2_bmap(ip, bh_map, lblock, create, ret); in gfs2_block_map() 675 ret = gfs2_bmap_alloc(inode, lblock, bh_map, &mp, ret, height, maxlen); in gfs2_block_map() 682 int gfs2_extent_map(struct inode *inode, u64 lblock, int *new, u64 *dblock, unsigned *extlen) in gfs2_extent_map() argument 693 ret = gfs2_block_map(inode, lblock, &bh, create); in gfs2_extent_map() 1089 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 | file.c | 360 u64 lblock = page->index << (PAGE_CACHE_SHIFT - inode->i_blkbits); in gfs2_allocate_page_backing() local 365 gfs2_block_map(inode, lblock, &bh, 1); in gfs2_allocate_page_backing() 369 lblock += (bh.b_size >> inode->i_blkbits); in gfs2_allocate_page_backing() 735 sector_t lblock = offset >> inode->i_blkbits; in fallocate_chunk() local 754 error = gfs2_block_map(inode, lblock, &bh_map, 1); in fallocate_chunk() 759 lblock += nr_blks; in fallocate_chunk()
|
D | aops.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() 945 static sector_t gfs2_bmap(struct address_space *mapping, sector_t lblock) in gfs2_bmap() argument 957 dblock = generic_block_bmap(mapping, lblock, gfs2_block_map); in gfs2_bmap()
|
D | dir.c | 160 u64 lblock, dblock; in gfs2_dir_write_data() local 184 lblock = offset; in gfs2_dir_write_data() 185 o = do_div(lblock, sdp->sd_jbsize) + sizeof(struct gfs2_meta_header); in gfs2_dir_write_data() 197 error = gfs2_extent_map(&ip->i_inode, lblock, &new, in gfs2_dir_write_data() 220 lblock++; in gfs2_dir_write_data() 275 u64 lblock, dblock; in gfs2_dir_read_data() local 287 lblock = 0; in gfs2_dir_read_data() 288 o = do_div(lblock, sdp->sd_jbsize) + sizeof(struct gfs2_meta_header); in gfs2_dir_read_data() 301 error = gfs2_extent_map(&ip->i_inode, lblock, &new, in gfs2_dir_read_data() 323 lblock++; in gfs2_dir_read_data()
|
D | lops.c | 150 if ((lbn >= je->lblock) && (lbn < (je->lblock + je->blocks))) { in gfs2_log_bmap() 151 block = je->dblock + lbn - je->lblock; in gfs2_log_bmap()
|
D | incore.h | 492 unsigned int lblock; /* First logical block */ member
|
/fs/ext4/ |
D | indirect.c | 756 int ext4_ind_calc_metadata_amount(struct inode *inode, sector_t lblock) in ext4_ind_calc_metadata_amount() argument 762 if (lblock < EXT4_NDIR_BLOCKS) in ext4_ind_calc_metadata_amount() 765 lblock -= EXT4_NDIR_BLOCKS; in ext4_ind_calc_metadata_amount() 768 (lblock & dind_mask) == ei->i_da_metadata_calc_last_lblock) { in ext4_ind_calc_metadata_amount() 772 ei->i_da_metadata_calc_last_lblock = lblock & dind_mask; in ext4_ind_calc_metadata_amount() 774 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 384 if (lblock + len <= lblock) in ext4_valid_extent() 412 ext4_lblk_t lblock = 0; in ext4_valid_extent_entries() local 420 lblock = le32_to_cpu(ext->ee_block); in ext4_valid_extent_entries() 422 if ((lblock <= prev) && prev) { in ext4_valid_extent_entries() 429 prev = lblock + len - 1; in ext4_valid_extent_entries() 2314 ext4_lblk_t lblock = 0; in ext4_ext_put_gap_in_cache() local [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 | 2719 unsigned int lblock; in ext4_empty_dir() local 2722 lblock = offset >> EXT4_BLOCK_SIZE_BITS(sb); in ext4_empty_dir() 2723 bh = ext4_read_dirblock(inode, lblock, EITHER); in ext4_empty_dir()
|
D | ext4.h | 2343 extern int ext4_ind_calc_metadata_amount(struct inode *inode, sector_t lblock);
|
D | inode.c | 1269 static int ext4_da_reserve_space(struct inode *inode, ext4_lblk_t lblock) in ext4_da_reserve_space() argument
|
/fs/ufs/ |
D | balloc.c | 244 unsigned pos, j, lblock; in ufs_change_blocknr() local 283 lblock = end & mask; in ufs_change_blocknr() 285 lblock = blks_per_page; in ufs_change_blocknr() 288 if (j >= lblock) in ufs_change_blocknr()
|
/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 | 2162 sector_t iblock, lblock; in block_read_full_page() local 2173 lblock = (i_size_read(inode)+blocksize-1) >> bbits; in block_read_full_page() 2186 if (iblock < lblock) { in block_read_full_page()
|