]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - fs/ext4/super.c
ext4: fix warning message in ext4_enable_quotas()
authorJunichi Uekawa <uekawa@google.com>
Sun, 29 Jul 2018 19:51:52 +0000 (15:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Jul 2018 19:51:52 +0000 (15:51 -0400)
commit7f144fd046d967ff2fbba59203b42b888ad5aae7
tree8e8683839b8c7cc9a7df181fb070396f4aca03f5
parent6a0678a79bb3a4e5fc1b680e7afc78727e21aff3
ext4: fix warning message in ext4_enable_quotas()

Output the warning message before we clobber type and be -1 all the time.
The error message would now be

[    1.519791] EXT4-fs warning (device vdb): ext4_enable_quotas:5402:
Failed to enable quota tracking (type=0, err=-3). Please run e2fsck to fix.

Signed-off-by: Junichi Uekawa <uekawa@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
fs/ext4/super.c