aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-02-18 07:48:31 -0500
committerJens Axboe <jens.axboe@oracle.com>2008-02-19 04:04:00 -0500
commit4c54ac62dceecedd82d4a865017bba0b738e2897 (patch)
tree01cc1b13a97b550bd7e64fe4042ffe920cab876b
parent52ff4cae65b45dcdfa23de09619754d6f380f31e (diff)
make struct def_blk_aops static
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>
-rw-r--r--fs/block_dev.c4
-rw-r--r--include/linux/fs.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 67fe72ce6ac7..8335f0e1b0fb 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -31,6 +31,8 @@ struct bdev_inode {
31 struct inode vfs_inode; 31 struct inode vfs_inode;
32}; 32};
33 33
34static const struct address_space_operations def_blk_aops;
35
34static inline struct bdev_inode *BDEV_I(struct inode *inode) 36static inline struct bdev_inode *BDEV_I(struct inode *inode)
35{ 37{
36 return container_of(inode, struct bdev_inode, vfs_inode); 38 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)
1334 return blkdev_ioctl(file->f_mapping->host, file, cmd, arg); 1336 return blkdev_ioctl(file->f_mapping->host, file, cmd, arg);
1335} 1337}
1336 1338
1337const struct address_space_operations def_blk_aops = { 1339static const struct address_space_operations def_blk_aops = {
1338 .readpage = blkdev_readpage, 1340 .readpage = blkdev_readpage,
1339 .writepage = blkdev_writepage, 1341 .writepage = blkdev_writepage,
1340 .sync_page = block_sync_page, 1342 .sync_page = block_sync_page,
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 98ffb6ead434..b84b848431f2 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1590,7 +1590,6 @@ extern void bd_set_size(struct block_device *, loff_t size);
1590extern void bd_forget(struct inode *inode); 1590extern void bd_forget(struct inode *inode);
1591extern void bdput(struct block_device *); 1591extern void bdput(struct block_device *);
1592extern struct block_device *open_by_devnum(dev_t, unsigned); 1592extern struct block_device *open_by_devnum(dev_t, unsigned);
1593extern const struct address_space_operations def_blk_aops;
1594#else 1593#else
1595static inline void bd_forget(struct inode *inode) {} 1594static inline void bd_forget(struct inode *inode) {}
1596#endif 1595#endif