summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/bio.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-06-15 15:03:11 +0200
committerDavid Sterba <dsterba@suse.com>2024-07-11 15:33:28 +0200
commit8610ba7eab8f8dc7d75cfc66ff5b1237c57239e2 (patch)
tree5e0947cfb9a42d37996c9ca045b98a3b87f2753a /fs/btrfs/bio.c
parenta0d7e98ced3e4c45284b268bc0867b51f0e093d6 (diff)
downloadlinux-stable-8610ba7eab8f8dc7d75cfc66ff5b1237c57239e2.tar.gz
linux-stable-8610ba7eab8f8dc7d75cfc66ff5b1237c57239e2.tar.bz2
linux-stable-8610ba7eab8f8dc7d75cfc66ff5b1237c57239e2.zip
btrfs: pass a btrfs_inode to is_data_inode()
Pass a struct btrfs_inode to is_data_inode() as it's an internal interface, allowing to remove some use of BTRFS_I. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/bio.c')
-rw-r--r--fs/btrfs/bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/bio.c b/fs/btrfs/bio.c
index e3a57196b0ee..f59b00be26f3 100644
--- a/fs/btrfs/bio.c
+++ b/fs/btrfs/bio.c
@@ -29,7 +29,7 @@ struct btrfs_failed_bio {
/* Is this a data path I/O that needs storage layer checksum and repair? */
static inline bool is_data_bbio(struct btrfs_bio *bbio)
{
- return bbio->inode && is_data_inode(&bbio->inode->vfs_inode);
+ return bbio->inode && is_data_inode(bbio->inode);
}
static bool bbio_has_ordered_extent(struct btrfs_bio *bbio)