Skip to content

Commit

Permalink
fs/ocfs2/namei.c: remove unecessary ERROR when removing non-empty dir…
Browse files Browse the repository at this point in the history
…ectory

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 <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Acked-by: Sunil Mushran <[email protected]>
Reviewed-by: Jie Liu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
goldwynr authored and torvalds committed Jun 12, 2013
1 parent cbab0e4 commit e099127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ static int ocfs2_unlink(struct inode *dir,
ocfs2_free_dir_lookup_result(&orphan_insert);
ocfs2_free_dir_lookup_result(&lookup);

if (status)
if (status && (status != -ENOTEMPTY))
mlog_errno(status);

return status;
Expand Down

0 comments on commit e099127

Please sign in to comment.