Skip to contentSkip to conversation

fs_pin: Export functions for specific filesystem

PATCH New Kinglong Mee 1 participant 1 message Jun 2, 2015

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

PATCH v3 2/5 fs_pin: Export functions for specific filesystem

Exports functions for others who want pin to vfsmount, eg, nfsd's export cache.

v3: same as v1.

---
 fs/fs_pin.c | 3 +++
 1 file changed, 3 insertions(+)
fs/fs_pin.c +3 -0
index 611b540..553e8b1 100644
@@ -17,6 +17,7 @@ void pin_remove(struct fs_pin *pin)
 	wake_up_locked(&pin->wait);
 	spin_unlock_irq(&pin->wait.lock);
 }
+EXPORT_SYMBOL(pin_remove);
 
 void pin_insert_group(struct fs_pin *pin, struct vfsmount *m, struct hlist_head *p)
 {
@@ -26,11 +27,13 @@ void pin_insert_group(struct fs_pin *pin, struct vfsmount *m, struct hlist_head
 	hlist_add_head(&pin->m_list, &real_mount(m)->mnt_pins);
 	spin_unlock(&pin_lock);
 }
+EXPORT_SYMBOL(pin_insert_group);
 
 void pin_insert(struct fs_pin *pin, struct vfsmount *m)
 {
 	pin_insert_group(pin, m, &m->mnt_sb->s_pins);
 }
+EXPORT_SYMBOL(pin_insert);
 
 void pin_kill(struct fs_pin *p)
 {
Signature · 1 line
2.4.2