From: Goldwyn Rodrigues Date: Wed, 12 Jun 2013 21:04:51 +0000 (-0700) Subject: fs/ocfs2/namei.c: remove unecessary ERROR when removing non-empty directory X-Git-Tag: v3.10-rc6~21^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e099127169429c19544a8f55dd26937fddd5b1f4;p=profile%2Fcommon%2Fkernel-common.git fs/ocfs2/namei.c: remove unecessary ERROR when removing non-empty directory While removing a non-empty directory, the kernel dumps a message: (rmdir,21743,1):ocfs2_unlink:953 ERROR: status = -39 Suppress the error message from being printed in the dmesg so users don't panic. Signed-off-by: Goldwyn Rodrigues Cc: Mark Fasheh Cc: Joel Becker Acked-by: Sunil Mushran Reviewed-by: Jie Liu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index b563351..b4a5cdf 100644 --- a/fs/ocfs2/namei.c +++ b/fs/ocfs2/namei.c @@ -947,7 +947,7 @@ leave: ocfs2_free_dir_lookup_result(&orphan_insert); ocfs2_free_dir_lookup_result(&lookup); - if (status) + if (status && (status != -ENOTEMPTY)) mlog_errno(status); return status;