]> git.itanic.dy.fi Git - linux-stable/commit
ext4: avoid starting transaction on read-only fs in ext4_quota_off()
authorJan Kara <jack@suse.cz>
Fri, 16 Jun 2023 16:50:52 +0000 (18:50 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 29 Jul 2023 22:37:53 +0000 (18:37 -0400)
commite0e985f3f8941438a66ab8abb94cb011b9fb39a7
tree7a651809d3378d6a399b95716ed11a76ef51d8d7
parent95257987a6387f02970eda707e55a06cce734e18
ext4: avoid starting transaction on read-only fs in ext4_quota_off()

When the filesystem gets first remounted read-only and then unmounted,
ext4_quota_off() will try to start a transaction (and fail) on read-only
filesystem to cleanup inode flags for legacy quota files. Just bail
before trying to start a transaction instead since that is going to
issue a warning.

Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230616165109.21695-6-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c