summaryrefslogtreecommitdiff
path: root/fs/btrfs/ordered-data.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2024-05-03 13:02:00 +0930
committerDavid Sterba <dsterba@suse.com>2024-07-11 15:33:21 +0200
commit9fec848b3a3343a1c680e26155aec26ae4866849 (patch)
tree89fe6670d0bd2e399e638cf91d87b8ce87bd514a /fs/btrfs/ordered-data.c
parente9ea31fb5c1f90a006dccb6972664086447f4911 (diff)
downloadlinux-9fec848b3a3343a1c680e26155aec26ae4866849.tar.gz
linux-9fec848b3a3343a1c680e26155aec26ae4866849.tar.bz2
linux-9fec848b3a3343a1c680e26155aec26ae4866849.zip
btrfs: cleanup duplicated parameters related to create_io_em()
Most parameters of create_io_em() can be replaced by the members with the same name inside btrfs_file_extent. Do a direct parameters cleanup here. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
-rw-r--r--fs/btrfs/ordered-data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c
index 30a9d4a2e2b6..65d0464cd646 100644
--- a/fs/btrfs/ordered-data.c
+++ b/fs/btrfs/ordered-data.c
@@ -264,7 +264,7 @@ static void insert_ordered_extent(struct btrfs_ordered_extent *entry)
*/
struct btrfs_ordered_extent *btrfs_alloc_ordered_extent(
struct btrfs_inode *inode, u64 file_offset,
- struct btrfs_file_extent *file_extent, unsigned long flags)
+ const struct btrfs_file_extent *file_extent, unsigned long flags)
{
struct btrfs_ordered_extent *entry;