]> git.baikalelectronics.ru Git - kernel.git/commit
quota: Acquire dqio_sem for reading in vfs_load_quota_inode()
authorJan Kara <jack@suse.cz>
Thu, 8 Jun 2017 13:06:28 +0000 (15:06 +0200)
committerJan Kara <jack@suse.cz>
Thu, 17 Aug 2017 16:59:04 +0000 (18:59 +0200)
commit302b8fb8b711af93f48ce0c75925ff9e3baab48d
tree5607206d8306bd409efa27212911b99fedeb188c
parent7654e5947955459802e8812a0ebae2dce227c5da
quota: Acquire dqio_sem for reading in vfs_load_quota_inode()

vfs_load_quota_inode() needs dqio_sem only for reading. In fact dqio_sem
is not needed there at all since the function can be called only during
quota on when quota file cannot be modified but let's leave the
protection there since it is logical and the path is in no way
performance critical.

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ocfs2/quota_local.c
fs/quota/dquot.c