Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255121
b: refs/heads/master
c: dec58f1
h: refs/heads/master
i:
  255119: b710200
v: v3
  • Loading branch information
Christoph Hellwig committed Jul 8, 2011
1 parent 102ed70 commit 0b6f04e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbcdde3e76f45d56c4a30ca6c5d69b6d473d3fd1
refs/heads/master: dec58f1dfd30a3c3e9dadc808692f4e5cd922745
9 changes: 6 additions & 3 deletions trunk/fs/xfs/xfs_alloc_btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,13 +427,16 @@ xfs_allocbt_init_cursor(

cur->bc_tp = tp;
cur->bc_mp = mp;
cur->bc_nlevels = be32_to_cpu(agf->agf_levels[btnum]);
cur->bc_btnum = btnum;
cur->bc_blocklog = mp->m_sb.sb_blocklog;

cur->bc_ops = &xfs_allocbt_ops;
if (btnum == XFS_BTNUM_CNT)

if (btnum == XFS_BTNUM_CNT) {
cur->bc_nlevels = be32_to_cpu(agf->agf_levels[XFS_BTNUM_CNT]);
cur->bc_flags = XFS_BTREE_LASTREC_UPDATE;
} else {
cur->bc_nlevels = be32_to_cpu(agf->agf_levels[XFS_BTNUM_BNO]);
}

cur->bc_private.a.agbp = agbp;
cur->bc_private.a.agno = agno;
Expand Down

0 comments on commit 0b6f04e

Please sign in to comment.