]> Gentwo Git Trees - linux/.git/commit
xfs: use bt_nr_sectors in xfs_dax_translate_range
authorChristoph Hellwig <hch@lst.de>
Fri, 19 Sep 2025 13:12:09 +0000 (06:12 -0700)
committerCarlos Maiolino <cem@kernel.org>
Mon, 22 Sep 2025 10:55:20 +0000 (12:55 +0200)
commit6ef2175fce30ccab80d519f2afcc93d8b138c16c
treeb55a738732a22d1fb18edbb8b26244e8bf4a2cbd
parent42852fe57c6d2a0abb10429841cb1226b7186b7a
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: f4ed93037966 ("xfs: don't shut down the filesystem for media failures beyond end of log")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_notify_failure.c