aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2009-05-07 02:47:19 +0000
committerNeilBrown <[email protected]>2009-05-07 02:47:19 +0000
commitb74fd2826c5acce20e6f691437b2d19372bc2057 (patch)
tree818e1fa7a7f91b1ca37279f19ce215f19256d7f0 /fs/jbd2/commit.c
parentMerge branch 'for-linus' of git://oss.sgi.com/xfs/xfs (diff)
downloadkernel-b74fd2826c5acce20e6f691437b2d19372bc2057.tar.gz
kernel-b74fd2826c5acce20e6f691437b2d19372bc2057.zip
md: fix loading of out-of-date bitmap.
When md is loading a bitmap which it knows is out of date, it fills each page with 1s and writes it back out again. However the write_page call makes used of bitmap->file_pages and bitmap->last_page_size which haven't been set correctly yet. So this can sometimes fail. Move the setting of file_pages and last_page_size to before the call to write_page. This bug can cause the assembly on an array to fail, thus making the data inaccessible. Hence I think it is a suitable candidate for -stable. Cc: [email protected] Reported-by: Vojtech Pavlik <[email protected]> Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions