Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *  Definitions of structures for vfsv0 quota format
0004  */
0005 
0006 #ifndef _LINUX_QUOTA_TREE_H
0007 #define _LINUX_QUOTA_TREE_H
0008 
0009 #include <linux/types.h>
0010 #include <linux/quota.h>
0011 
0012 /*
0013  *  Structure of header of block with quota structures. It is padded to 16 bytes so
0014  *  there will be space for exactly 21 quota-entries in a block
0015  */
0016 struct qt_disk_dqdbheader {
0017     __le32 dqdh_next_free;  /* Number of next block with free entry */
0018     __le32 dqdh_prev_free;  /* Number of previous block with free entry */
0019     __le16 dqdh_entries;    /* Number of valid entries in block */
0020     __le16 dqdh_pad1;
0021     __le32 dqdh_pad2;
0022 };
0023 
0024 #define QT_TREEOFF  1       /* Offset of tree in file in blocks */
0025 
0026 #endif /* _LINUX_QUOTAIO_TREE_H */