18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *	Definitions of structures for vfsv0 quota format
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _LINUX_QUOTA_TREE_H
78c2ecf20Sopenharmony_ci#define _LINUX_QUOTA_TREE_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <linux/types.h>
108c2ecf20Sopenharmony_ci#include <linux/quota.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/*
138c2ecf20Sopenharmony_ci *  Structure of header of block with quota structures. It is padded to 16 bytes so
148c2ecf20Sopenharmony_ci *  there will be space for exactly 21 quota-entries in a block
158c2ecf20Sopenharmony_ci */
168c2ecf20Sopenharmony_cistruct qt_disk_dqdbheader {
178c2ecf20Sopenharmony_ci	__le32 dqdh_next_free;	/* Number of next block with free entry */
188c2ecf20Sopenharmony_ci	__le32 dqdh_prev_free;	/* Number of previous block with free entry */
198c2ecf20Sopenharmony_ci	__le16 dqdh_entries;	/* Number of valid entries in block */
208c2ecf20Sopenharmony_ci	__le16 dqdh_pad1;
218c2ecf20Sopenharmony_ci	__le32 dqdh_pad2;
228c2ecf20Sopenharmony_ci};
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#define QT_TREEOFF	1		/* Offset of tree in file in blocks */
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#endif /* _LINUX_QUOTAIO_TREE_H */
27