]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: replace double boolean parameters of cow_file_range()
authorQu Wenruo <wqu@suse.com>
Sat, 19 Jul 2025 08:47:26 +0000 (18:17 +0930)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Sep 2025 08:54:29 +0000 (10:54 +0200)
commitaa8fc9469d20d59dc36aae64226362303daeab4a
tree0de42f313985f3afefbe60c87703b93c3ec8d2fa
parent07e27ad16399afcd693be20211b0dfae63e0615f
btrfs: replace double boolean parameters of cow_file_range()

The function cow_file_range() has two boolean parameters.  Replace it
with a single @flags parameter, with two flags:

- COW_FILE_RANGE_NO_INLINE
- COW_FILE_RANGE_KEEP_LOCKED

And since we're here, also update the comments of cow_file_range() to
replace the old "page" usage with "folio".

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c