diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-13 14:40:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-13 14:40:24 -0400 |
commit | 239dab4636f7f5f971ac39b5ca84254cff112cac (patch) | |
tree | ba16a01035dd13bb87795911da436b6295f9b341 /fs/xfs/xfs_inode.c | |
parent | f1c410885288e0042099960ee9e0c260dfea4cfb (diff) | |
parent | c31ad439e8d111bf911c9cc80619cebde411a44d (diff) |
Merge tag 'for-linus-v3.11-rc1-2' of git://oss.sgi.com/xfs/xfs
Pull more xfs updates from Ben Myers:
"Here are a fix for xfs_fsr, a cleanup in bulkstat, a cleanup in
xfs_open_by_handle, updated mount options documentation, a cleanup in
xfs_bmapi_write, a fix for the size of dquot log reservations, a fix
for sgid inheritance when acls are in use, a fix for cleaning up
quotainfo structures, and some more of the work which allows group and
project quotas to be used together.
We had a few more in this last quota category that we might have liked
to get in, but it looks there are still a few items that need to be
addressed.
- fix for xfs_fsr returning -EINVAL
- cleanup in xfs_bulkstat
- cleanup in xfs_open_by_handle
- update mount options documentation
- clean up local format handling in xfs_bmapi_write
- fix dquot log reservations which were too small
- fix sgid inheritance for subdirectories when default acls are in use
- add project quota fields to various structures
- fix teardown of quotainfo structures when quotas are turned off"
* tag 'for-linus-v3.11-rc1-2' of git://oss.sgi.com/xfs/xfs:
xfs: Fix the logic check for all quotas being turned off
xfs: Add pquota fields where gquota is used.
xfs: fix sgid inheritance for subdirectories inheriting default acls [V3]
xfs: dquot log reservations are too small
xfs: remove local fork format handling from xfs_bmapi_write()
xfs: update mount options documentation
xfs: use get_unused_fd_flags(0) instead of get_unused_fd()
xfs: clean up unused codes at xfs_bulkstat()
xfs: use XFS_BMAP_BMDR_SPACE vs. XFS_BROOT_SIZE_ADJ
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 9ecfe1e559fc..b78481f99d9d 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -2156,8 +2156,8 @@ xfs_iroot_realloc( | |||
2156 | np = (char *)XFS_BMAP_BROOT_PTR_ADDR(mp, ifp->if_broot, 1, | 2156 | np = (char *)XFS_BMAP_BROOT_PTR_ADDR(mp, ifp->if_broot, 1, |
2157 | (int)new_size); | 2157 | (int)new_size); |
2158 | ifp->if_broot_bytes = (int)new_size; | 2158 | ifp->if_broot_bytes = (int)new_size; |
2159 | ASSERT(ifp->if_broot_bytes <= | 2159 | ASSERT(XFS_BMAP_BMDR_SPACE(ifp->if_broot) <= |
2160 | XFS_IFORK_SIZE(ip, whichfork) + XFS_BROOT_SIZE_ADJ(ip)); | 2160 | XFS_IFORK_SIZE(ip, whichfork)); |
2161 | memmove(np, op, cur_max * (uint)sizeof(xfs_dfsbno_t)); | 2161 | memmove(np, op, cur_max * (uint)sizeof(xfs_dfsbno_t)); |
2162 | return; | 2162 | return; |
2163 | } | 2163 | } |
@@ -2210,8 +2210,9 @@ xfs_iroot_realloc( | |||
2210 | kmem_free(ifp->if_broot); | 2210 | kmem_free(ifp->if_broot); |
2211 | ifp->if_broot = new_broot; | 2211 | ifp->if_broot = new_broot; |
2212 | ifp->if_broot_bytes = (int)new_size; | 2212 | ifp->if_broot_bytes = (int)new_size; |
2213 | ASSERT(ifp->if_broot_bytes <= | 2213 | if (ifp->if_broot) |
2214 | XFS_IFORK_SIZE(ip, whichfork) + XFS_BROOT_SIZE_ADJ(ip)); | 2214 | ASSERT(XFS_BMAP_BMDR_SPACE(ifp->if_broot) <= |
2215 | XFS_IFORK_SIZE(ip, whichfork)); | ||
2215 | return; | 2216 | return; |
2216 | } | 2217 | } |
2217 | 2218 | ||
@@ -2522,9 +2523,8 @@ xfs_iflush_fork( | |||
2522 | if ((iip->ili_fields & brootflag[whichfork]) && | 2523 | if ((iip->ili_fields & brootflag[whichfork]) && |
2523 | (ifp->if_broot_bytes > 0)) { | 2524 | (ifp->if_broot_bytes > 0)) { |
2524 | ASSERT(ifp->if_broot != NULL); | 2525 | ASSERT(ifp->if_broot != NULL); |
2525 | ASSERT(ifp->if_broot_bytes <= | 2526 | ASSERT(XFS_BMAP_BMDR_SPACE(ifp->if_broot) <= |
2526 | (XFS_IFORK_SIZE(ip, whichfork) + | 2527 | XFS_IFORK_SIZE(ip, whichfork)); |
2527 | XFS_BROOT_SIZE_ADJ(ip))); | ||
2528 | xfs_bmbt_to_bmdr(mp, ifp->if_broot, ifp->if_broot_bytes, | 2528 | xfs_bmbt_to_bmdr(mp, ifp->if_broot, ifp->if_broot_bytes, |
2529 | (xfs_bmdr_block_t *)cp, | 2529 | (xfs_bmdr_block_t *)cp, |
2530 | XFS_DFORK_SIZE(dip, mp, whichfork)); | 2530 | XFS_DFORK_SIZE(dip, mp, whichfork)); |