]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5a9ec86c346cb0e427aec2fdf5c37672adf7896
treeae83220f04e8b3ee917f55556a4432cc59c5d646
parentf228903a1df7b04528b2228fcc351afceba5906f
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