aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_bmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_bmap.c')
-rw-r--r--fs/xfs/xfs_bmap.c12
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];