Merge branch 'stable-3.2' into pandora-3.2
[pandora-kernel.git] / fs / xfs / xfs_ialloc.c
index 169380e..24675e3 100644 (file)
@@ -894,13 +894,13 @@ nextag:
 
                        /* free inodes to the left? */
                        if (useleft && trec.ir_freecount) {
-                               rec = trec;
                                xfs_btree_del_cursor(cur, XFS_BTREE_NOERROR);
                                cur = tcur;
 
                                pag->pagl_leftrec = trec.ir_startino;
                                pag->pagl_rightrec = rec.ir_startino;
                                pag->pagl_pagino = pagino;
+                               rec = trec;
                                goto alloc_inode;
                        }