]> git.baikalelectronics.ru Git - kernel.git/commit
iomap: improve the warnings from iomap_swapfile_activate
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Mar 2021 17:55:40 +0000 (10:55 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 26 Mar 2021 17:55:40 +0000 (10:55 -0700)
commit611ae4500ebad9f22f11f82444ce339f69213896
treeb565ae4085f88011d8f6cfdaaf496d2d5978b2c0
parent6df5d3638abbd720089114129009990030b5c942
iomap: improve the warnings from iomap_swapfile_activate

Print the path name of the swapfile that failed to active to ease
debugging the problem and to avoid a scare if xfstests hits these
cases.  Also reword one warning a bit, as the error is not about
a file being on multiple devices, but one that has at least an
extent outside the main device known to the VFS and swap code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/swapfile.c