diff options
author | Li Xi <pkuelelixi@gmail.com> | 2016-01-12 17:56:44 +0900 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-03-06 15:56:24 -0500 |
commit | 2d2d799c72610f4d9b4910e7f1516f11288e1cf1 (patch) | |
tree | 9c90f36a1d50d59226328180484edd41de9202ac /debugfs | |
parent | 0f26747167cc9d82df849b0aad387bf824f04544 (diff) | |
download | e2fsprogs-2d2d799c72610f4d9b4910e7f1516f11288e1cf1.tar.gz |
Clean up codes for adding new quota type
Project quota related fields are reserved in Linux kernel.
As a preparation for it, this patch cleans up quota codes
of e2fsprogs so as to make it easier to add new quota type(s).
Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'debugfs')
-rw-r--r-- | debugfs/quota.c | 2 | ||||
-rw-r--r-- | debugfs/set_fields.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/debugfs/quota.c b/debugfs/quota.c index 8c9448656..9b8dbaf06 100644 --- a/debugfs/quota.c +++ b/debugfs/quota.c @@ -42,7 +42,7 @@ static int load_quota_ctx(char *progname) if (current_qctx) return 0; - retval = quota_init_context(¤t_qctx, current_fs, -1); + retval = quota_init_context(¤t_qctx, current_fs, QUOTA_ALL_BIT); if (retval) { com_err(current_fs->device_name, retval, "while trying to load quota information"); diff --git a/debugfs/set_fields.c b/debugfs/set_fields.c index ec2340d57..bc63802c4 100644 --- a/debugfs/set_fields.c +++ b/debugfs/set_fields.c @@ -40,6 +40,7 @@ #include "debugfs.h" #include "uuid/uuid.h" #include "e2p/e2p.h" +#include "support/quotaio.h" static struct ext2_super_block set_sb; static struct ext2_inode_large set_inode; |