LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [2.6 patch] make struct def_blk_aops static
@ 2008-02-17  8:16 Adrian Bunk
  2008-02-18 12:51 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-02-17  8:16 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel

This patch makes the needlessly global struct def_blk_aops static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---

 fs/block_dev.c     |    4 +++-
 include/linux/fs.h |    1 -
 2 files changed, 3 insertions(+), 2 deletions(-)

b6975210aef8e29f8d372ea25e4fd6d1d4749e5d diff --git a/fs/block_dev.c b/fs/block_dev.c
index 67fe72c..8335f0e 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -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,
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 98ffb6e..b84b848 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);
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6 patch] make struct def_blk_aops static
  2008-02-17  8:16 [2.6 patch] make struct def_blk_aops static Adrian Bunk
@ 2008-02-18 12:51 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2008-02-18 12:51 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

On Sun, Feb 17 2008, Adrian Bunk wrote:
> This patch makes the needlessly global struct def_blk_aops static.

Applied

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-18 12:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-17  8:16 [2.6 patch] make struct def_blk_aops static Adrian Bunk
2008-02-18 12:51 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).