LWN.net Logo

[PATCH] fs: Restore files_lock and set_fs_root exports

From:  "Paul E. McKenney" <paulmck-AT-us.ibm.com>
To:  akpm-AT-osdl.org
Subject:  [PATCH] fs: Restore files_lock and set_fs_root exports
Date:  Thu, 6 Jan 2005 11:05:38 -0800
Cc:  linux-kernel-AT-vger.kernel.org, jtk-AT-us.ibm.com, wtaber-AT-us.ibm.com, pbadari-AT-us.ibm.com, markv-AT-us.ibm.com, viro-AT-parcelfarce.linux.theplanet.co.uk, greghk-AT-us.ibm.com
Archive-link:  Article, Thread

Hello, Andrew,

Some export-removal work causes breakage for an out-of-tree filesystem.
Could you please apply the attached patch to restore the exports for
files_lock and set_fs_root?

						Thanx, Paul

----- End forwarded message -----

diff -urpN -X ../dontdiff linux-2.5/fs/file_table.c
linux-2.5-MVFS/fs/file_table.c
--- linux-2.5/fs/file_table.c	Wed Jan  5 13:54:21 2005
+++ linux-2.5-MVFS/fs/file_table.c	Wed Jan  5 17:12:53 2005
@@ -26,6 +26,7 @@ EXPORT_SYMBOL(files_stat); /* Needed by 
 
 /* public. Not pretty! */
 spinlock_t __cacheline_aligned_in_smp files_lock = SPIN_LOCK_UNLOCKED;
+EXPORT_SYMBOL(files_lock);
 
 static spinlock_t filp_count_lock = SPIN_LOCK_UNLOCKED;
 
diff -urpN -X ../dontdiff linux-2.5/fs/namespace.c
linux-2.5-MVFS/fs/namespace.c
--- linux-2.5/fs/namespace.c	Wed Jan  5 13:54:22 2005
+++ linux-2.5-MVFS/fs/namespace.c	Wed Jan  5 17:12:08 2005
@@ -1207,6 +1207,7 @@ void set_fs_root(struct fs_struct *fs, s
 		mntput(old_rootmnt);
 	}
 }
+EXPORT_SYMBOL(set_fs_root);
 
 /*
  * Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values.

----- End forwarded message -----


(Log in to post comments)

Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds