fs: move code out of buffer.c
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 16 Sep 2011 06:31:11 +0000 (02:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Jan 2012 03:54:07 +0000 (22:54 -0500)
commitff01bb4832651c6d25ac509a06a10fcbd75c461c
treebbfdebd317db97d346df78293566f36e883b1be9
parent94ea4158f1733e3b10cef067d535f504866e0c41
fs: move code out of buffer.c

Move invalidate_bdev, block_sync_page into fs/block_dev.c.  Export
kill_bdev as well, so brd doesn't have to open code it.  Reduce
buffer_head.h requirement accordingly.

Removed a rather large comment from invalidate_bdev, as it looked a bit
obsolete to bother moving.  The small comment replacing it says enough.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
28 files changed:
arch/powerpc/sysdev/axonram.c
block/genhd.c
block/ioctl.c
drivers/block/amiflop.c
drivers/block/brd.c
drivers/block/floppy.c
drivers/block/loop.c
drivers/cdrom/cdrom.c
drivers/md/dm.c
drivers/md/md.c
drivers/mtd/devices/block2mtd.c
drivers/s390/block/dasd.c
drivers/scsi/scsicam.c
drivers/tty/sysrq.c
fs/block_dev.c
fs/buffer.c
fs/cachefiles/interface.c
fs/cramfs/inode.c
fs/fs-writeback.c
fs/libfs.c
fs/quota/dquot.c
fs/quota/quota.c
fs/splice.c
fs/sync.c
include/linux/fs.h
kernel/power/swap.c
mm/page-writeback.c
mm/swap_state.c