diff options
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 4cc07b2c30e0..0e01957ce566 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) | |||
48 | 48 | ||
49 | static struct address_space_operations def_btnode_aops; | 49 | static struct address_space_operations def_btnode_aops; |
50 | 50 | ||
51 | void nilfs_btnode_cache_init(struct address_space *btnc) | 51 | void nilfs_btnode_cache_init(struct address_space *btnc, |
52 | struct backing_dev_info *bdi) | ||
52 | { | 53 | { |
53 | btnc->host = NULL; /* can safely set to host inode ? */ | 54 | btnc->host = NULL; /* can safely set to host inode ? */ |
54 | btnc->flags = 0; | 55 | btnc->flags = 0; |
55 | mapping_set_gfp_mask(btnc, GFP_NOFS); | 56 | mapping_set_gfp_mask(btnc, GFP_NOFS); |
56 | btnc->assoc_mapping = NULL; | 57 | btnc->assoc_mapping = NULL; |
57 | btnc->backing_dev_info = &default_backing_dev_info; | 58 | btnc->backing_dev_info = bdi; |
58 | btnc->a_ops = &def_btnode_aops; | 59 | btnc->a_ops = &def_btnode_aops; |
59 | } | 60 | } |
60 | 61 | ||