]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: use a btrfs_inode in the log context (struct btrfs_log_ctx)
authorFilipe Manana <fdmanana@suse.com>
Sat, 18 May 2024 13:09:41 +0000 (14:09 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:18 +0000 (15:33 +0200)
commit4d0120a519357c817414adaa0f1b3e04fa424478
treed32524bcd5785add37e138fbaf36330b2b5e0935
parentc41881ae07c828ee5da8ed1d44204911fdae3bcf
btrfs: use a btrfs_inode in the log context (struct btrfs_log_ctx)

Instead of using a inode pointer, use a btrfs_inode pointer in the log
context structure, as this is generally what we need and allows for some
internal APIs to take a btrfs_inode instead, making them 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>
fs/btrfs/file.c
fs/btrfs/tree-log.c
fs/btrfs/tree-log.h