btrfs: cleanup local variables in btrfs_file_write_iter
authorNikolay Borisov <nborisov@suse.com>
Thu, 10 Dec 2020 08:38:32 +0000 (10:38 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 21:58:49 +0000 (22:58 +0100)
commit149716570be98185150860fe922bf89ed080bd3c
treee6348102c2b6a3eac0d9aaac2f124954d8c3f7d0
parent3cc64e7ebfb0d7faaba2438334c43466955a96e8
btrfs: cleanup local variables in btrfs_file_write_iter

First replace all inode instances with a pointer to btrfs_inode. This
removes multiple invocations of the BTRFS_I macro, subsequently remove
2 local variables as they are called only once and simply refer to
them directly.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c