Commit 6ef2175f authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Carlos Maiolino
Browse files

xfs: use bt_nr_sectors in xfs_dax_translate_range



Only ranges inside the file system can be translated, and the file system
can be smaller than the containing device.

Fixes: f4ed9303 ("xfs: don't shut down the filesystem for media failures beyond end of log")
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Signed-off-by: default avatarCarlos Maiolino <cem@kernel.org>
parent 42852fe5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment