goldwynr btrfs: Move generic_write_sync() to btrfs_buffered_write()
5af01aa Jun 26, 2020
btrfs: Move generic_write_sync() to btrfs_buffered_write()
For direct I/O writes, generic_write_sync() gets called twice, once with
iomap_dio_complete() and the next time in btrfs_file_write_iter(). Move
it within btrfs_buffered_write(). In the process, we have to move
btrfs_inode->last_sub_trans as well to btrfs_buffered_write() and
btrfs_dio_iomap_end() respectively.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
5af01aa