VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Eric W. Biederman <ebiederm@xmission.com> 2016-09-28 00:27:17 -0500 committer: Eric W. Biederman <ebiederm@xmission.com> 2016-09-30 12:46:48 -0500 commit: d29216842a85c7970c536108e093963f02714498 parent: 2ed6afdee798658fe3c33b50c4a79d1bde45f1d8
Commit Summary:
mnt: Add a per mount namespace limit on the number of mounts
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/pnode.c b/fs/pnode.c
index 99899705b105..234a9ac49958 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -259,7 +259,7 @@ static int propagate_one(struct mount *m)
 		read_sequnlock_excl(&mount_lock);
 	}
 	hlist_add_head(&child->mnt_hash, list);
-	return 0;
+	return count_mounts(m->mnt_ns, child);
 }
 
 /*