diff mbox

make ocfs2 do not log ENOENT error

Message ID 1390543869-9884-1-git-send-email-xiaowei.hu@oracle.com (mailing list archive)
State New, archived
Headers show

Commit Message

xiaowei Hu Jan. 24, 2014, 6:11 a.m. UTC
From: "Xiaowei.Hu" <xiaowei.hu@oracle.com>

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(-)

Comments

Andrew Morton Jan. 24, 2014, 8:34 p.m. UTC | #1
On Fri, 24 Jan 2014 14:11:09 +0800 xiaowei.hu@oracle.com wrote:

> From: "Xiaowei.Hu" <xiaowei.hu@oracle.com>
> 
> 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(-)
> 
> diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
> index 0ba1cf0..ca6c5ba 100644
> --- a/fs/ocfs2/namei.c
> +++ b/fs/ocfs2/namei.c
> @@ -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.
xiaowei Hu Feb. 17, 2014, 1:04 a.m. UTC | #2
Sorry for missing that.

signed-off-by: xiaowei.hu@oracle.com

Thanks

On 01/25/2014 04:34 AM, Andrew Morton wrote:
> On Fri, 24 Jan 2014 14:11:09 +0800 xiaowei.hu@oracle.com wrote:
>
>> From: "Xiaowei.Hu" <xiaowei.hu@oracle.com>
>>
>> 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(-)
>>
>> diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
>> index 0ba1cf0..ca6c5ba 100644
>> --- a/fs/ocfs2/namei.c
>> +++ b/fs/ocfs2/namei.c
>> @@ -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.
diff mbox

Patch

diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 0ba1cf0..ca6c5ba 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -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;