Skip to contentSkip to conversation

Remove unecessary ERROR when removing non-empty directory

PATCH New xiaowei.hu at oracle.com 2 participants 2 messages May 28, 2013 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unecessary ERROR when removing non-empty directory

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

Suppress the error message from being printed in ocfs2_rename Did same thing with Goldwyn Rodrigues last patch.

While removing a non-empty directory, the kernel dumps a message:
(mv,29521,1):ocfs2_rename:1474 ERROR: status = -39

---
 fs/ocfs2/namei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/namei.c +1 -1
index 50c93a8..8ef1776 100644
@@ -1470,7 +1470,7 @@ bail:
 	brelse(old_dir_bh);
 	brelse(new_dir_bh);
 
-	if (status)
+	if (status && (status != -ENOTEMPTY))
 		mlog_errno(status);
 
 	return status;
Signature · 1 line
1.7.11.7
#1 lore raw

PATCH 1/1 Remove unecessary ERROR when removing non-empty directory

Quoted 9 lines · xiaowei.hu at oracle.com

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

Suppress the error message from being printed in ocfs2_rename Did same thing with Goldwyn Rodrigues last patch.

While removing a non-empty directory, the kernel dumps a message:
(mv,29521,1):ocfs2_rename:1474 ERROR: status = -39

Quoted 18 lines
---
 fs/ocfs2/namei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/namei.c +1 -1
index 50c93a8..8ef1776 100644
@@ -1470,7 +1470,7 @@ bail:
 	brelse(old_dir_bh);
 	brelse(new_dir_bh);
 
-	if (status)
+	if (status && (status != -ENOTEMPTY))
 		mlog_errno(status);
 
 	return status;