From: Matthew Wilcox Date: Wed, 4 Jun 2014 23:07:50 +0000 (-0700) Subject: brd: return -ENOSPC rather than -ENOMEM on page allocation failure X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~173 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96f8d8e0965ba3d895f4cf63bbb16fd9fca8998b;p=pandora-kernel.git brd: return -ENOSPC rather than -ENOMEM on page allocation failure brd is effectively a thinly provisioned device. Thinly provisioned devices return -ENOSPC when they can't write a new block. -ENOMEM is an implementation detail that callers shouldn't know. Signed-off-by: Matthew Wilcox Acked-by: Dave Chinner Cc: Dheeraj Reddy Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed