ocfs2_direct_IO_write() misses ocfs2_is_overwrite() error code
authorNorton.Zhu <norton.zhu@huawei.com>
Fri, 6 Nov 2015 02:43:52 +0000 (18:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commitd162eaad7726e5f10a2b5813bdfac9d55c8eba69
tree1b2813ce95159ad838a02bd5e5d6e5b9c7255e74
parentce4f2fd7eacd84d78530fb97621621ae50d167f1
ocfs2_direct_IO_write() misses ocfs2_is_overwrite() error code

If ocfs2_is_overwrite failed, ocfs2_direct_IO_write mays till return
success to the caller.

Signed-off-by: Norton.Zhu <norton.zhu@huawei.com>
Cc: 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/aops.c