[RFC 5/5] save mnt info in do_loopback.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is overwritten by a new mnt structure, so save it.

---
 fs/namespace.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fs/namespace.c b/fs/namespace.c
index 0d8a53b..1a67f0d 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1741,6 +1741,9 @@ static int do_loopback(struct path *path, char *old_name,
 		release_mounts(&umount_list);
 	}
 
+	mnt->dcache_size = path->mnt->dcache_size;
+	path->mnt = mnt;
+
 out:
 	up_write(&namespace_sem);
 	path_put(&old_path);
-- 
1.7.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux