xfs: xfs_cluster_write is redundant
authorDave Chinner <dchinner@redhat.com>
Mon, 15 Feb 2016 06:21:31 +0000 (17:21 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 15 Feb 2016 06:21:31 +0000 (17:21 +1100)
commitad68972acb82c3e8bba316d542ab204984cb1f1c
treeae83220f04e8b3ee917f55556a4432cc59c5d646
parentfbcc025613590d7b1d15521555dcc6393a148a6b
xfs: xfs_cluster_write is redundant

xfs_cluster_write() is not necessary now that xfs_vm_writepages()
aggregates writepage calls across a single mapping. This means we no
longer need to do page lookups in xfs_cluster_write, so writeback
only needs to look up th epage cache once per page being written.
This also removes a large amount of mostly duplicate code between
xfs_do_writepage() and xfs_convert_page().

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_aops.c