diff options
Diffstat (limited to 'fs/xfs/xfs_da_btree.c')
-rw-r--r-- | fs/xfs/xfs_da_btree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c index 6098aff7bd5c..473671fa5c13 100644 --- a/fs/xfs/xfs_da_btree.c +++ b/fs/xfs/xfs_da_btree.c | |||
@@ -429,7 +429,8 @@ xfs_da_node_split(xfs_da_state_t *state, xfs_da_state_blk_t *oldblk, | |||
429 | /* | 429 | /* |
430 | * With V2 the extra block is data or freespace. | 430 | * With V2 the extra block is data or freespace. |
431 | */ | 431 | */ |
432 | useextra = state->extravalid && XFS_DIR_IS_V1(state->mp); | 432 | useextra = state->extravalid && (XFS_DIR_IS_V1(state->mp) || |
433 | state->args->whichfork == XFS_ATTR_FORK); | ||
433 | newcount = 1 + useextra; | 434 | newcount = 1 + useextra; |
434 | /* | 435 | /* |
435 | * Do we have to split the node? | 436 | * Do we have to split the node? |