Commit 4c54ac62dceecedd82d4a865017bba0b738e2897
Committed by
Jens Axboe
1 parent
52ff4cae65
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>
Showing 2 changed files with 3 additions and 2 deletions Side-by-side Diff
fs/block_dev.c
... | ... | @@ -31,6 +31,8 @@ |
31 | 31 | struct inode vfs_inode; |
32 | 32 | }; |
33 | 33 | |
34 | +static const struct address_space_operations def_blk_aops; | |
35 | + | |
34 | 36 | static inline struct bdev_inode *BDEV_I(struct inode *inode) |
35 | 37 | { |
36 | 38 | return container_of(inode, struct bdev_inode, vfs_inode); |
... | ... | @@ -1334,7 +1336,7 @@ |
1334 | 1336 | return blkdev_ioctl(file->f_mapping->host, file, cmd, arg); |
1335 | 1337 | } |
1336 | 1338 | |
1337 | -const struct address_space_operations def_blk_aops = { | |
1339 | +static const struct address_space_operations def_blk_aops = { | |
1338 | 1340 | .readpage = blkdev_readpage, |
1339 | 1341 | .writepage = blkdev_writepage, |
1340 | 1342 | .sync_page = block_sync_page, |
include/linux/fs.h
... | ... | @@ -1590,7 +1590,6 @@ |
1590 | 1590 | extern void bd_forget(struct inode *inode); |
1591 | 1591 | extern void bdput(struct block_device *); |
1592 | 1592 | extern struct block_device *open_by_devnum(dev_t, unsigned); |
1593 | -extern const struct address_space_operations def_blk_aops; | |
1594 | 1593 | #else |
1595 | 1594 | static inline void bd_forget(struct inode *inode) {} |
1596 | 1595 | #endif |