Skip to content

Commit f5b2585

Browse files
Xiaowei.Hutorvalds
authored andcommitted
ocfs2: do not log ENOENT in unlink()
Suppress log message like this: (open_delete,8328,0):ocfs2_unlink:951 ERROR: status = -2 Orabug:17445485 Signed-off-by: Xiaowei Hu <xiaowei.hu@oracle.com> Cc: Joe Jin <joe.jin@oracle.com> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e82cb95 commit f5b2585

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ocfs2/namei.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ static int ocfs2_unlink(struct inode *dir,
948948
ocfs2_free_dir_lookup_result(&orphan_insert);
949949
ocfs2_free_dir_lookup_result(&lookup);
950950

951-
if (status && (status != -ENOTEMPTY))
951+
if (status && (status != -ENOTEMPTY) && (status != -ENOENT))
952952
mlog_errno(status);
953953

954954
return status;

0 commit comments

Comments
 (0)