diff options
-rw-r--r-- | fs/nilfs2/page.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nilfs2/page.c b/fs/nilfs2/page.c index 4d2a1ee0eb47..9d2dc6b4348e 100644 --- a/fs/nilfs2/page.c +++ b/fs/nilfs2/page.c | |||
@@ -495,12 +495,14 @@ unsigned nilfs_page_count_clean_buffers(struct page *page, | |||
495 | void nilfs_mapping_init(struct address_space *mapping, | 495 | void nilfs_mapping_init(struct address_space *mapping, |
496 | struct backing_dev_info *bdi) | 496 | struct backing_dev_info *bdi) |
497 | { | 497 | { |
498 | static const struct address_space_operations empty_aops; | ||
499 | |||
498 | mapping->host = NULL; | 500 | mapping->host = NULL; |
499 | mapping->flags = 0; | 501 | mapping->flags = 0; |
500 | mapping_set_gfp_mask(mapping, GFP_NOFS); | 502 | mapping_set_gfp_mask(mapping, GFP_NOFS); |
501 | mapping->assoc_mapping = NULL; | 503 | mapping->assoc_mapping = NULL; |
502 | mapping->backing_dev_info = bdi; | 504 | mapping->backing_dev_info = bdi; |
503 | mapping->a_ops = NULL; | 505 | mapping->a_ops = &empty_aops; |
504 | } | 506 | } |
505 | 507 | ||
506 | /* | 508 | /* |