]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: fix node forward in xfs_node_toosmall
authorDave Chinner <dchinner@redhat.com>
Wed, 13 Nov 2013 06:40:37 +0000 (06:40 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 13 Nov 2013 17:08:19 +0000 (11:08 -0600)
commitc9522f4d8790ecd61c4e74746b607787485f2027
tree3f93fe88a0d471adf8899591e3311d171c8938de
parent3e23516ae60421652fd41354307a6a5181d401eb
xfs: fix node forward in xfs_node_toosmall

When a node is considered for a merge with a sibling, it overwrites the
sibling pointers of the original incore nodehdr with the sibling's
pointers.  This leads to loop considering the original node as a merge
candidate with itself in the second pass, and so it incorrectly
determines a merge should occur.)

Ported from equivalent kernel commit 997def25.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
libxfs/xfs_da_btree.c