diff options
author | Christoph Hellwig <hch@lst.de> | 2015-01-14 04:42:37 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-01-20 16:03:05 -0500 |
commit | b83ae6d421435c6204150300f1c25bfbd39cd62b (patch) | |
tree | 99c6b661ab7de05c2fd49aa62624d2d6bf8abc69 /mm | |
parent | de1414a654e66b81b5348dbc5259ecf2fb61655e (diff) |
fs: remove mapping->backing_dev_info
Now that we never use the backing_dev_info pointer in struct address_space
we can simply remove it and save 4 to 8 bytes in every inode.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Reviewed-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/backing-dev.c | 1 | ||||
-rw-r--r-- | mm/shmem.c | 1 | ||||
-rw-r--r-- | mm/swap_state.c | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 16c68958aeda..52e0c7652448 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c | |||
@@ -24,7 +24,6 @@ struct backing_dev_info noop_backing_dev_info = { | |||
24 | .name = "noop", | 24 | .name = "noop", |
25 | .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK, | 25 | .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK, |
26 | }; | 26 | }; |
27 | EXPORT_SYMBOL_GPL(noop_backing_dev_info); | ||
28 | 27 | ||
29 | static struct class *bdi_class; | 28 | static struct class *bdi_class; |
30 | 29 | ||
diff --git a/mm/shmem.c b/mm/shmem.c index 1b77eaf589fd..4c61d3d5bfb4 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1410,7 +1410,6 @@ static struct inode *shmem_get_inode(struct super_block *sb, const struct inode | |||
1410 | inode->i_ino = get_next_ino(); | 1410 | inode->i_ino = get_next_ino(); |
1411 | inode_init_owner(inode, dir, mode); | 1411 | inode_init_owner(inode, dir, mode); |
1412 | inode->i_blocks = 0; | 1412 | inode->i_blocks = 0; |
1413 | inode->i_mapping->backing_dev_info = &noop_backing_dev_info; | ||
1414 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 1413 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
1415 | inode->i_generation = get_seconds(); | 1414 | inode->i_generation = get_seconds(); |
1416 | info = SHMEM_I(inode); | 1415 | info = SHMEM_I(inode); |
diff --git a/mm/swap_state.c b/mm/swap_state.c index 1c137b69ecde..405923f77334 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c | |||
@@ -37,7 +37,6 @@ struct address_space swapper_spaces[MAX_SWAPFILES] = { | |||
37 | .page_tree = RADIX_TREE_INIT(GFP_ATOMIC|__GFP_NOWARN), | 37 | .page_tree = RADIX_TREE_INIT(GFP_ATOMIC|__GFP_NOWARN), |
38 | .i_mmap_writable = ATOMIC_INIT(0), | 38 | .i_mmap_writable = ATOMIC_INIT(0), |
39 | .a_ops = &swap_aops, | 39 | .a_ops = &swap_aops, |
40 | .backing_dev_info = &noop_backing_dev_info, | ||
41 | } | 40 | } |
42 | }; | 41 | }; |
43 | 42 | ||