diff options
author | Jan Kara <jack@suse.cz> | 2016-01-25 20:39:27 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2016-02-09 13:05:23 +0100 |
commit | 0066373d9f9320f69f24b080ee00d10f14397355 (patch) | |
tree | 6f52ae0d0b524e2bfa79abbe3676771523cb63b2 /fs/quota/quota_v2.c | |
parent | be6257b251cebd2deb8c76d43e387e28e3f7412d (diff) | |
download | linux-0066373d9f9320f69f24b080ee00d10f14397355.tar.gz linux-0066373d9f9320f69f24b080ee00d10f14397355.tar.bz2 linux-0066373d9f9320f69f24b080ee00d10f14397355.zip |
quota_v2: Implement get_next_id() for V2 quota format
Implement functions to get id of next existing quota structure in quota
file for quota tree based formats and thus for V2 quota format.
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/quota/quota_v2.c')
-rw-r--r-- | fs/quota/quota_v2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/quota/quota_v2.c b/fs/quota/quota_v2.c index ed85d4f35c04..ca71bf881ad1 100644 --- a/fs/quota/quota_v2.c +++ b/fs/quota/quota_v2.c @@ -304,6 +304,11 @@ static int v2_free_file_info(struct super_block *sb, int type) return 0; } +static int v2_get_next_id(struct super_block *sb, struct kqid *qid) +{ + return qtree_get_next_id(sb_dqinfo(sb, qid->type)->dqi_priv, qid); +} + static const struct quota_format_ops v2_format_ops = { .check_quota_file = v2_check_quota_file, .read_file_info = v2_read_file_info, @@ -312,6 +317,7 @@ static const struct quota_format_ops v2_format_ops = { .read_dqblk = v2_read_dquot, .commit_dqblk = v2_write_dquot, .release_dqblk = v2_release_dquot, + .get_next_id = v2_get_next_id, }; static struct quota_format_type v2r0_quota_format = { |