xfs: use tr_growrtalloc for growing rt files
authorBrian Foster <bfoster@redhat.com>
Fri, 7 Feb 2014 03:53:50 +0000 (14:53 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 7 Feb 2014 03:53:50 +0000 (14:53 +1100)
This is a regression from the following commit:

3d3c8b5222b9 xfs: refactor xfs_trans_reserve() interface

Use the tr_growrtalloc log reservation for growing the
bitmap/summary files.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_rtalloc.c

index a6a76b2b6a85db9ece8acb0565e82e310319ec9d..ec5ca65c62116e62d509b987c92c983e79d3cbb6 100644 (file)
@@ -842,7 +842,7 @@ xfs_growfs_rt_alloc(
                /*
                 * Reserve space & log for one extent added to the file.
                 */
-               error = xfs_trans_reserve(tp, &M_RES(mp)->tr_growdata,
+               error = xfs_trans_reserve(tp, &M_RES(mp)->tr_growrtalloc,
                                          resblks, 0);
                if (error)
                        goto error_cancel;