summaryrefslogtreecommitdiff
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2011-04-06 01:51:48 +0400
committerJens Axboe <jaxboe@fusionio.com>2011-04-06 01:51:48 +0400
commit7dcda1c96d7c643101d4a05579ef4512a4baa7ef (patch)
tree62051d63c47a3df7381cdc294815e79da5ebdc93 /include/linux/fs.h
parent929e27252e8ca69363f81f26af5eaba62cb4c572 (diff)
downloadlinux-7dcda1c96d7c643101d4a05579ef4512a4baa7ef.tar.xz
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 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 52f283c1edb2..1b95af37e3b3 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -613,6 +613,8 @@ struct address_space_operations {
int (*error_remove_page)(struct address_space *, struct page *);
};
+extern const struct address_space_operations empty_aops;
+
/*
* pagecache_write_begin/pagecache_write_end must be used by general code
* to write into the pagecache.