summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_error.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-06-19 13:19:08 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2017-06-20 10:45:22 -0700
commit61d819e7bcb7f33da710bf3f5dcb2bcf1e48203c (patch)
treef4ca9403fcfaadbf121670af744152e64ae06eb3 /fs/xfs/xfs_error.h
parent5da8f2f8908aabcfa4113d37d470039c79962ba9 (diff)
xfs: don't allow bmap on rt files
bmap returns a dumb LBA address but not the block device that goes with that LBA. Swapfiles don't care about this and will blindly assume that the data volume is the correct blockdev, which is totally bogus for files on the rt subvolume. This results in the swap code doing IOs to arbitrary locations on the data device(!) if the passed in mapping is a realtime file, so just turn off bmap for rt files. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_error.h')
0 files changed, 0 insertions, 0 deletions