Re: [PATCH] quota: set init_needed flag only when successfully getting dquot

From: cgxu519
Date: Mon Apr 29 2019 - 22:27:34 EST


On 4/30/19 5:49 AM, Jan Kara wrote:
On Sun 28-04-19 13:39:21, Chengguang Xu wrote:
Set init_needed flag only when successfully getting dquot,
so that we can skip unnecessary subsequent operation.

Signed-off-by: Chengguang Xu <cgxu519@xxxxxxx>
Thanks for the patch but I don't think it's really useful. It will be very
rare that we race with quotaoff of dqget() fails due to error. So the
additional overhead of iterating over dquots doesn't really matter in that
case.

Hi Jan,

Thanks for the comment, I got it.

Chengguang.