VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Al Viro <viro@zeniv.linux.org.uk> 2018-12-20 15:04:50 -0500 committer: Al Viro <viro@zeniv.linux.org.uk> 2019-01-30 17:44:26 -0500 commit: c9ce29ed795fae86e594844857fad1b0d3be85f4 parent: 132e460848f4261b8a6b9c28fae52bf9e02b52fd
Commit Summary:
vfs_get_tree(): evict the call of security_sb_kern_mount()
Diffstat:
1 file changed, 8 insertions, 0 deletions
diff --git a/fs/fs_context.c b/fs/fs_context.c
index 4294091b689d..857cd46a687b 100644
--- a/fs/fs_context.c
+++ b/fs/fs_context.c
@@ -90,6 +90,14 @@ struct fs_context *fs_context_for_mount(struct file_system_type *fs_type,
 }
 EXPORT_SYMBOL(fs_context_for_mount);
 
+void fc_drop_locked(struct fs_context *fc)
+{
+	struct super_block *sb = fc->root->d_sb;
+	dput(fc->root);
+	fc->root = NULL;
+	deactivate_locked_super(sb);
+}
+
 static void legacy_fs_context_free(struct fs_context *fc);
 /**
  * put_fs_context - Dispose of a superblock configuration context.