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 /drivers/char/raw.c | |
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 'drivers/char/raw.c')
-rw-r--r-- | drivers/char/raw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/raw.c b/drivers/char/raw.c index a24891b97547..6e29bf2db536 100644 --- a/drivers/char/raw.c +++ b/drivers/char/raw.c | |||
@@ -104,11 +104,9 @@ static int raw_release(struct inode *inode, struct file *filp) | |||
104 | 104 | ||
105 | mutex_lock(&raw_mutex); | 105 | mutex_lock(&raw_mutex); |
106 | bdev = raw_devices[minor].binding; | 106 | bdev = raw_devices[minor].binding; |
107 | if (--raw_devices[minor].inuse == 0) { | 107 | if (--raw_devices[minor].inuse == 0) |
108 | /* Here inode->i_mapping == bdev->bd_inode->i_mapping */ | 108 | /* Here inode->i_mapping == bdev->bd_inode->i_mapping */ |
109 | inode->i_mapping = &inode->i_data; | 109 | inode->i_mapping = &inode->i_data; |
110 | inode->i_mapping->backing_dev_info = &default_backing_dev_info; | ||
111 | } | ||
112 | mutex_unlock(&raw_mutex); | 110 | mutex_unlock(&raw_mutex); |
113 | 111 | ||
114 | blkdev_put(bdev, filp->f_mode | FMODE_EXCL); | 112 | blkdev_put(bdev, filp->f_mode | FMODE_EXCL); |