diff options
| author | Filipe Manana <[email protected]> | 2024-12-09 14:54:51 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-01-13 13:53:16 +0000 |
| commit | 6c440755244e0044b3de37c3e5b334e46b4d93a6 (patch) | |
| tree | 6e9f31ef31cac66d8c514c45d8a4166a50833216 /fs/btrfs/btrfs_inode.h | |
| parent | btrfs: remove unused variable length in btrfs_insert_one_raid_extent() (diff) | |
| download | kernel-6c440755244e0044b3de37c3e5b334e46b4d93a6.tar.gz kernel-6c440755244e0044b3de37c3e5b334e46b4d93a6.zip | |
btrfs: remove no longer needed strict argument from can_nocow_extent()
All callers of can_nocow_extent() now pass a value of false for its
'strict' argument, making it redundant. So remove the argument from
can_nocow_extent() as well as can_nocow_file_extent(),
btrfs_cross_ref_exist() and check_committed_ref(), because this
argument was used just to influence the behavior of check_committed_ref().
Also remove the 'strict' field from struct can_nocow_file_extent_args,
which is now always false as well, as its value is taken from the
argument to can_nocow_extent().
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
| -rw-r--r-- | fs/btrfs/btrfs_inode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index aa1f55cd81b7..b2fa33911c28 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h @@ -526,7 +526,7 @@ bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev, u32 bio_offset, struct bio_vec *bv); noinline int can_nocow_extent(struct inode *inode, u64 offset, u64 *len, struct btrfs_file_extent *file_extent, - bool nowait, bool strict); + bool nowait); void btrfs_del_delalloc_inode(struct btrfs_inode *inode); struct inode *btrfs_lookup_dentry(struct inode *dir, struct dentry *dentry); |
