make struct def_blk_aops static
authorAdrian Bunk <bunk@kernel.org>
Mon, 18 Feb 2008 12:48:31 +0000 (13:48 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 19 Feb 2008 09:04:00 +0000 (10:04 +0100)
This patch makes the needlessly global struct def_blk_aops static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
fs/block_dev.c
include/linux/fs.h

index 67fe72ce6ac7b0f2795a15cb17ae67f25244de67..8335f0e1b0fba4ff98e7933b6b557910b53efbce 100644 (file)
@@ -31,6 +31,8 @@ struct bdev_inode {
        struct inode vfs_inode;
 };
 
+static const struct address_space_operations def_blk_aops;
+
 static inline struct bdev_inode *BDEV_I(struct inode *inode)
 {
        return container_of(inode, struct bdev_inode, vfs_inode);
@@ -1334,7 +1336,7 @@ static long block_ioctl(struct file *file, unsigned cmd, unsigned long arg)
        return blkdev_ioctl(file->f_mapping->host, file, cmd, arg);
 }
 
-const struct address_space_operations def_blk_aops = {
+static const struct address_space_operations def_blk_aops = {
        .readpage       = blkdev_readpage,
        .writepage      = blkdev_writepage,
        .sync_page      = block_sync_page,
index 98ffb6ead434549139709be26736a85aca3b07a2..b84b848431f24a61a37e2d8a535534fcf0681554 100644 (file)
@@ -1590,7 +1590,6 @@ extern void bd_set_size(struct block_device *, loff_t size);
 extern void bd_forget(struct inode *inode);
 extern void bdput(struct block_device *);
 extern struct block_device *open_by_devnum(dev_t, unsigned);
-extern const struct address_space_operations def_blk_aops;
 #else
 static inline void bd_forget(struct inode *inode) {}
 #endif