Skip to content

fs: export __mnt_{want,drop}_write to modules

Amir Goldstein linux-unionfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest0 of 4 patches 4 repliesIn review

Patches in v3 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] fs: export __mnt_{want,drop}_write to modules

overlayfs is going to use those to grab a write reference on the upper fs during copy up.

---

Christian,

This patch is needed for the ovl_want_write() changes [1], which I forgot to CC you on.

Please ACK if you approve.

Thanks,
Amir.

[1] https://lore.kernel.org/linux-unionfs/[email protected]/

 fs/namespace.c | 2 ++
 1 file changed, 2 insertions(+)
fs/namespace.c +2 -0
index e157efc54023..370328b204f1 100644
@@ -386,6 +386,7 @@ int __mnt_want_write(struct vfsmount *m)
 
 	return ret;
 }
+EXPORT_SYMBOL_GPL(__mnt_want_write);
 
 /**
  * mnt_want_write - get write access to a mount
@@ -466,6 +467,7 @@ void __mnt_drop_write(struct vfsmount *mnt)
 	mnt_dec_writers(real_mount(mnt));
 	preempt_enable();
 }
+EXPORT_SYMBOL_GPL(__mnt_drop_write);
 
 /**
  * mnt_drop_write - give up write access to a mount
Signature · 1 line
2.34.1