diff options
| author | Filipe Manana <[email protected]> | 2024-05-18 17:01:47 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-07-11 13:33:18 +0000 |
| commit | cef2daba42682764be4083f8d333a2477034e7c9 (patch) | |
| tree | 460a75e0b7c6c729f7090a852c714076cc37a07c /fs/btrfs/ordered-data.c | |
| parent | btrfs: use a btrfs_inode in the log context (struct btrfs_log_ctx) (diff) | |
| download | kernel-cef2daba42682764be4083f8d333a2477034e7c9.tar.gz kernel-cef2daba42682764be4083f8d333a2477034e7c9.zip | |
btrfs: pass a btrfs_inode to btrfs_fdatawrite_range()
Instead of passing a (VFS) inode pointer argument, pass a btrfs_inode
instead, as this is generally what we do for internal APIs, making it
more consistent with most of the code base. This will later allow to
help to remove a lot of BTRFS_I() calls in btrfs_sync_file().
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
| -rw-r--r-- | fs/btrfs/ordered-data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index 16f9ddd2831c..605d88e09525 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c @@ -859,7 +859,7 @@ int btrfs_wait_ordered_range(struct inode *inode, u64 start, u64 len) /* start IO across the range first to instantiate any delalloc * extents */ - ret = btrfs_fdatawrite_range(inode, start, orig_end); + ret = btrfs_fdatawrite_range(BTRFS_I(inode), start, orig_end); if (ret) return ret; |
