]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: split btrfs_direct_IO to read and write part
authorChristoph Hellwig <hch@lst.de>
Tue, 19 May 2020 14:46:29 +0000 (09:46 -0500)
committerDavid Sterba <dsterba@suse.com>
Thu, 28 May 2020 12:01:52 +0000 (14:01 +0200)
commitff0dd93d0d201ab04f166d76d877fde488709cdc
treeccd7157c3beec52a1c74fc734c3bef5966d0c094
parent84c2007377b9989b3aa3bdd350336a75956f740f
btrfs: split btrfs_direct_IO to read and write part

The read and write versions don't have anything in common except for the
call to iomap_dio_rw.  So split this function, and merge each half into
its only caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/file.c
fs/btrfs/inode.c