]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/xfs/xfs_attr_leaf.c
xfs: remove m_attroffset
[karo-tx-linux.git] / fs / xfs / xfs_attr_leaf.c
index aa001629b596f08fc5091e2c57f6a7d2982de124..afdc8911637d20c3f7f01ff4eb50ca832e27ab28 100644 (file)
@@ -155,7 +155,8 @@ xfs_attr_shortform_bytesfit(xfs_inode_t *dp, int bytes)
                 * minimum offset only needs to be the space required for 
                 * the btree root.
                 */ 
-               if (!dp->i_d.di_forkoff && dp->i_df.if_bytes > mp->m_attroffset)
+               if (!dp->i_d.di_forkoff && dp->i_df.if_bytes >
+                   xfs_default_attroffset(dp))
                        dsize = XFS_BMDR_SPACE_CALC(MINDBTPTRS);
                break;