diff options
author | Jan Kara <jack@suse.cz> | 2021-08-23 17:41:23 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-09-03 14:34:58 -0400 |
commit | 5c87a5c54cc7a78b17dfe4a392cb551d283c353b (patch) | |
tree | d05f685ce674004339dcef4907cd740c87fed604 /misc/tune2fs.c | |
parent | 6b95fabd7e596bc9aa762704a0c57d7073e88bd0 (diff) | |
download | e2fsprogs-5c87a5c54cc7a78b17dfe4a392cb551d283c353b.tar.gz |
quota: Rename quota_update_limits() to quota_read_all_dquots()
quota_update_limits() is a misnomer because what it actually does is
that it updates 'usage' counters and leaves 'limit' counters intact.
Rename quota_update_limits() to quota_read_all_dquots() and while
changing prototype also add a flags argument so that callers can control
which quota information is actually updated from the disk.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'misc/tune2fs.c')
-rw-r--r-- | misc/tune2fs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 4200104e..f459d5d5 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -1677,8 +1677,9 @@ static int handle_quota_options(ext2_filsys fs) if (quota_enable[qtype] == QOPT_ENABLE && *quota_sb_inump(fs->super, qtype) == 0) { if ((qf_ino = quota_file_exists(fs, qtype)) > 0) { - retval = quota_update_limits(qctx, qf_ino, - qtype); + retval = quota_read_all_dquots(qctx, qf_ino, + qtype, + QREAD_USAGE); if (retval) { com_err(program_name, retval, _("while updating quota limits (%d)"), |