]> Git Repo - linux.git/commitdiff
ocfs2: do not log ENOENT in unlink()
authorXiaowei.Hu <[email protected]>
Tue, 28 Jan 2014 01:06:56 +0000 (17:06 -0800)
committerLinus Torvalds <[email protected]>
Tue, 28 Jan 2014 05:02:39 +0000 (21:02 -0800)
Suppress log message like this: (open_delete,8328,0):ocfs2_unlink:951
ERROR: status = -2

Orabug:17445485

Signed-off-by: Xiaowei Hu <[email protected]>
Cc: Joe Jin <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/namei.c

index 4f791f6d27d0463f8bef77dc20a5f5274df8ddea..41513a4e98e462b0da59fe29787f0352eb7b2eaf 100644 (file)
@@ -948,7 +948,7 @@ leave:
        ocfs2_free_dir_lookup_result(&orphan_insert);
        ocfs2_free_dir_lookup_result(&lookup);
 
-       if (status && (status != -ENOTEMPTY))
+       if (status && (status != -ENOTEMPTY) && (status != -ENOENT))
                mlog_errno(status);
 
        return status;
This page took 0.06059 seconds and 4 git commands to generate.