diff options
author | Filipe Manana <fdmanana@suse.com> | 2024-05-18 18:01:47 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-07-11 15:33:18 +0200 |
commit | cef2daba42682764be4083f8d333a2477034e7c9 (patch) | |
tree | 460a75e0b7c6c729f7090a852c714076cc37a07c /fs/btrfs/file.h | |
parent | 4d0120a519357c817414adaa0f1b3e04fa424478 (diff) |
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 <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file.h')
-rw-r--r-- | fs/btrfs/file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.h b/fs/btrfs/file.h index 77aaca208c7b..ce93ed7083ab 100644 --- a/fs/btrfs/file.h +++ b/fs/btrfs/file.h @@ -37,7 +37,7 @@ int btrfs_release_file(struct inode *inode, struct file *file); int btrfs_dirty_pages(struct btrfs_inode *inode, struct page **pages, size_t num_pages, loff_t pos, size_t write_bytes, struct extent_state **cached, bool noreserve); -int btrfs_fdatawrite_range(struct inode *inode, loff_t start, loff_t end); +int btrfs_fdatawrite_range(struct btrfs_inode *inode, loff_t start, loff_t end); int btrfs_check_nocow_lock(struct btrfs_inode *inode, loff_t pos, size_t *write_bytes, bool nowait); void btrfs_check_nocow_unlock(struct btrfs_inode *inode); |