Whamcloud - gitweb
Fix Android build warnings
[tools/e2fsprogs.git] / debugfs / quota.c
index 7aa0f3b..9b8dbaf 100644 (file)
@@ -34,8 +34,7 @@ static int load_quota_ctx(char *progname)
        if (check_fs_open(progname))
                return 1;
 
-       if (!EXT2_HAS_RO_COMPAT_FEATURE(current_fs->super,
-                                       EXT4_FEATURE_RO_COMPAT_QUOTA)) {
+       if (!ext2fs_has_feature_quota(current_fs->super)) {
                com_err(progname, 0, "quota feature not enabled");
                return 1;
        }
@@ -43,7 +42,7 @@ static int load_quota_ctx(char *progname)
        if (current_qctx)
                return 0;
 
-       retval = quota_init_context(&current_qctx, current_fs, -1);
+       retval = quota_init_context(&current_qctx, current_fs, QUOTA_ALL_BIT);
        if (retval) {
                com_err(current_fs->device_name, retval,
                        "while trying to load quota information");