Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull quota interface unification and misc cleanups from Jan Kara:
 "The first part of the series unifying XFS and VFS quota interfaces.
  This part unifies turning quotas on and off so quota-tools and
  xfs_quota can be used to manage any filesystem.  This is useful so
  that userspace doesn't have to distinguish which filesystem it is
  working with.  As a result we can then easily reuse tests for project
  quotas in XFS for ext4.
  This also contains minor cleanups and fixes for udf, isofs, and ext3"
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: (23 commits)
  udf: remove bool assignment to 0/1
  udf: use bool for done
  quota: Store maximum space limit in bytes
  quota: Remove quota_on_meta callback
  ocfs2: Use generic helpers for quotaon and quotaoff
  ext4: Use generic helpers for quotaon and quotaoff
  quota: Add ->quota_{enable,disable} callbacks for VFS quotas
  quota: Wire up ->quota_{enable,disable} callbacks into Q_QUOTA{ON,OFF}
  quota: Split ->set_xstate callback into two
  xfs: Remove some pointless quota checks
  xfs: Remove some useless flags tests
  xfs: Remove useless test
  quota: Verify flags passed to Q_SETINFO
  quota: Cleanup flags definitions
  ocfs2: Move OLQF_CLEAN flag out of generic quota flags
  quota: Don't store flags for v2 quota format
  jbd: drop jbd_ENOSYS debug
  udf: destroy sbi mutex in put_super
  udf: Check length of extended attributes and allocation descriptors
  udf: Remove repeated loads blocksize
  ...
	
	
This commit is contained in:
		
				commit
				
					
						c5452a58db
					
				
			
		
					 21 changed files with 284 additions and 244 deletions
				
			
		|  | @ -126,10 +126,22 @@ struct if_dqblk { | |||
| #define IIF_FLAGS	4 | ||||
| #define IIF_ALL		(IIF_BGRACE | IIF_IGRACE | IIF_FLAGS) | ||||
| 
 | ||||
| enum { | ||||
| 	DQF_ROOT_SQUASH_B = 0, | ||||
| 	DQF_SYS_FILE_B = 16, | ||||
| 	/* Kernel internal flags invisible to userspace */ | ||||
| 	DQF_PRIVATE | ||||
| }; | ||||
| 
 | ||||
| /* Root squash enabled (for v1 quota format) */ | ||||
| #define DQF_ROOT_SQUASH	(1 << DQF_ROOT_SQUASH_B) | ||||
| /* Quota stored in a system file */ | ||||
| #define DQF_SYS_FILE	(1 << DQF_SYS_FILE_B) | ||||
| 
 | ||||
| struct if_dqinfo { | ||||
| 	__u64 dqi_bgrace; | ||||
| 	__u64 dqi_igrace; | ||||
| 	__u32 dqi_flags; | ||||
| 	__u32 dqi_flags;	/* DFQ_* */ | ||||
| 	__u32 dqi_valid; | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Torvalds
				Linus Torvalds