]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: extent shifting doesn't fully invalidate page cache
authorDave Chinner <dchinner@redhat.com>
Mon, 19 Nov 2018 21:31:09 +0000 (13:31 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 20 Nov 2018 18:36:19 +0000 (10:36 -0800)
commit063c43aa6a527b964a710fa44d0a68afccd04db3
tree424a0ea984721b50be1e95d00e019bf88791b4ad
parent6a528a1e99c43ad5c64ec790d9dd4b1b1e3fb4eb
xfs: extent shifting doesn't fully invalidate page cache

The extent shifting code uses a flush and invalidate mechainsm prior
to shifting extents around. This is similar to what
xfs_free_file_space() does, but it doesn't take into account things
like page cache vs block size differences, and it will fail if there
is a page that it currently busy.

xfs_flush_unmap_range() handles all of these cases, so just convert
xfs_prepare_shift() to us that mechanism rather than having it's own
special sauce.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_bmap_util.c