]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: clear the rest of the buffers on error
authorGoldwyn Rodrigues <rgoldwyn@suse.de>
Tue, 7 Apr 2015 23:43:57 +0000 (09:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:43:57 +0000 (09:43 +1000)
commitfab1972d848114d8244c82f101b348743b262ddc
treec4212c41c4a753bf2c67ab7a88e2acbf3c3bf236
parent8025b8e2213d29f19309986ee60996b7baee663a
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>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/buffer_head_io.c