diff options
author | Jan Kara <jack@suse.cz> | 2017-02-02 09:56:50 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-02-02 10:20:48 -0500 |
commit | dc3b17cc8bf21307c7e076e7c778d5db756f7871 (patch) | |
tree | 63a1e6c9b6c70579e9cdabf60147484c0b2f0add /fs | |
parent | f44f1ab5a2dcd4e16eab850fd08e40ff2d0c28d4 (diff) |
block: Use pointer to backing_dev_info from request_queue
We will want to have struct backing_dev_info allocated separately from
struct request_queue. As the first step add pointer to backing_dev_info
to request_queue and convert all users touching it. No functional
changes in this patch.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/gfs2/ops_fstype.c | 2 | ||||
-rw-r--r-- | fs/nilfs2/super.c | 2 | ||||
-rw-r--r-- | fs/super.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index a34308df927f..c0e5b9a8bf5f 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c | |||
@@ -1226,7 +1226,7 @@ static int set_gfs2_super(struct super_block *s, void *data) | |||
1226 | * We set the bdi here to the queue backing, file systems can | 1226 | * We set the bdi here to the queue backing, file systems can |
1227 | * overwrite this in ->fill_super() | 1227 | * overwrite this in ->fill_super() |
1228 | */ | 1228 | */ |
1229 | s->s_bdi = &bdev_get_queue(s->s_bdev)->backing_dev_info; | 1229 | s->s_bdi = bdev_get_queue(s->s_bdev)->backing_dev_info; |
1230 | return 0; | 1230 | return 0; |
1231 | } | 1231 | } |
1232 | 1232 | ||
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index 12eeae62a2b1..e1872f36147f 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c | |||
@@ -1068,7 +1068,7 @@ nilfs_fill_super(struct super_block *sb, void *data, int silent) | |||
1068 | sb->s_time_gran = 1; | 1068 | sb->s_time_gran = 1; |
1069 | sb->s_max_links = NILFS_LINK_MAX; | 1069 | sb->s_max_links = NILFS_LINK_MAX; |
1070 | 1070 | ||
1071 | sb->s_bdi = &bdev_get_queue(sb->s_bdev)->backing_dev_info; | 1071 | sb->s_bdi = bdev_get_queue(sb->s_bdev)->backing_dev_info; |
1072 | 1072 | ||
1073 | err = load_nilfs(nilfs, sb); | 1073 | err = load_nilfs(nilfs, sb); |
1074 | if (err) | 1074 | if (err) |
diff --git a/fs/super.c b/fs/super.c index 1709ed029a2c..ea662b0e5e78 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -1047,7 +1047,7 @@ static int set_bdev_super(struct super_block *s, void *data) | |||
1047 | * We set the bdi here to the queue backing, file systems can | 1047 | * We set the bdi here to the queue backing, file systems can |
1048 | * overwrite this in ->fill_super() | 1048 | * overwrite this in ->fill_super() |
1049 | */ | 1049 | */ |
1050 | s->s_bdi = &bdev_get_queue(s->s_bdev)->backing_dev_info; | 1050 | s->s_bdi = bdev_get_queue(s->s_bdev)->backing_dev_info; |
1051 | return 0; | 1051 | return 0; |
1052 | } | 1052 | } |
1053 | 1053 | ||