btrfs: pass struct btrfs_inode to btrfs_defrag_file()
authorDavid Sterba <dsterba@suse.com>
Mon, 17 Feb 2025 22:16:26 +0000 (23:16 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:43 +0000 (20:35 +0100)
commitfc11fd0cb80ba1b2359794bc92d0e5d5bd7c482d
tree55bc1d087d135f5023dcb97c222dcd3791920ed7
parent01b2e7de3ab74150d3db09f6a13742f2b9b7603c
btrfs: pass struct btrfs_inode to btrfs_defrag_file()

Pass a struct btrfs_inode to btrfs_defrag_file() 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/defrag.c
fs/btrfs/defrag.h
fs/btrfs/ioctl.c