summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_da_btree.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2014-06-06 15:20:02 +1000
committerDave Chinner <david@fromorbit.com>2014-06-06 15:20:02 +1000
commit7ab610f9e0f1701b7b319bdc946b9804fb79e780 (patch)
tree388cd5166ab84962462e94404920c1750892d1a6 /fs/xfs/xfs_da_btree.c
parented358c0058fc7d97807c92333a4e06117a4be5fe (diff)
downloadop-kernel-dev-7ab610f9e0f1701b7b319bdc946b9804fb79e780.zip
op-kernel-dev-7ab610f9e0f1701b7b319bdc946b9804fb79e780.tar.gz
xfs: move node entry counts to xfs_da_geometry
Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_da_btree.c')
-rw-r--r--fs/xfs/xfs_da_btree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c
index 653e23f..e6c994c 100644
--- a/fs/xfs/xfs_da_btree.c
+++ b/fs/xfs/xfs_da_btree.c
@@ -167,8 +167,8 @@ xfs_da3_node_verify(
* we don't know if the node is for and attribute or directory tree,
* so only fail if the count is outside both bounds
*/
- if (ichdr.count > mp->m_dir_node_ents &&
- ichdr.count > mp->m_attr_node_ents)
+ if (ichdr.count > mp->m_dir_geo->node_ents &&
+ ichdr.count > mp->m_attr_geo->node_ents)
return false;
/* XXX: hash order check? */
OpenPOWER on IntegriCloud