diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-11 12:03:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-11 12:03:47 -0400 |
commit | 412dd3a6daf0cadce1b2d6a34fa3713f40255579 (patch) | |
tree | bb2518c00c9d56acc8d36f87ed9c3144d8cf8201 /fs/xfs/xfs_trans_space.h | |
parent | 23d4ed53b7342bf5999b3ea227d9f69e75e5a625 (diff) | |
parent | 7691283d0561a350b7517be94818669fb5e3d910 (diff) |
Merge tag 'xfs-for-linus-3.16-rc1' of git://oss.sgi.com/xfs/xfs
Pull xfs updates from Dave Chinner:
"This update contains:
- cleanup removing unused function args
- rework of the filestreams allocator to use dentry cache parent
lookups
- new on-disk free inode btree and optimised inode allocator
- various bug fixes
- rework of internal attribute API
- cleanup of superblock feature bit support to remove historic cruft
- more fixes and minor cleanups
- added a new directory/attribute geometry abstraction
- yet more fixes and minor cleanups"
* tag 'xfs-for-linus-3.16-rc1' of git://oss.sgi.com/xfs/xfs: (86 commits)
xfs: fix xfs_da_args sparse warning in xfs_readdir
xfs: Fix rounding in xfs_alloc_fix_len()
xfs: tone down writepage/releasepage WARN_ONs
xfs: small cleanup in xfs_lowbit64()
xfs: kill xfs_buf_geterror()
xfs: xfs_readsb needs to check for magic numbers
xfs: block allocation work needs to be kswapd aware
xfs: remove redundant geometry information from xfs_da_state
xfs: replace attr LBSIZE with xfs_da_geometry
xfs: pass xfs_da_args to xfs_attr_leaf_newentsize
xfs: use xfs_da_geometry for block size in attr code
xfs: remove mp->m_dir_geo from directory logging
xfs: reduce direct usage of mp->m_dir_geo
xfs: move node entry counts to xfs_da_geometry
xfs: convert dir/attr btree threshold to xfs_da_geometry
xfs: convert m_dirblksize to xfs_da_geometry
xfs: convert m_dirblkfsbs to xfs_da_geometry
xfs: convert directory segment limits to xfs_da_geometry
xfs: convert directory db conversion to xfs_da_geometry
xfs: convert directory dablk conversion to xfs_da_geometry
...
Diffstat (limited to 'fs/xfs/xfs_trans_space.h')
-rw-r--r-- | fs/xfs/xfs_trans_space.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/fs/xfs/xfs_trans_space.h b/fs/xfs/xfs_trans_space.h index af5dbe06cb65..bf9c4579334d 100644 --- a/fs/xfs/xfs_trans_space.h +++ b/fs/xfs/xfs_trans_space.h | |||
@@ -28,7 +28,8 @@ | |||
28 | (((b + XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) - 1) / \ | 28 | (((b + XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) - 1) / \ |
29 | XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp)) * \ | 29 | XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp)) * \ |
30 | XFS_EXTENTADD_SPACE_RES(mp,w)) | 30 | XFS_EXTENTADD_SPACE_RES(mp,w)) |
31 | #define XFS_DAENTER_1B(mp,w) ((w) == XFS_DATA_FORK ? (mp)->m_dirblkfsbs : 1) | 31 | #define XFS_DAENTER_1B(mp,w) \ |
32 | ((w) == XFS_DATA_FORK ? (mp)->m_dir_geo->fsbcount : 1) | ||
32 | #define XFS_DAENTER_DBS(mp,w) \ | 33 | #define XFS_DAENTER_DBS(mp,w) \ |
33 | (XFS_DA_NODE_MAXDEPTH + (((w) == XFS_DATA_FORK) ? 2 : 0)) | 34 | (XFS_DA_NODE_MAXDEPTH + (((w) == XFS_DATA_FORK) ? 2 : 0)) |
34 | #define XFS_DAENTER_BLOCKS(mp,w) \ | 35 | #define XFS_DAENTER_BLOCKS(mp,w) \ |
@@ -47,13 +48,15 @@ | |||
47 | #define XFS_DIRREMOVE_SPACE_RES(mp) \ | 48 | #define XFS_DIRREMOVE_SPACE_RES(mp) \ |
48 | XFS_DAREMOVE_SPACE_RES(mp, XFS_DATA_FORK) | 49 | XFS_DAREMOVE_SPACE_RES(mp, XFS_DATA_FORK) |
49 | #define XFS_IALLOC_SPACE_RES(mp) \ | 50 | #define XFS_IALLOC_SPACE_RES(mp) \ |
50 | ((mp)->m_ialloc_blks + (mp)->m_in_maxlevels - 1) | 51 | ((mp)->m_ialloc_blks + \ |
52 | (xfs_sb_version_hasfinobt(&mp->m_sb) ? 2 : 1 * \ | ||
53 | ((mp)->m_in_maxlevels - 1))) | ||
51 | 54 | ||
52 | /* | 55 | /* |
53 | * Space reservation values for various transactions. | 56 | * Space reservation values for various transactions. |
54 | */ | 57 | */ |
55 | #define XFS_ADDAFORK_SPACE_RES(mp) \ | 58 | #define XFS_ADDAFORK_SPACE_RES(mp) \ |
56 | ((mp)->m_dirblkfsbs + XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK)) | 59 | ((mp)->m_dir_geo->fsbcount + XFS_DAENTER_BMAP1B(mp, XFS_DATA_FORK)) |
57 | #define XFS_ATTRRM_SPACE_RES(mp) \ | 60 | #define XFS_ATTRRM_SPACE_RES(mp) \ |
58 | XFS_DAREMOVE_SPACE_RES(mp, XFS_ATTR_FORK) | 61 | XFS_DAREMOVE_SPACE_RES(mp, XFS_ATTR_FORK) |
59 | /* This macro is not used - see inline code in xfs_attr_set */ | 62 | /* This macro is not used - see inline code in xfs_attr_set */ |
@@ -82,5 +85,8 @@ | |||
82 | (XFS_DIRREMOVE_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl)) | 85 | (XFS_DIRREMOVE_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl)) |
83 | #define XFS_SYMLINK_SPACE_RES(mp,nl,b) \ | 86 | #define XFS_SYMLINK_SPACE_RES(mp,nl,b) \ |
84 | (XFS_IALLOC_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl) + (b)) | 87 | (XFS_IALLOC_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl) + (b)) |
88 | #define XFS_IFREE_SPACE_RES(mp) \ | ||
89 | (xfs_sb_version_hasfinobt(&mp->m_sb) ? (mp)->m_in_maxlevels : 0) | ||
90 | |||
85 | 91 | ||
86 | #endif /* __XFS_TRANS_SPACE_H__ */ | 92 | #endif /* __XFS_TRANS_SPACE_H__ */ |