quota_tree.h 728 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Definitions of structures for vfsv0 quota format
  4. */
  5. #ifndef _LINUX_QUOTA_TREE_H
  6. #define _LINUX_QUOTA_TREE_H
  7. #include <linux/types.h>
  8. #include <linux/quota.h>
  9. /*
  10. * Structure of header of block with quota structures. It is padded to 16 bytes so
  11. * there will be space for exactly 21 quota-entries in a block
  12. */
  13. struct qt_disk_dqdbheader {
  14. __le32 dqdh_next_free; /* Number of next block with free entry */
  15. __le32 dqdh_prev_free; /* Number of previous block with free entry */
  16. __le16 dqdh_entries; /* Number of valid entries in block */
  17. __le16 dqdh_pad1;
  18. __le32 dqdh_pad2;
  19. };
  20. #define QT_TREEOFF 1 /* Offset of tree in file in blocks */
  21. #endif /* _LINUX_QUOTAIO_TREE_H */