OSDN Git Service

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)
commitd8f3e73587ce574f7a9bc165e0db69b0b148f6f8
treeccd7157c3beec52a1c74fc734c3bef5966d0c094
parent5f008163a559d566a0ee1190a0a24f3eec6f1ea7
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