summaryrefslogtreecommitdiff
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2016-10-26 15:29:51 -0700
committerDaniel Rosenberg <drosen@google.com>2017-01-26 15:53:30 -0800
commit6b42d02561d335017cd6066f506514f32962fa2d (patch)
tree8ebbc3f287bc9ea238c40db8fa5819a759e6af11 /fs/pnode.c
parentf32ddec923dd91d3c3c3cbb5fed48b4d36aac99c (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 6367e1e435c6..4e2d78ec053a 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -450,3 +450,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;
+}