This is called on a per-page basis and in the vast majority of cases
`error' is zero.
Cc: Guillaume Chazarain <guichaz@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
static inline void mapping_set_error(struct address_space *mapping, int error)
{
static inline void mapping_set_error(struct address_space *mapping, int error)
{
if (error == -ENOSPC)
set_bit(AS_ENOSPC, &mapping->flags);
else
if (error == -ENOSPC)
set_bit(AS_ENOSPC, &mapping->flags);
else