aboutsummaryrefslogtreecommitdiff
path: root/fs/pnode.c
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2016-10-26 15:29:51 -0700
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:32:14 +0200
commitbb843f06966b3bc37cdafb33ee71ee74cc8567c9 (patch)
tree657576c5984d5c058ff6974f75ef48bb4b396368 /fs/pnode.c
parent6f074d99806b7e079fcc62ed79f83646ae621b82 (diff)
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 7cde7b666..5a75fcdf6 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -401,3 +401,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;
+}