btrfs: pass a flags argument to cow_file_range
authorChristoph Hellwig <hch@lst.de>
Wed, 28 Jun 2023 15:31:22 +0000 (17:31 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:52:14 +0000 (14:52 +0200)
commitba9145add52422779935f6d1b645a31a50c02af2
tree89dd2efc6d57b8f6a489600953d0f323f1d0e1c1
parenta6496849671a5bc9218ecec25a983253b34351b1
btrfs: pass a flags argument to cow_file_range

The int used as bool unlock is not a very good way to describe the
behavior, and the next patch will have to add another behavior modifier.
We'll do that by two bool parameters instead of adding bit flags.  Now
specifies that the pages should always be kept locked.  This is the
inverse of the old unlock argument.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
[ switch flags to bool ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c