]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite121cccce912504d8c9f24444f7be89df259a666
tree9e99d6577faa32f58a3b29178dc837320c9d0890
parent73e8aab0e46bc51a0cc3ac58dad638717fad1e76
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