]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
quota: autoload the quota_v2 module for QFMT_VFS_V1 quota format
authorTheodore Ts'o <tytso@mit.edu>
Fri, 25 Jan 2013 04:24:56 +0000 (23:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Mar 2013 22:03:32 +0000 (06:03 +0800)
commit c3ad83d9efdfe6a86efd44945a781f00c879b7b4 upstream.

Otherwise, ext4 file systems with the quota featured enable will get a
very confusing "No such process" error message if the quota code is
built as a module and the quota_v2 module has not been loaded.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/quota.h

index 58fdef1252521cff27e6a05bee70fcf3e6eb8923..d13371134c59fbec0be79992a692257d8021a959 100644 (file)
@@ -405,6 +405,7 @@ struct quota_module_name {
 #define INIT_QUOTA_MODULE_NAMES {\
        {QFMT_VFS_OLD, "quota_v1"},\
        {QFMT_VFS_V0, "quota_v2"},\
+       {QFMT_VFS_V1, "quota_v2"},\
        {0, NULL}}
 
 #endif /* _QUOTA_ */