Searched refs:prealloc (Results 1 – 9 of 9) sorted by relevance
/fs/btrfs/ |
D | inode-map.c | 408 int prealloc; in btrfs_save_ino_cache() local 489 prealloc = sizeof(struct btrfs_free_space) * ctl->free_extents; in btrfs_save_ino_cache() 490 prealloc = ALIGN(prealloc, PAGE_SIZE); in btrfs_save_ino_cache() 491 prealloc += ctl->total_bitmaps * PAGE_SIZE; in btrfs_save_ino_cache() 495 prealloc += 8 * PAGE_SIZE; in btrfs_save_ino_cache() 497 ret = btrfs_delalloc_reserve_space(inode, &data_reserved, 0, prealloc); in btrfs_save_ino_cache() 501 ret = btrfs_prealloc_file_range_trans(inode, trans, 0, 0, prealloc, in btrfs_save_ino_cache() 502 prealloc, prealloc, &alloc_hint); in btrfs_save_ino_cache() 504 btrfs_delalloc_release_extents(BTRFS_I(inode), prealloc); in btrfs_save_ino_cache() 505 btrfs_delalloc_release_metadata(BTRFS_I(inode), prealloc, true); in btrfs_save_ino_cache() [all …]
|
D | extent_io.c | 563 struct extent_state *prealloc, u64 split) in split_state() argument 570 prealloc->start = orig->start; in split_state() 571 prealloc->end = split - 1; in split_state() 572 prealloc->state = orig->state; in split_state() 575 node = tree_insert(&tree->state, &orig->rb_node, prealloc->end, in split_state() 576 &prealloc->rb_node, NULL, NULL); in split_state() 578 free_extent_state(prealloc); in split_state() 640 alloc_extent_state_atomic(struct extent_state *prealloc) in alloc_extent_state_atomic() argument 642 if (!prealloc) in alloc_extent_state_atomic() 643 prealloc = alloc_extent_state(GFP_ATOMIC); in alloc_extent_state_atomic() [all …]
|
D | extent_map.c | 286 bool prealloc = false; in unpin_extent_cache() local 302 prealloc = true; in unpin_extent_cache() 308 if (prealloc) { in unpin_extent_cache()
|
/fs/sysfs/ |
D | file.c | 212 .prealloc = true, 217 .prealloc = true, 223 .prealloc = true,
|
/fs/xfs/ |
D | xfs_dquot.c | 75 int prealloc = 0; in xfs_qm_adjust_dqlimits() local 82 prealloc = 1; in xfs_qm_adjust_dqlimits() 86 prealloc = 1; in xfs_qm_adjust_dqlimits() 97 if (prealloc) in xfs_qm_adjust_dqlimits()
|
/fs/xfs/libxfs/ |
D | xfs_bmap.h | 227 xfs_fileoff_t off, xfs_filblks_t len, xfs_filblks_t prealloc,
|
D | xfs_bmap.c | 3920 xfs_filblks_t prealloc, in xfs_bmapi_reserve_delalloc() argument 3936 alen = XFS_FILBLKS_MIN(len + prealloc, MAXEXTLEN); in xfs_bmapi_reserve_delalloc() 3939 if (prealloc && alen >= len) in xfs_bmapi_reserve_delalloc() 3940 prealloc = alen - len; in xfs_bmapi_reserve_delalloc() 3996 if (whichfork == XFS_DATA_FORK && prealloc) in xfs_bmapi_reserve_delalloc() 3998 if (whichfork == XFS_COW_FORK && (prealloc || aoff < off || alen > len)) in xfs_bmapi_reserve_delalloc()
|
/fs/kernfs/ |
D | file.c | 686 if (ops->prealloc && ops->seq_show) in kernfs_fop_open() 688 if (ops->prealloc) { in kernfs_fop_open()
|
/fs/f2fs/ |
D | data.c | 1318 blkcnt_t prealloc; in f2fs_map_blocks() local 1374 prealloc = 0; in f2fs_map_blocks() 1405 prealloc++; in f2fs_map_blocks() 1472 err = f2fs_reserve_new_blocks(&dn, prealloc); in f2fs_map_blocks() 1477 if (prealloc && dn.ofs_in_node != last_ofs_in_node + 1) { in f2fs_map_blocks()
|