diff options
Diffstat (limited to 'fs/xfs/xfs_bmap.c')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index 183add2f21b7..09d86388bb71 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -2605,7 +2605,6 @@ xfs_bmap_rtalloc( | |||
2605 | xfs_extlen_t prod = 0; /* product factor for allocators */ | 2605 | xfs_extlen_t prod = 0; /* product factor for allocators */ |
2606 | xfs_extlen_t ralen = 0; /* realtime allocation length */ | 2606 | xfs_extlen_t ralen = 0; /* realtime allocation length */ |
2607 | xfs_extlen_t align; /* minimum allocation alignment */ | 2607 | xfs_extlen_t align; /* minimum allocation alignment */ |
2608 | xfs_rtblock_t rtx; /* realtime extent number */ | ||
2609 | xfs_rtblock_t rtb; | 2608 | xfs_rtblock_t rtb; |
2610 | 2609 | ||
2611 | mp = ap->ip->i_mount; | 2610 | mp = ap->ip->i_mount; |
@@ -2643,6 +2642,8 @@ xfs_bmap_rtalloc( | |||
2643 | * pick an extent that will space things out in the rt area. | 2642 | * pick an extent that will space things out in the rt area. |
2644 | */ | 2643 | */ |
2645 | if (ap->eof && ap->off == 0) { | 2644 | if (ap->eof && ap->off == 0) { |
2645 | xfs_rtblock_t uninitialized_var(rtx); /* realtime extent no */ | ||
2646 | |||
2646 | error = xfs_rtpick_extent(mp, ap->tp, ralen, &rtx); | 2647 | error = xfs_rtpick_extent(mp, ap->tp, ralen, &rtx); |
2647 | if (error) | 2648 | if (error) |
2648 | return error; | 2649 | return error; |