[PATCH v3 7/7] brd: Return -ENOSPC rather than -ENOMEM on page allocation failure

2014-04-13 Thread Matthew Wilcox
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. Acked-by: Dave Chinner Signed-off-by: Matthew Wilcox --- drivers/block/brd.c | 6 +++--- 1 file

[PATCH v3 7/7] brd: Return -ENOSPC rather than -ENOMEM on page allocation failure

2014-04-13 Thread Matthew Wilcox
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. Acked-by: Dave Chinner da...@fromorbit.com Signed-off-by: Matthew Wilcox matthew.r.wil...@intel.com ---