]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ext4: fix quota inconsistency during orphan cleanup for read-only mounts
authorzhangyi (F) <yi.zhang@huawei.com>
Thu, 24 Aug 2017 19:21:50 +0000 (15:21 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Sep 2017 12:43:15 +0000 (14:43 +0200)
commiteeeadfe35110e808c407a7eb28291613229fce8d
tree8643f28b1f5f5811938965dd5f8340ee8145419b
parent2412360e1d24cf51034f6a49ee21c1d1f248660f
ext4: fix quota inconsistency during orphan cleanup for read-only mounts

commit 95f1fda47c9d8738f858c3861add7bf0a36a7c0b upstream.

Quota does not get enabled for read-only mounts if filesystem
has quota feature, so that quotas cannot updated during orphan
cleanup, which will lead to quota inconsistency.

This patch turn on quotas during orphan cleanup for this case,
make sure quotas can be updated correctly.

Reported-by: Jan Kara <jack@suse.cz>
Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c