Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Definitions of structures for vfsv0 quota format |
| 3 | */ |
| 4 | |
| 5 | #ifndef _LINUX_DQBLK_V2_H |
| 6 | #define _LINUX_DQBLK_V2_H |
| 7 | |
| 8 | #include <linux/types.h> |
| 9 | |
| 10 | /* id numbers of quota format */ |
| 11 | #define QFMT_VFS_V0 2 |
| 12 | |
Jan Kara | 4e5117b | 2005-06-23 22:01:03 -0700 | [diff] [blame] | 13 | /* Numbers of blocks needed for updates */ |
| 14 | #define V2_INIT_ALLOC 4 |
| 15 | #define V2_INIT_REWRITE 2 |
| 16 | #define V2_DEL_ALLOC 0 |
| 17 | #define V2_DEL_REWRITE 6 |
| 18 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | /* Inmemory copy of version specific information */ |
| 20 | struct v2_mem_dqinfo { |
| 21 | unsigned int dqi_blocks; |
| 22 | unsigned int dqi_free_blk; |
| 23 | unsigned int dqi_free_entry; |
| 24 | }; |
| 25 | |
| 26 | #endif /* _LINUX_DQBLK_V2_H */ |