xfs: use tr_growrtalloc for growing rt files
PATCH 1/1 xfs: use tr_growrtalloc for growing rt files
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.
--- fs/xfs/xfs_rtalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_rtalloc.c +1 -1
@@ -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;
Signature · 6 lines
1.8.1.4 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 8 lines · Brian Foster
This is a regression from the following commit:
3d3c8b5222b9xfs: refactorxfs_trans_reserve()interfaceUse the
tr_growrtalloclog reservation for growing the bitmap/summary files.Signed-off-by Brian Foster <[email protected]>
Looks right to me. :)
Quoted 10 lines
--- fs/xfs/xfs_rtalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/xfs/xfs_rtalloc.c +0
-0
fs/xfs/xfs_rtalloc.c xfs_growfs_rt_alloc( · line 848
Quoted 8 lines
fs/xfs/xfs_rtalloc.c +1
-1@@ -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;
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 17 lines · Brian Foster
This is a regression from the following commit:
3d3c8b5222b9xfs: refactorxfs_trans_reserve()interfaceUse the
tr_growrtalloclog reservation for growing the bitmap/summary files.Signed-off-by Brian Foster <[email protected]>--- fs/xfs/xfs_rtalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/xfs/xfs_rtalloc.c +0
-0
fs/xfs/xfs_rtalloc.c xfs_growfs_rt_alloc( · line 846
Quoted 6 lines
fs/xfs/xfs_rtalloc.c +1
-1@@ -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 );
My previous mistake, thank you and Eric for catching up this.
Thanks,
-Jeff
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs