quota: fix potential infinite loop
authorzhangyi (F) <yi.zhang@huawei.com>
Wed, 1 Nov 2017 10:40:45 +0000 (18:40 +0800)
committerJan Kara <jack@suse.cz>
Wed, 1 Nov 2017 13:42:57 +0000 (14:42 +0100)
commitdd5f6279732e8885061d7455b9d86fdcfdf7f183
tree9e99d6577faa32f58a3b29178dc837320c9d0890
parentcb91775711b2f3f7adea8d33aa83104baf75ee07
quota: fix potential infinite loop

In dquot_writeback_dquots(), we write back dquot from dirty dquots
list. There is a potential infinite loop if ->write_dquot() failure
and forget remove dquot from the list. This patch clear dirty bit
anyway to avoid it.

Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/dquot.c