diff options
author | Chengguang Xu <cgxu519@zoho.com.cn> | 2019-09-26 16:34:08 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-10-04 10:07:38 +0200 |
commit | 05848db2083d4f232e84e385845dcd98d5c511b2 (patch) | |
tree | d897077224388fa67671a955423c9077f44aa46f /fs/quota/dquot.c | |
parent | cc3a7bfe62b947b423fcb2cfe89fcba92bf48fa3 (diff) | |
download | linux-05848db2083d4f232e84e385845dcd98d5c511b2.tar.bz2 |
quota: avoid increasing DQST_LOOKUPS when iterating over dirty/inuse list
It is meaningless to increase DQST_LOOKUPS number while iterating
over dirty/inuse list, so just avoid it.
Link: https://lore.kernel.org/r/20190926083408.4269-1-cgxu519@zoho.com.cn
Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/quota/dquot.c')
-rw-r--r-- | fs/quota/dquot.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 6e826b454082..00a3c6df2ea3 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -595,7 +595,6 @@ int dquot_scan_active(struct super_block *sb, /* Now we have active dquot so we can just increase use count */ atomic_inc(&dquot->dq_count); spin_unlock(&dq_list_lock); - dqstats_inc(DQST_LOOKUPS); dqput(old_dquot); old_dquot = dquot; /* @@ -649,7 +648,6 @@ int dquot_writeback_dquots(struct super_block *sb, int type) * use count */ dqgrab(dquot); spin_unlock(&dq_list_lock); - dqstats_inc(DQST_LOOKUPS); err = sb->dq_op->write_dquot(dquot); if (err) { /* |