Skip to contentSkip to conversation

make ocfs2 do not log ENOENT error

PATCH New xiaowei.hu at oracle.com 2 participants 3 messages Jan 24, 2014 – Feb 17, 2014 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make ocfs2 do not log ENOENT error

From: "Xiaowei.Hu" <[email protected]>

suppress log message like this:
(open_delete,8328,0):ocfs2_unlink:951 ERROR: status = -2

Orabug:17445485

---
 fs/ocfs2/namei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/namei.c +1 -1
index 0ba1cf0..ca6c5ba 100644
@@ -947,7 +947,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;
Signature · 1 line
1.8.4.2
#1 lore raw

PATCH 1/1 make ocfs2 do not log ENOENT error

Quoted 15 lines · On Fri, 24 Jan 2014 14:11:09 +0800 xiaowei.hu at oracle.com wrote:

From: "Xiaowei.Hu" <[email protected]>

suppress log message like this:
(open_delete,8328,0):ocfs2_unlink:951 ERROR: status = -2

Orabug:17445485

---
 fs/ocfs2/namei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/namei.c +0 -0
index 0ba1cf0..ca6c5ba 100644

fs/ocfs2/namei.c leave: · line 953

Quoted 8 lines
fs/ocfs2/namei.c +1 -1
@@ -947,7 +947,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;

Please send a signed-off-by: for this patch.

author
#2 lore raw

PATCH 1/1 make ocfs2 do not log ENOENT error

Sorry for missing that.

Signed-off-by xiaowei.hu at oracle.com

Thanks

Quoted 26 lines · Andrew Morton
Quoted 15 lines · On Fri, 24 Jan 2014 14:11:09 +0800 xiaowei.hu at oracle.com wrote:

From: "Xiaowei.Hu" <[email protected]>

suppress log message like this:
(open_delete,8328,0):ocfs2_unlink:951 ERROR: status = -2

Orabug:17445485

---
  fs/ocfs2/namei.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/namei.c +0 -0
index 0ba1cf0..ca6c5ba 100644

fs/ocfs2/namei.c leave: · line 953

Quoted 8 lines
fs/ocfs2/namei.c +1 -1
@@ -947,7 +947,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;

Please send a signed-off-by: for this patch.