xfs: only writeback and truncate pages for the freed range
authorBrian Foster <bfoster@redhat.com>
Tue, 23 Sep 2014 05:39:05 +0000 (15:39 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 23 Sep 2014 05:39:05 +0000 (15:39 +1000)
commit8b5279e33f241a074a9c8649bba8f77a2167b798
treefaf3c22feb56241ec43f76bf339414c8afd13f4d
parentf71721d061e872a39b2680d13f309c1eb6893438
xfs: only writeback and truncate pages for the freed range

xfs_free_file_space() only affects the range of the file for which space
is being freed. It currently writes and truncates the page cache from
the start offset of the free to EOF.

Modify xfs_free_file_space() to write back and truncate page cache of
just the range being freed.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_bmap_util.c