quota: Acquire dqio_sem for reading in dquot_get_next_id()
authorJan Kara <jack@suse.cz>
Thu, 8 Jun 2017 13:05:08 +0000 (15:05 +0200)
committerJan Kara <jack@suse.cz>
Thu, 17 Aug 2017 16:58:44 +0000 (18:58 +0200)
commit0cff9151d3fa27574c2201377a080e1b9b87b8ba
tree47e6eeb87319a8908488e53894ed2469a0f0241b
parent62676838cb39f4e4f44dd697c4d5d4214bda8cb1
quota: Acquire dqio_sem for reading in dquot_get_next_id()

dquot_get_next_id() needs dqio_sem only for reading to protect against
racing with modification of quota file structure.

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