btrfs: pass struct btrfs_inode to can_nocow_extent()
authorDavid Sterba <dsterba@suse.com>
Mon, 17 Feb 2025 21:15:25 +0000 (22:15 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:43 +0000 (20:35 +0100)
commit44dddd493e31074b7a25ec22da7b49df58e3ea3b
tree76c610dbb271d47d131868bcb88e60bc7799b475
parent6149c82bdaff63203e58a4910d9245468d281f39
btrfs: pass struct btrfs_inode to can_nocow_extent()

Pass a struct btrfs_inode to can_nocow_extent() as it's an internal
interface, allowing to remove some use of BTRFS_I.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/direct-io.c
fs/btrfs/file.c
fs/btrfs/inode.c