summaryrefslogtreecommitdiff
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2016-10-26 15:29:51 -0700
committerAmit Pundir <amit.pundir@linaro.org>2017-02-03 14:16:53 +0530
commitdf3ebc9cd524a9ff3fb070803b5271f1127d0610 (patch)
tree46b37b632d437ab19d169fe965c239ee4b40c8a5 /fs/pnode.c
parent3f97a7c3160a81f8589657820bbb376bace1cf87 (diff)
ANDROID: mnt: Add filesystem private data to mount points
This starts to add private data associated directly to mount points. The intent is to give filesystems a sense of where they have come from, as a means of letting a filesystem take different actions based on this information. Change-Id: Ie769d7b3bb2f5972afe05c1bf16cf88c91647ab2 Signed-off-by: Daniel Rosenberg <drosen@google.com>
Diffstat (limited to 'fs/pnode.c')
-rw-r--r--fs/pnode.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/pnode.c b/fs/pnode.c
index 99899705b105..69b86b61af35 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -458,3 +458,17 @@ int propagate_umount(struct list_head *list)
__propagate_umount(mnt);
return 0;
}
+
+int propagate_remount(struct mount *mnt) {
+ struct mount *m;
+ struct super_block *sb = mnt->mnt.mnt_sb;
+ int ret = 0;
+
+ if (sb->s_op->copy_mnt_data) {
+ for (m = first_slave(mnt); m->mnt_slave.next != &mnt->mnt_slave_list; m = next_slave(m)) {
+ sb->s_op->copy_mnt_data(m->mnt.data, mnt->mnt.data);
+ }
+ }
+
+ return ret;
+}