Home
last modified time | relevance | path

Searched refs:alloc_blocks (Results 1 - 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_iomap.c298 xfs_fsblock_t alloc_blocks) in xfs_quota_need_throttle()
310 if (dq->q_blk.reserved + alloc_blocks < dq->q_prealloc_lo_wmark) in xfs_quota_need_throttle()
375 xfs_fsblock_t alloc_blocks = 0; in xfs_iomap_prealloc_size() local
421 alloc_blocks = plen * 2; in xfs_iomap_prealloc_size()
422 if (alloc_blocks > MAXEXTLEN) in xfs_iomap_prealloc_size()
423 alloc_blocks = XFS_B_TO_FSB(mp, offset); in xfs_iomap_prealloc_size()
424 qblocks = alloc_blocks; in xfs_iomap_prealloc_size()
433 alloc_blocks = XFS_FILEOFF_MIN(roundup_pow_of_two(MAXEXTLEN), in xfs_iomap_prealloc_size()
434 alloc_blocks); in xfs_iomap_prealloc_size()
453 if (xfs_quota_need_throttle(ip, XFS_DQTYPE_USER, alloc_blocks)) in xfs_iomap_prealloc_size()
295 xfs_quota_need_throttle( struct xfs_inode *ip, xfs_dqtype_t type, xfs_fsblock_t alloc_blocks) xfs_quota_need_throttle() argument
[all...]
/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_iomap.c345 xfs_fsblock_t alloc_blocks) in xfs_quota_need_throttle()
357 if (dq->q_blk.reserved + alloc_blocks < dq->q_prealloc_lo_wmark) in xfs_quota_need_throttle()
422 xfs_fsblock_t alloc_blocks = 0; in xfs_iomap_prealloc_size() local
468 alloc_blocks = plen * 2; in xfs_iomap_prealloc_size()
469 if (alloc_blocks > XFS_MAX_BMBT_EXTLEN) in xfs_iomap_prealloc_size()
470 alloc_blocks = XFS_B_TO_FSB(mp, offset); in xfs_iomap_prealloc_size()
471 qblocks = alloc_blocks; in xfs_iomap_prealloc_size()
480 alloc_blocks = XFS_FILEOFF_MIN(roundup_pow_of_two(XFS_MAX_BMBT_EXTLEN), in xfs_iomap_prealloc_size()
481 alloc_blocks); in xfs_iomap_prealloc_size()
500 if (xfs_quota_need_throttle(ip, XFS_DQTYPE_USER, alloc_blocks)) in xfs_iomap_prealloc_size()
342 xfs_quota_need_throttle( struct xfs_inode *ip, xfs_dqtype_t type, xfs_fsblock_t alloc_blocks) xfs_quota_need_throttle() argument
[all...]
/kernel/linux/linux-5.10/fs/hfsplus/
H A Dextents.c244 if (ablock >= hip->alloc_blocks) { in hfsplus_get_block()
458 if (hip->alloc_blocks == hip->first_blocks) in hfsplus_file_extend()
461 res = hfsplus_ext_read_extent(inode, hip->alloc_blocks); in hfsplus_file_extend()
485 if (hip->alloc_blocks <= hip->first_blocks) { in hfsplus_file_extend()
495 hip->alloc_blocks, in hfsplus_file_extend()
506 hip->alloc_blocks - hip->cached_start, in hfsplus_file_extend()
517 hip->alloc_blocks += len; in hfsplus_file_extend()
536 hip->cached_start = hip->alloc_blocks; in hfsplus_file_extend()
578 alloc_cnt = hip->alloc_blocks; in hfsplus_file_truncate()
620 hip->alloc_blocks in hfsplus_file_truncate()
[all...]
H A Dbtree.c361 (loff_t)hip->alloc_blocks << in hfs_bmap_reserve()
364 hip->alloc_blocks << HFSPLUS_SB(tree->sb)->fs_shift; in hfs_bmap_reserve()
H A Dxattr.c193 while (hip->alloc_blocks < hip->clump_blocks) { in hfsplus_create_attributes_file()
200 (loff_t)hip->alloc_blocks << sbi->alloc_blksz_shift; in hfsplus_create_attributes_file()
201 hip->fs_blocks = hip->alloc_blocks << sbi->fs_shift; in hfsplus_create_attributes_file()
H A Dinode.c394 hip->alloc_blocks = 0; in hfsplus_new_inode()
465 hip->alloc_blocks = be32_to_cpu(fork->total_blocks); in hfsplus_inode_read_fork()
485 fork->total_blocks = cpu_to_be32(HFSPLUS_I(inode)->alloc_blocks); in hfsplus_inode_write_fork()
H A Dhfsplus_fs.h218 u32 alloc_blocks; member
/kernel/linux/linux-5.10/fs/hfs/
H A Dextent.c352 if (ablock >= HFS_I(inode)->alloc_blocks) { in hfs_get_block()
398 if (HFS_I(inode)->alloc_blocks == HFS_I(inode)->first_blocks) in hfs_extend_file()
401 res = hfs_ext_read_extent(inode, HFS_I(inode)->alloc_blocks); in hfs_extend_file()
415 if (HFS_I(inode)->alloc_blocks == HFS_I(inode)->first_blocks) { in hfs_extend_file()
425 HFS_I(inode)->alloc_blocks, in hfs_extend_file()
436 HFS_I(inode)->alloc_blocks - in hfs_extend_file()
449 HFS_I(inode)->alloc_blocks += len; in hfs_extend_file()
469 HFS_I(inode)->cached_start = HFS_I(inode)->alloc_blocks; in hfs_extend_file()
507 alloc_cnt = HFS_I(inode)->alloc_blocks; in hfs_file_truncate()
545 HFS_I(inode)->alloc_blocks in hfs_file_truncate()
[all...]
H A Dbtree.c50 if (HFS_I(tree->inode)->alloc_blocks > in hfs_btree_open()
235 (loff_t)HFS_I(inode)->alloc_blocks * in hfs_bmap_reserve()
H A Dinode.c225 HFS_I(inode)->alloc_blocks = 0; in hfs_new_inode()
282 HFS_I(inode)->alloc_blocks = be32_to_cpu(phys_size) / in hfs_inode_read_fork()
415 *phys_size = cpu_to_be32(HFS_I(inode)->alloc_blocks * in hfs_inode_write_fork()
H A Dhfs_fs.h77 u16 alloc_blocks, clump_blocks; member
/kernel/linux/linux-6.6/fs/hfsplus/
H A Dextents.c244 if (ablock >= hip->alloc_blocks) { in hfsplus_get_block()
458 if (hip->alloc_blocks == hip->first_blocks) in hfsplus_file_extend()
461 res = hfsplus_ext_read_extent(inode, hip->alloc_blocks); in hfsplus_file_extend()
485 if (hip->alloc_blocks <= hip->first_blocks) { in hfsplus_file_extend()
495 hip->alloc_blocks, in hfsplus_file_extend()
506 hip->alloc_blocks - hip->cached_start, in hfsplus_file_extend()
517 hip->alloc_blocks += len; in hfsplus_file_extend()
536 hip->cached_start = hip->alloc_blocks; in hfsplus_file_extend()
578 alloc_cnt = hip->alloc_blocks; in hfsplus_file_truncate()
620 hip->alloc_blocks in hfsplus_file_truncate()
[all...]
H A Dbtree.c362 (loff_t)hip->alloc_blocks << in hfs_bmap_reserve()
365 hip->alloc_blocks << HFSPLUS_SB(tree->sb)->fs_shift; in hfs_bmap_reserve()
H A Dxattr.c193 while (hip->alloc_blocks < hip->clump_blocks) { in hfsplus_create_attributes_file()
200 (loff_t)hip->alloc_blocks << sbi->alloc_blksz_shift; in hfsplus_create_attributes_file()
201 hip->fs_blocks = hip->alloc_blocks << sbi->fs_shift; in hfsplus_create_attributes_file()
H A Dinode.c408 hip->alloc_blocks = 0; in hfsplus_new_inode()
479 hip->alloc_blocks = be32_to_cpu(fork->total_blocks); in hfsplus_inode_read_fork()
499 fork->total_blocks = cpu_to_be32(HFSPLUS_I(inode)->alloc_blocks); in hfsplus_inode_write_fork()
H A Dhfsplus_fs.h218 u32 alloc_blocks; member
/kernel/linux/linux-6.6/fs/hfs/
H A Dextent.c352 if (ablock >= HFS_I(inode)->alloc_blocks) { in hfs_get_block()
398 if (HFS_I(inode)->alloc_blocks == HFS_I(inode)->first_blocks) in hfs_extend_file()
401 res = hfs_ext_read_extent(inode, HFS_I(inode)->alloc_blocks); in hfs_extend_file()
415 if (HFS_I(inode)->alloc_blocks == HFS_I(inode)->first_blocks) { in hfs_extend_file()
425 HFS_I(inode)->alloc_blocks, in hfs_extend_file()
436 HFS_I(inode)->alloc_blocks - in hfs_extend_file()
449 HFS_I(inode)->alloc_blocks += len; in hfs_extend_file()
469 HFS_I(inode)->cached_start = HFS_I(inode)->alloc_blocks; in hfs_extend_file()
507 alloc_cnt = HFS_I(inode)->alloc_blocks; in hfs_file_truncate()
545 HFS_I(inode)->alloc_blocks in hfs_file_truncate()
[all...]
H A Dbtree.c50 if (HFS_I(tree->inode)->alloc_blocks > in hfs_btree_open()
238 (loff_t)HFS_I(inode)->alloc_blocks * in hfs_bmap_reserve()
H A Dinode.c229 HFS_I(inode)->alloc_blocks = 0; in hfs_new_inode()
286 HFS_I(inode)->alloc_blocks = be32_to_cpu(phys_size) / in hfs_inode_read_fork()
419 *phys_size = cpu_to_be32(HFS_I(inode)->alloc_blocks * in hfs_inode_write_fork()
H A Dhfs_fs.h77 u16 alloc_blocks, clump_blocks; member
/kernel/linux/linux-5.10/drivers/usb/storage/
H A Dsddr09.c1200 int numblocks, alloc_len, alloc_blocks; in sddr09_read_map() local
1222 alloc_blocks = min(numblocks, SDDR09_READ_MAP_BUFSZ >> CONTROL_SHIFT); in sddr09_read_map()
1223 alloc_len = (alloc_blocks << CONTROL_SHIFT); in sddr09_read_map()
1260 min(alloc_blocks, numblocks - i), in sddr09_read_map()
/kernel/linux/linux-6.6/drivers/usb/storage/
H A Dsddr09.c1200 int numblocks, alloc_len, alloc_blocks; in sddr09_read_map() local
1222 alloc_blocks = min(numblocks, SDDR09_READ_MAP_BUFSZ >> CONTROL_SHIFT); in sddr09_read_map()
1223 alloc_len = (alloc_blocks << CONTROL_SHIFT); in sddr09_read_map()
1260 min(alloc_blocks, numblocks - i), in sddr09_read_map()

Completed in 21 milliseconds