aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/page.c
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2011-04-05 17:51:48 -0400
committerJens Axboe <jaxboe@fusionio.com>2011-04-05 17:51:48 -0400
commit7dcda1c96d7c643101d4a05579ef4512a4baa7ef (patch)
tree62051d63c47a3df7381cdc294815e79da5ebdc93 /fs/nilfs2/page.c
parent929e27252e8ca69363f81f26af5eaba62cb4c572 (diff)
fs: export empty_aops
With the ->sync_page() hook gone, we have a few users that add their own static address_space_operations without any functions defined. fs/inode.c already has an empty_aops that it uses for init purposes. Lets export that and use it in the places where an otherwise empty aops was defined. Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'fs/nilfs2/page.c')
-rw-r--r--fs/nilfs2/page.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nilfs2/page.c b/fs/nilfs2/page.c
index 9d2dc6b4348e..1168059c7efd 100644
--- a/fs/nilfs2/page.c
+++ b/fs/nilfs2/page.c
@@ -495,8 +495,6 @@ unsigned nilfs_page_count_clean_buffers(struct page *page,
495void nilfs_mapping_init(struct address_space *mapping, 495void 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
500 mapping->host = NULL; 498 mapping->host = NULL;
501 mapping->flags = 0; 499 mapping->flags = 0;
502 mapping_set_gfp_mask(mapping, GFP_NOFS); 500 mapping_set_gfp_mask(mapping, GFP_NOFS);