diff options
author | Neil Brown <neilb@suse.de> | 2005-11-18 01:10:59 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-18 07:49:46 -0800 |
commit | 34ef75f09f09611b62ae11ae36c3c7b0a6a8a9cb (patch) | |
tree | b65c7225287313caeef5ba521a2ece9a3015b632 /drivers/md/bitmap.c | |
parent | c4b32b8b010d036dc03f77b0ef2a747db0cc3588 (diff) | |
download | kernel_samsung_smdk4412-34ef75f09f09611b62ae11ae36c3c7b0a6a8a9cb.tar.gz kernel_samsung_smdk4412-34ef75f09f09611b62ae11ae36c3c7b0a6a8a9cb.tar.bz2 kernel_samsung_smdk4412-34ef75f09f09611b62ae11ae36c3c7b0a6a8a9cb.zip |
[PATCH] md: don't pass a NULL file* into ->prepare_write()
Some filesystems go oops.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/bitmap.c')
-rw-r--r-- | drivers/md/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 51315302a85..252d55df964 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c @@ -326,9 +326,9 @@ static int write_page(struct bitmap *bitmap, struct page *page, int wait) } } - ret = page->mapping->a_ops->prepare_write(NULL, page, 0, PAGE_SIZE); + ret = page->mapping->a_ops->prepare_write(bitmap->file, page, 0, PAGE_SIZE); if (!ret) - ret = page->mapping->a_ops->commit_write(NULL, page, 0, + ret = page->mapping->a_ops->commit_write(bitmap->file, page, 0, PAGE_SIZE); if (ret) { unlock_page(page); |