diff options
author | Lachlan McIlroy <lachlan@sgi.com> | 2006-11-21 18:55:16 +1100 |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2006-11-21 18:55:16 +1100 |
commit | d2133717d5f994cca970b5aeb9d4664feeb92ff4 (patch) | |
tree | 65210540e985d5709796966b6fb18d4abcb032e0 /fs/xfs/xfs_bmap.c | |
parent | 3f5a6ca31c334011fd929501a078424c0d3f71be (diff) | |
download | linux-d2133717d5f994cca970b5aeb9d4664feeb92ff4.tar.bz2 |
[XFS] Fix uninitialized br_state and br_startoff in
xfs_bmap_add_extent_delay_real()
SGI-PV: 957008
SGI-Modid: xfs-linux-melb:xfs-kern:27457a
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Shailendra Tripathi <stripathi@agami.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_bmap.c')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index 5b050c06795f..498ad50d1f45 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c @@ -1171,6 +1171,8 @@ xfs_bmap_add_extent_delay_real( xfs_bmap_trace_pre_update(fname, "0", ip, idx, XFS_DATA_FORK); xfs_bmbt_set_blockcount(ep, temp); r[0] = *new; + r[1].br_state = PREV.br_state; + r[1].br_startblock = 0; r[1].br_startoff = new_endoff; temp2 = PREV.br_startoff + PREV.br_blockcount - new_endoff; r[1].br_blockcount = temp2; |