]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/buffer.c
mm: remove destroy_dirty_buffers from invalidate_bdev()
[mirror_ubuntu-zesty-kernel.git] / fs / buffer.c
index dcc5faa573bae6677964453cf5a2392310c73c32..630df3e6fe0c77a07b9d0caaf9edf54a29435dff 100644 (file)
@@ -333,7 +333,7 @@ out:
    we think the disk contains more recent information than the buffercache.
    The update == 1 pass marks the buffers we need to update, the update == 2
    pass does the actual I/O. */
-void invalidate_bdev(struct block_device *bdev, int destroy_dirty_buffers)
+void invalidate_bdev(struct block_device *bdev)
 {
        struct address_space *mapping = bdev->bd_inode->i_mapping;
 
@@ -341,11 +341,6 @@ void invalidate_bdev(struct block_device *bdev, int destroy_dirty_buffers)
                return;
 
        invalidate_bh_lrus();
-       /*
-        * FIXME: what about destroy_dirty_buffers?
-        * We really want to use invalidate_inode_pages2() for
-        * that, but not until that's cleaned up.
-        */
        invalidate_mapping_pages(mapping, 0, -1);
 }