Commit c018e6fe authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] include buffer_head.h in actual users instead of fs.h (5/10)

Include buffer_head.h directly in the file in drivers/ that need it
(9 files).  Note that most of this uses are layering violations that I
will address later.
parent 5c247121
......@@ -36,6 +36,7 @@
#include <linux/genhd.h>
#include <linux/module.h> /* for EXPORT_SYMBOL */
#include <linux/backing-dev.h>
#include <linux/buffer_head.h>
#include <asm/uaccess.h>
......
......@@ -174,6 +174,7 @@ static int print_unex=1;
#include <linux/init.h>
#include <linux/devfs_fs_kernel.h>
#include <linux/device.h>
#include <linux/buffer_head.h> /* for invalidate_buffers() */
/*
* PS/2 floppies have much slower step rates than regular floppies.
......@@ -3793,6 +3794,7 @@ static int floppy_open(struct inode * inode, struct file * filp)
if (old_dev != -1 && old_dev != minor(inode->i_rdev)) {
if (buffer_drive == drive)
buffer_track = -1;
/* umm, invalidate_buffers() in ->open?? --hch */
invalidate_buffers(mk_kdev(FLOPPY_MAJOR,old_dev));
}
......
......@@ -25,6 +25,7 @@
#include <linux/bootmem.h>
#include <linux/completion.h>
#include <linux/compiler.h>
#include <linux/buffer_head.h>
#include <scsi/scsi.h>
#include <linux/backing-dev.h>
......
......@@ -73,6 +73,7 @@
#include <linux/slab.h>
#include <linux/loop.h>
#include <linux/suspend.h>
#include <linux/buffer_head.h> /* for invalidate_bdev() */
#include <asm/uaccess.h>
......
......@@ -48,6 +48,7 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/devfs_fs_kernel.h>
#include <linux/buffer_head.h> /* for invalidate_bdev() */
#include <asm/uaccess.h>
/*
......
......@@ -28,6 +28,7 @@
#include <linux/smp_lock.h>
#include <linux/module.h>
#include <linux/suspend.h>
#include <linux/buffer_head.h> /* for fsync_bdev()/wakeup_bdflush() */
#include <linux/spinlock.h>
......
......@@ -28,6 +28,7 @@
#include <linux/delay.h>
#include <linux/ide.h>
#include <linux/suspend.h>
#include <linux/buffer_head.h> /* for invalidate_bdev() */
#include <asm/byteorder.h>
#include <asm/irq.h>
......@@ -392,6 +393,7 @@ static void idedisk_release(struct inode *inode, struct file *filp, struct ata_d
if (drive->removable && !drive->usage) {
struct ata_taskfile args;
/* XXX I don't think this is up to the lowlevel drivers.. --hch */
invalidate_bdev(inode->i_bdev, 0);
memset(&args, 0, sizeof(args));
......
......@@ -16,6 +16,7 @@
#include <linux/genhd.h>
#include <linux/kernel.h>
#include <linux/blk.h>
#include <linux/buffer_head.h>
#include <asm/unaligned.h>
#include "scsi.h"
#include "hosts.h"
......
......@@ -5,6 +5,7 @@
#include <asm/uaccess.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/buffer_head.h> /* for invalidate_buffers() */
#include <linux/blk.h>
#include <linux/blkpg.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment