diff options
author | Nathan Scott <nathans@sgi.com> | 2006-01-10 23:32:01 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-01-10 23:32:01 -0500 |
commit | 13059ff04c5071c3f6f8a4bd9e51631849f63fa4 (patch) | |
tree | 5a038d985cefde848e52c7bc232a71df454f3e0e /fs/xfs/xfs_bmap.c | |
parent | e13a73f02595c564e423bda5742fb8df4ebca455 (diff) |
[XFS] Reverse the sense of COMPAT_ATTR and ATTR2, keeps it simple and
consistent.
SGI-PV: 941645
SGI-Modid: xfs-linux-melb:xfs-kern:202961a
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_bmap.c')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index 8a32d65211b0..8ac170b828f5 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -3948,7 +3948,7 @@ xfs_bmap_add_attrfork( | |||
3948 | ip->i_d.di_forkoff = xfs_attr_shortform_bytesfit(ip, size); | 3948 | ip->i_d.di_forkoff = xfs_attr_shortform_bytesfit(ip, size); |
3949 | if (!ip->i_d.di_forkoff) | 3949 | if (!ip->i_d.di_forkoff) |
3950 | ip->i_d.di_forkoff = mp->m_attroffset >> 3; | 3950 | ip->i_d.di_forkoff = mp->m_attroffset >> 3; |
3951 | else if (!(mp->m_flags & XFS_MOUNT_COMPAT_ATTR)) | 3951 | else if (mp->m_flags & XFS_MOUNT_ATTR2) |
3952 | version = 2; | 3952 | version = 2; |
3953 | break; | 3953 | break; |
3954 | default: | 3954 | default: |
@@ -4096,13 +4096,13 @@ xfs_bmap_compute_maxlevels( | |||
4096 | */ | 4096 | */ |
4097 | if (whichfork == XFS_DATA_FORK) { | 4097 | if (whichfork == XFS_DATA_FORK) { |
4098 | maxleafents = MAXEXTNUM; | 4098 | maxleafents = MAXEXTNUM; |
4099 | sz = (mp->m_flags & XFS_MOUNT_COMPAT_ATTR) ? | 4099 | sz = (mp->m_flags & XFS_MOUNT_ATTR2) ? |
4100 | mp->m_attroffset : XFS_BMDR_SPACE_CALC(MINDBTPTRS); | 4100 | XFS_BMDR_SPACE_CALC(MINDBTPTRS) : mp->m_attroffset; |
4101 | } else { | 4101 | } else { |
4102 | maxleafents = MAXAEXTNUM; | 4102 | maxleafents = MAXAEXTNUM; |
4103 | sz = (mp->m_flags & XFS_MOUNT_COMPAT_ATTR) ? | 4103 | sz = (mp->m_flags & XFS_MOUNT_ATTR2) ? |
4104 | mp->m_sb.sb_inodesize - mp->m_attroffset : | 4104 | XFS_BMDR_SPACE_CALC(MINABTPTRS) : |
4105 | XFS_BMDR_SPACE_CALC(MINABTPTRS); | 4105 | mp->m_sb.sb_inodesize - mp->m_attroffset; |
4106 | } | 4106 | } |
4107 | maxrootrecs = (int)XFS_BTREE_BLOCK_MAXRECS(sz, xfs_bmdr, 0); | 4107 | maxrootrecs = (int)XFS_BTREE_BLOCK_MAXRECS(sz, xfs_bmdr, 0); |
4108 | minleafrecs = mp->m_bmap_dmnr[0]; | 4108 | minleafrecs = mp->m_bmap_dmnr[0]; |