[PATCH 22/21] xfs: Fix magic number assert in xfs_dir3_leaf_log_bests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Dave Chinner <dchinner@xxxxxxxxxx>

Make sure we set the magic number correctly when converting
from node to leaf form.

Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
---

This should probably be folded into patch 14/21. I missed this hunk
when bringing it forward to 3.9-rc2 and folding all the bugs fixes
I had in debug patches back into their original patches.

 fs/xfs/xfs_dir2_leaf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_dir2_leaf.c b/fs/xfs/xfs_dir2_leaf.c
index 015c078..43a5c8543c4 100644
--- a/fs/xfs/xfs_dir2_leaf.c
+++ b/fs/xfs/xfs_dir2_leaf.c
@@ -2199,7 +2199,7 @@ xfs_dir2_node_to_leaf(
 	xfs_trans_buf_set_type(tp, lbp, XFS_BLF_DIR_LEAF1_BUF);
 	leafhdr.magic = (leafhdr.magic == XFS_DIR2_LEAFN_MAGIC)
 					? XFS_DIR2_LEAF1_MAGIC
-					: XFS_DIR3_LEAFN_MAGIC;
+					: XFS_DIR3_LEAF1_MAGIC;
 
 	/*
 	 * Set up the leaf tail from the freespace block.

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux