aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_error.h
diff options
context:
space:
mode:
authorGravatar Darrick J. Wong <darrick.wong@oracle.com> 2017-06-19 13:19:08 -0700
committerGravatar Darrick J. Wong <darrick.wong@oracle.com> 2017-06-20 10:45:22 -0700
commit61d819e7bcb7f33da710bf3f5dcb2bcf1e48203c (patch)
treef4ca9403fcfaadbf121670af744152e64ae06eb3 /fs/xfs/xfs_error.h
parentxfs: allow reading of already-locked remote symbolic link (diff)
downloadlinux-61d819e7bcb7f33da710bf3f5dcb2bcf1e48203c.tar.gz
linux-61d819e7bcb7f33da710bf3f5dcb2bcf1e48203c.tar.bz2
linux-61d819e7bcb7f33da710bf3f5dcb2bcf1e48203c.zip
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