]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 28 Sep 2017 14:34:54 +0000 (10:34 -0400)
commit8c6cd47ebfe04572216234ec16358524ac6574db
tree6f8b1e8ec95ad8e5854f19df60cc8818bf3f67d9
parent809a3e240dbe8e8ba12d6e0e44c7d5c7abd44887
ext4: fix quota inconsistency during orphan cleanup for read-only mounts

BugLink: http://bugs.launchpad.net/bugs/1720154
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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/ext4/super.c