Modular filesystem using drop_inode would need inode_lock
From: Luck, Tony
Date: Fri Jul 09 2004 - 16:45:05 EST
This is mostly a logical inconsistency at the moment (since the
only filesystem that has a "drop_inode" function defined in its
super_operations is hugetlbfs, and it is unlikely to move out of
the kernel and into a module). But the ->drop_inode() function
is called with inode_lock held, and it is expected to drop the
lock ... which would be impossible for a module as the lock is
not exported.
Signed-off-by: <tony.luck@xxxxxxxxx>
--- old/fs/inode.c 2004-07-09 14:05:16.986225857 -0700
+++ new/fs/inode.c 2004-07-09 14:05:42.198492986 -0700
@@ -81,6 +81,7 @@
* the i_state of an inode while it is in use..
*/
spinlock_t inode_lock = SPIN_LOCK_UNLOCKED;
+EXPORT_SYMBOL(inode_lock);
/*
* iprune_sem provides exclusion between the kswapd or
try_to_free_pages
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/