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>
This commit is contained in:
Jan Kara 2016-01-25 20:39:27 +01:00
parent be6257b251
commit 0066373d9f
3 changed files with 73 additions and 2 deletions

View file

@ -15,6 +15,7 @@
#define QTREE_DEL_REWRITE 6
struct dquot;
struct kqid;
/* Operations */
struct qtree_fmt_operations {
@ -52,5 +53,6 @@ static inline int qtree_depth(struct qtree_mem_dqinfo *info)
entries *= epb;
return i;
}
int qtree_get_next_id(struct qtree_mem_dqinfo *info, struct kqid *qid);
#endif /* _LINUX_DQBLK_QTREE_H */