mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 11:03:14 +00:00 
			
		
		
		
	 4e5117ba0a
			
		
	
	
		4e5117ba0a
		
	
	
	
	
		
			
			Improve estimates on the number of needed credits for quota transaction. Now we distinguish blocks that might need to be allocated and blocks that only need to be rewritten. Also we distinguish deleting of a quota structure and creating of a new one. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
		
			
				
	
	
		
			27 lines
		
	
	
		
			531 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			531 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  *	Definitions of structures for vfsv0 quota format
 | |
|  */
 | |
| 
 | |
| #ifndef _LINUX_DQBLK_V2_H
 | |
| #define _LINUX_DQBLK_V2_H
 | |
| 
 | |
| #include <linux/types.h>
 | |
| 
 | |
| /* id numbers of quota format */
 | |
| #define QFMT_VFS_V0 2
 | |
| 
 | |
| /* Numbers of blocks needed for updates */
 | |
| #define V2_INIT_ALLOC 4
 | |
| #define V2_INIT_REWRITE 2
 | |
| #define V2_DEL_ALLOC 0
 | |
| #define V2_DEL_REWRITE 6
 | |
| 
 | |
| /* Inmemory copy of version specific information */
 | |
| struct v2_mem_dqinfo {
 | |
| 	unsigned int dqi_blocks;
 | |
| 	unsigned int dqi_free_blk;
 | |
| 	unsigned int dqi_free_entry;
 | |
| };
 | |
| 
 | |
| #endif /* _LINUX_DQBLK_V2_H */
 |