]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/buffer.c
Add __GFP_MOVABLE for callers to flag allocations from high memory that may be migrated
[linux-2.6-omap-h63xx.git] / fs / buffer.c
index aa68206bd517929ccd1a7f338889ba0575ab4c30..94344b2e0b46ccd3f4e19070e020be4ed6535bfd 100644 (file)
@@ -982,7 +982,7 @@ grow_dev_page(struct block_device *bdev, sector_t block,
        struct buffer_head *bh;
 
        page = find_or_create_page(inode->i_mapping, index,
-               mapping_gfp_mask(inode->i_mapping) & ~__GFP_FS);
+               (mapping_gfp_mask(inode->i_mapping) & ~__GFP_FS)|__GFP_MOVABLE);
        if (!page)
                return NULL;
 
@@ -1026,11 +1026,6 @@ failed:
 /*
  * Create buffers for the specified block device block's page.  If
  * that page was dirty, the buffers are set dirty also.
- *
- * Except that's a bug.  Attaching dirty buffers to a dirty
- * blockdev's page can result in filesystem corruption, because
- * some of those buffers may be aliases of filesystem data.
- * grow_dev_page() will go BUG() if this happens.
  */
 static int
 grow_buffers(struct block_device *bdev, sector_t block, int size)