]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: clear the rest of the buffers on error
authorGoldwyn Rodrigues <rgoldwyn@suse.de>
Fri, 4 Sep 2015 22:44:20 +0000 (15:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Sep 2015 23:54:41 +0000 (16:54 -0700)
commit896fc416d5adb2f095d4d02532c51c0b9e682545
treeb84561d857d8c94a07e78b402ea81afe0c25a5af
parenta2761f45cbfb5085f3165a9440b5054521c71f97
ocfs2: clear the rest of the buffers on error

In case a validation fails, clear the rest of the buffers and return the
error to the calling function.

This also facilitates bubbling up the error originating from ocfs2_error
to calling functions.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/buffer_head_io.c