[PATCH] md: don't pass a NULL file* into ->prepare_write()
[sfrench/cifs-2.6.git] / drivers / md / bitmap.c
index 51315302a85e43ab651a4edaba742784d5e04af2..252d55df964296c97960242a016fc7b8573c4279 100644 (file)
@@ -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);