xfs: implement iomap based buffered write path
authorChristoph Hellwig <hch@lst.de>
Mon, 20 Jun 2016 23:53:44 +0000 (09:53 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 20 Jun 2016 23:53:44 +0000 (09:53 +1000)
commit68a9f5e7007c1afa2cf6830b690a90d0187c0684
tree986de78ca7e20e49604faecccc95685ce52b4090
parentf0c6bcba74ac51cb77aadb33ad35cb2dc1ad1506
xfs: implement iomap based buffered write path

Convert XFS to use the new iomap based multipage write path. This involves
implementing the ->iomap_begin and ->iomap_end methods, and switching the
buffered file write, page_mkwrite and xfs_iozero paths to the new iomap
helpers.

With this change __xfs_get_blocks will never be used for buffered writes,
and the code handling them can be removed.

Based on earlier code from Dave Chinner.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/Kconfig
fs/xfs/xfs_aops.c
fs/xfs/xfs_file.c
fs/xfs/xfs_iomap.c
fs/xfs/xfs_iomap.h
fs/xfs/xfs_iops.c
fs/xfs/xfs_trace.h