]> 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)
commitaaca4114e0cbfd768643b06c725578a554c967d4
treeb565ae4085f88011d8f6cfdaaf496d2d5978b2c0
parenta123a92a85a64b2b0aa97706608092508241de7b
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