diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-05-27 22:11:46 +0900 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-06-10 23:41:12 +0900 |
commit | a53b4751ae92adb372017222887f3ec625cba60b (patch) | |
tree | 454c0876bb532ee44ad07485e6d40c60e157ca34 /fs/nilfs2/btnode.c | |
parent | 30c25be71fcbd87fd33518045cc014e69bff3d6f (diff) | |
download | op-kernel-dev-a53b4751ae92adb372017222887f3ec625cba60b.zip op-kernel-dev-a53b4751ae92adb372017222887f3ec625cba60b.tar.gz |
nilfs2: use device's backing_dev_info for btree node caches
Previously, default_backing_dev_info was used for the mapping of btree
node caches. This uses device dependent backing_dev_info to allow
detailed control of the device for the btree node pages.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/btnode.c')
-rw-r--r-- | fs/nilfs2/btnode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nilfs2/btnode.c b/fs/nilfs2/btnode.c index 4cc07b2..0e01957 100644 --- a/fs/nilfs2/btnode.c +++ b/fs/nilfs2/btnode.c @@ -48,13 +48,14 @@ void nilfs_btnode_cache_init_once(struct address_space *btnc) static struct address_space_operations def_btnode_aops; -void nilfs_btnode_cache_init(struct address_space *btnc) +void nilfs_btnode_cache_init(struct address_space *btnc, + struct backing_dev_info *bdi) { btnc->host = NULL; /* can safely set to host inode ? */ btnc->flags = 0; mapping_set_gfp_mask(btnc, GFP_NOFS); btnc->assoc_mapping = NULL; - btnc->backing_dev_info = &default_backing_dev_info; + btnc->backing_dev_info = bdi; btnc->a_ops = &def_btnode_aops; } |