Btrfs: remove duplicates of filemap_ helpers
authorChristoph Hellwig <hch@lst.de>
Thu, 1 Oct 2009 16:58:30 +0000 (12:58 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 1 Oct 2009 16:58:30 +0000 (12:58 -0400)
commit8aa38c31b7659e338fee4d9af4c3805acbd9806f
tree44d20f44a432ba05cfcfcd093428e777e4d3fd9e
parent25472b880c69c0daa485c4f80a6550437ed1149f
Btrfs: remove duplicates of filemap_ helpers

Use filemap_fdatawrite_range and filemap_fdatawait_range instead of
local copies of the functions.  For filemap_fdatawait_range that
also means replacing the awkward old wait_on_page_writeback_range
calling convention with the regular filemap byte offsets.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
fs/btrfs/file.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h