]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: improve error message when we can't allocate memory for xfs_buf
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 21 Feb 2020 15:40:44 +0000 (07:40 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Mar 2020 04:55:50 +0000 (20:55 -0800)
commit6dddd19f0d60495245e078f80a9bce507fc0a448
treebb99e31c3ac068e8cdad9ca46a02c59cdcb6ae21
parent3225f3ba7b9ee1dfa38b69776e19b184c024792b
xfs: improve error message when we can't allocate memory for xfs_buf

If xfs_buf_get_map can't allocate enough memory for the buffer it's
trying to create, it'll cough up an error about not being able to
allocate "pagesn".  That's not particularly helpful (and if we're really
out of memory the message is very spammy) so change the message to tell
us how many pages were actually requested, and ratelimit it too.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_buf.c