diff options
Diffstat (limited to 'fs/xfs/xfs_dir2.c')
-rw-r--r-- | fs/xfs/xfs_dir2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_dir2.c b/fs/xfs/xfs_dir2.c index 3fbf0110eeb3..2685552480f0 100644 --- a/fs/xfs/xfs_dir2.c +++ b/fs/xfs/xfs_dir2.c | |||
@@ -145,7 +145,6 @@ xfs_da_mount( | |||
145 | mp->m_dirnameops = &xfs_default_nameops; | 145 | mp->m_dirnameops = &xfs_default_nameops; |
146 | 146 | ||
147 | /* XXX: these are to be removed as code is converted to use geo */ | 147 | /* XXX: these are to be removed as code is converted to use geo */ |
148 | mp->m_dirblksize = mp->m_dir_geo->blksize; | ||
149 | mp->m_dir_node_ents = mp->m_dir_geo->node_ents; | 148 | mp->m_dir_node_ents = mp->m_dir_geo->node_ents; |
150 | mp->m_dir_magicpct = mp->m_dir_geo->magicpct; | 149 | mp->m_dir_magicpct = mp->m_dir_geo->magicpct; |
151 | mp->m_attr_node_ents = mp->m_attr_geo->node_ents; | 150 | mp->m_attr_node_ents = mp->m_attr_geo->node_ents; |
@@ -665,8 +664,8 @@ xfs_dir2_isblock( | |||
665 | mp = dp->i_mount; | 664 | mp = dp->i_mount; |
666 | if ((rval = xfs_bmap_last_offset(dp, &last, XFS_DATA_FORK))) | 665 | if ((rval = xfs_bmap_last_offset(dp, &last, XFS_DATA_FORK))) |
667 | return rval; | 666 | return rval; |
668 | rval = XFS_FSB_TO_B(mp, last) == mp->m_dirblksize; | 667 | rval = XFS_FSB_TO_B(mp, last) == mp->m_dir_geo->blksize; |
669 | ASSERT(rval == 0 || dp->i_d.di_size == mp->m_dirblksize); | 668 | ASSERT(rval == 0 || dp->i_d.di_size == mp->m_dir_geo->blksize); |
670 | *vp = rval; | 669 | *vp = rval; |
671 | return 0; | 670 | return 0; |
672 | } | 671 | } |