summaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.de>2021-03-04 18:06:25 +0300
committerDavid Sterba <dsterba@suse.com>2021-04-19 18:25:15 +0300
commit6e65ae762900dc885f44ef5e1f887224368b10f3 (patch)
tree0a626203dc3dfc84934597864dcaf9dda70f9a68 /fs/btrfs/dev-replace.c
parentd6ade6894edaf5279fa1a7274b38ed6e7d4377f5 (diff)
downloadlinux-6e65ae762900dc885f44ef5e1f887224368b10f3.tar.xz
btrfs: remove force argument from run_delalloc_nocow()
force_cow can be calculated from inode and does not need to be passed as an argument. This simplifies run_delalloc_nocow() call from btrfs_run_delalloc_range() A new function, should_nocow() checks if the range should be NOCOWed or not. The function returns true iff either BTRFS_INODE_NODATA or BTRFS_INODE_PREALLOC, but is not a defrag extent. Tested-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions