Merge commit '9f12600fe425bc28f0ccba034a77783c09c15af4' into for-linus
Backmerge of dcache.c changes from mainline. It's that, or complete rebase... Conflicts: fs/splice.c Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -257,9 +257,11 @@ static int filemap_check_errors(struct address_space *mapping)
|
||||
{
|
||||
int ret = 0;
|
||||
/* Check for outstanding write errors */
|
||||
if (test_and_clear_bit(AS_ENOSPC, &mapping->flags))
|
||||
if (test_bit(AS_ENOSPC, &mapping->flags) &&
|
||||
test_and_clear_bit(AS_ENOSPC, &mapping->flags))
|
||||
ret = -ENOSPC;
|
||||
if (test_and_clear_bit(AS_EIO, &mapping->flags))
|
||||
if (test_bit(AS_EIO, &mapping->flags) &&
|
||||
test_and_clear_bit(AS_EIO, &mapping->flags))
|
||||
ret = -EIO;
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user