aboutsummaryrefslogtreecommitdiff
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorGravatar Amir Goldstein <amir73il@gmail.com> 2023-09-08 16:29:00 +0300
committerGravatar Christian Brauner <brauner@kernel.org> 2023-09-11 15:05:52 +0200
commitddf9e2ff67a910acde1d000e76b7e31267599539 (patch)
treecb6869864fcc491ed051711395a822ef6338dc57 /fs/namespace.c
parentfs: rename __mnt_{want,drop}_write*() helpers (diff)
downloadlinux-ddf9e2ff67a910acde1d000e76b7e31267599539.tar.gz
linux-ddf9e2ff67a910acde1d000e76b7e31267599539.tar.bz2
linux-ddf9e2ff67a910acde1d000e76b7e31267599539.zip
fs: export mnt_{get,put}_write_access() to modules
Overlayfs is going to use those to get write access on the upper mount during entire copy up without taking freeze protection on upper sb for the entire copy up. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Message-Id: <20230908132900.2983519-3-amir73il@gmail.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 3fe7c0484e6a..9e0ea73f2ff9 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -386,6 +386,7 @@ int mnt_get_write_access(struct vfsmount *m)
return ret;
}
+EXPORT_SYMBOL_GPL(mnt_get_write_access);
/**
* mnt_want_write - get write access to a mount
@@ -466,6 +467,7 @@ void mnt_put_write_access(struct vfsmount *mnt)
mnt_dec_writers(real_mount(mnt));
preempt_enable();
}
+EXPORT_SYMBOL_GPL(mnt_put_write_access);
/**
* mnt_drop_write - give up write access to a mount