OSDN Git Service

f2fs: quota: decrease the lock granularity of statfs_project
authorSheng Yong <shengyong1@huawei.com>
Tue, 24 Jul 2018 12:17:53 +0000 (20:17 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 1 Aug 2018 18:52:36 +0000 (11:52 -0700)
commit955ac6e523444493298016523788bb7ec1a2f06e
tree908eee1074652ca14419ff1a0004c76345dae351
parent970e348d9829e9fc3091da2fe189ab34a07201e6
f2fs: quota: decrease the lock granularity of statfs_project

According to fs/quota/dquot.c, `dq_data_lock' protects mem_dqinfo
structures and modifications of dquot pointers in the inode, and
`dquot->dq_dqb_lock' protects data from dq_dqb.

We should use dquot->dq_dqb_lock in statfs_project instead of
dq_dat_lock.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c