Skip to contentSkip to conversation

Lustre VFS patches for 2.6

PATCH In review Oleg Drokin 2 participants 2 messages Jul 7, 2004

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 5/9 Lustre VFS patches for 2.6

Exports

 fs/jbd/journal.c   |    1 +
 fs/super.c         |    2 ++
 include/linux/fs.h |    1 +
 include/linux/mm.h |    3 +++
 mm/truncate.c      |    4 +++-
 5 files changed, 10 insertions(+), 1 deletion(-)
fs/jbd/journal.c +1 -0
Index: linux-2.6.6/fs/jbd/journal.c
===================================================================
@@ -71,6 +71,7 @@
 EXPORT_SYMBOL(journal_errno);
 EXPORT_SYMBOL(journal_ack_err);
 EXPORT_SYMBOL(journal_clear_err);
+EXPORT_SYMBOL(log_start_commit);
 EXPORT_SYMBOL(log_wait_commit);
 EXPORT_SYMBOL(journal_start_commit);
 EXPORT_SYMBOL(journal_wipe);
fs/super.c +2 -0
Index: linux-2.6.6/fs/super.c
===================================================================
@@ -788,6 +788,8 @@
 	return (struct vfsmount *)sb;
 }
 
+EXPORT_SYMBOL(do_kern_mount);
+
 struct vfsmount *kern_mount(struct file_system_type *type)
 {
 	return do_kern_mount(type->name, 0, type->name, NULL);
include/linux/mm.h +3 -0
Index: linux-2.6.6/include/linux/mm.h
===================================================================
@@ -589,6 +589,9 @@
 	return 0;
 }
 
+/* truncate.c */
+extern void truncate_complete_page(struct address_space *mapping,struct page *);
+
 /* filemap.c */
 extern unsigned long page_unuse(struct page *);
 extern void truncate_inode_pages(struct address_space *, loff_t);
include/linux/fs.h +1 -0
Index: linux-2.6.6/include/linux/fs.h
===================================================================
@@ -1137,6 +1137,7 @@
 extern int unregister_filesystem(struct file_system_type *);
 extern struct vfsmount *kern_mount(struct file_system_type *);
 extern int may_umount(struct vfsmount *);
+struct vfsmount *do_kern_mount(const char *type, int flags, const char *name, void *data);
 extern long do_mount(char *, char *, char *, unsigned long, void *);
 
 extern int vfs_statfs(struct super_block *, struct kstatfs *);
mm/truncate.c +3 -1
Index: linux-2.6.6/mm/truncate.c
===================================================================
@@ -42,7 +42,7 @@
  * its lock, b) when a concurrent invalidate_inode_pages got there first and
  * c) when tmpfs swizzles a page between a tmpfs inode and swapper_space.
  */
-static void
+void
 truncate_complete_page(struct address_space *mapping, struct page *page)
 {
 	if (page->mapping != mapping)
@@ -58,6 +58,8 @@
 	page_cache_release(page);	/* pagecache ref */
 }
 
+EXPORT_SYMBOL(truncate_complete_page);
+
 /*
  * This is for invalidate_inode_pages().  That function can be called at
  * any time, and is not supposed to throw away dirty pages.  But pages can
#1 lore raw
Quoted 8 lines · Oleg Drokin

Exports

 fs/jbd/journal.c   |    1 +
 fs/super.c         |    2 ++
 include/linux/fs.h |    1 +
 include/linux/mm.h |    3 +++
 mm/truncate.c      |    4 +++-
 5 files changed, 10 insertions(+), 1 deletion(-)

truncate_complete is still the wrong level of API to export, see the last round of experts. Maybe you should also talk to the reiser4 folks, they want something similar.