Skip to content

Commit

Permalink
[XFS] Fixed the inconsistency between attribute b-tree intermidiate node
Browse files Browse the repository at this point in the history
and leaf blocks. The problem cam from xfsqa test 117.

SGI-PV: 940655
SGI-Modid: xfs-linux:xfs-kern:201527a

Signed-off-by: Yingping Lu <[email protected]>
Signed-off-by: Nathan Scott <[email protected]>
  • Loading branch information
Yingping Lu authored and natoscott committed Nov 2, 2005
1 parent 19d5bcf commit bf6f05a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/xfs/xfs_da_btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ xfs_da_node_split(xfs_da_state_t *state, xfs_da_state_blk_t *oldblk,
/*
* With V2 the extra block is data or freespace.
*/
useextra = state->extravalid && XFS_DIR_IS_V1(state->mp);
useextra = state->extravalid && (XFS_DIR_IS_V1(state->mp) ||
state->args->whichfork == XFS_ATTR_FORK);
newcount = 1 + useextra;
/*
* Do we have to split the node?
Expand Down

0 comments on commit bf6f05a

Please sign in to comment.