]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/md/raid6main.c
[PATCH] md: clean up 'page' related names in md
[karo-tx-linux.git] / drivers / md / raid6main.c
index b5b7a8d0b1653ff9eeaa8c73576592eea6ed936a..4062fc16ac2b040cfa274a7f9c8b6851fd43bcb5 100644 (file)
@@ -186,7 +186,7 @@ static void shrink_buffers(struct stripe_head *sh, int num)
                if (!p)
                        continue;
                sh->dev[i].page = NULL;
-               page_cache_release(p);
+               put_page(p);
        }
 }
 
@@ -2069,7 +2069,7 @@ static int run(mddev_t *mddev)
         */
        {
                int stripe = (mddev->raid_disks-2) * mddev->chunk_size
-                       / PAGE_CACHE_SIZE;
+                       / PAGE_SIZE;
                if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe)
                        mddev->queue->backing_dev_info.ra_pages = 2 * stripe;
        }
@@ -2084,7 +2084,7 @@ abort:
        if (conf) {
                print_raid6_conf(conf);
                if (conf->spare_page)
-                       page_cache_release(conf->spare_page);
+                       put_page(conf->spare_page);
                if (conf->stripe_hashtbl)
                        free_pages((unsigned long) conf->stripe_hashtbl,
                                                        HASH_PAGES_ORDER);