All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode()
@ 2018-09-17  7:12 Chao Yu
  2018-09-20 14:18 ` Chao Yu
  0 siblings, 1 reply; 4+ messages in thread
From: Chao Yu @ 2018-09-17  7:12 UTC (permalink / raw)
  To: Dave Kleikamp, open list:JFS FILESYSTEM, open list; +Cc: chao, Chao Yu

We don't need to call dquot_initialize() twice in jfs_evict_inode(),
remove one of them for cleanup.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
---
 fs/jfs/inode.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c
index 054cc761b426..805ae9e8944a 100644
--- a/fs/jfs/inode.c
+++ b/fs/jfs/inode.c
@@ -166,7 +166,6 @@ void jfs_evict_inode(struct inode *inode)
 			/*
 			 * Free the inode from the quota allocation.
 			 */
-			dquot_initialize(inode);
 			dquot_free_inode(inode);
 		}
 	} else {
-- 
2.18.0.rc1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode()
  2018-09-17  7:12 [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode() Chao Yu
@ 2018-09-20 14:18 ` Chao Yu
  2018-09-20 14:24   ` Dave Kleikamp
  0 siblings, 1 reply; 4+ messages in thread
From: Chao Yu @ 2018-09-20 14:18 UTC (permalink / raw)
  To: Chao Yu, Dave Kleikamp, open list:JFS FILESYSTEM, open list,
	dave.kleikamp

Ping,

Any comments?

On 2018/9/17 15:12, Chao Yu wrote:
> We don't need to call dquot_initialize() twice in jfs_evict_inode(),
> remove one of them for cleanup.
> 
> Signed-off-by: Chao Yu <yuchao0@huawei.com>
> ---
>  fs/jfs/inode.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c
> index 054cc761b426..805ae9e8944a 100644
> --- a/fs/jfs/inode.c
> +++ b/fs/jfs/inode.c
> @@ -166,7 +166,6 @@ void jfs_evict_inode(struct inode *inode)
>  			/*
>  			 * Free the inode from the quota allocation.
>  			 */
> -			dquot_initialize(inode);
>  			dquot_free_inode(inode);
>  		}
>  	} else {
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode()
  2018-09-20 14:18 ` Chao Yu
@ 2018-09-20 14:24   ` Dave Kleikamp
  2018-09-20 14:32     ` Chao Yu
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Kleikamp @ 2018-09-20 14:24 UTC (permalink / raw)
  To: Chao Yu, Chao Yu, open list:JFS FILESYSTEM, open list

On 9/20/18 9:18 AM, Chao Yu wrote:
> Ping,
> 
> Any comments?

Sorry for putting it off. It looks good to me. I'll push it upstream.

Thanks,
Dave

> 
> On 2018/9/17 15:12, Chao Yu wrote:
>> We don't need to call dquot_initialize() twice in jfs_evict_inode(),
>> remove one of them for cleanup.
>>
>> Signed-off-by: Chao Yu <yuchao0@huawei.com>
>> ---
>>  fs/jfs/inode.c | 1 -
>>  1 file changed, 1 deletion(-)
>>
>> diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c
>> index 054cc761b426..805ae9e8944a 100644
>> --- a/fs/jfs/inode.c
>> +++ b/fs/jfs/inode.c
>> @@ -166,7 +166,6 @@ void jfs_evict_inode(struct inode *inode)
>>  			/*
>>  			 * Free the inode from the quota allocation.
>>  			 */
>> -			dquot_initialize(inode);
>>  			dquot_free_inode(inode);
>>  		}
>>  	} else {
>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode()
  2018-09-20 14:24   ` Dave Kleikamp
@ 2018-09-20 14:32     ` Chao Yu
  0 siblings, 0 replies; 4+ messages in thread
From: Chao Yu @ 2018-09-20 14:32 UTC (permalink / raw)
  To: Dave Kleikamp, Chao Yu, open list:JFS FILESYSTEM, open list

On 2018/9/20 22:24, Dave Kleikamp wrote:
> On 9/20/18 9:18 AM, Chao Yu wrote:
>> Ping,
>>
>> Any comments?
> 
> Sorry for putting it off. It looks good to me. I'll push it upstream.

Thanks for your review. ;)

Thanks,

> 
> Thanks,
> Dave
> 
>>
>> On 2018/9/17 15:12, Chao Yu wrote:
>>> We don't need to call dquot_initialize() twice in jfs_evict_inode(),
>>> remove one of them for cleanup.
>>>
>>> Signed-off-by: Chao Yu <yuchao0@huawei.com>
>>> ---
>>>  fs/jfs/inode.c | 1 -
>>>  1 file changed, 1 deletion(-)
>>>
>>> diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c
>>> index 054cc761b426..805ae9e8944a 100644
>>> --- a/fs/jfs/inode.c
>>> +++ b/fs/jfs/inode.c
>>> @@ -166,7 +166,6 @@ void jfs_evict_inode(struct inode *inode)
>>>  			/*
>>>  			 * Free the inode from the quota allocation.
>>>  			 */
>>> -			dquot_initialize(inode);
>>>  			dquot_free_inode(inode);
>>>  		}
>>>  	} else {
>>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-20 14:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-17  7:12 [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode() Chao Yu
2018-09-20 14:18 ` Chao Yu
2018-09-20 14:24   ` Dave Kleikamp
2018-09-20 14:32     ` Chao Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.