netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tonghao Zhang <xiangxia.m.yue@gmail.com>
To: netdev@vger.kernel.org
Cc: Tonghao Zhang <zhangtonghao@didichuxing.com>
Subject: [PATCH] socket: add THIS_MODULE to sock_fs_type.
Date: Fri, 10 Nov 2017 04:47:58 -0800	[thread overview]
Message-ID: <1510318078-31677-1-git-send-email-zhangtonghao@didichuxing.com> (raw)

As important member of file_system_type, we set
->owner for sock_fs_type.

Signed-off-by: Tonghao Zhang <zhangtonghao@didichuxing.com>
---
 net/socket.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/socket.c b/net/socket.c
index c729625..b085f14 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -370,6 +370,7 @@ static struct dentry *sockfs_mount(struct file_system_type *fs_type,
 static struct vfsmount *sock_mnt __read_mostly;
 
 static struct file_system_type sock_fs_type = {
+	.owner =	THIS_MODULE,
 	.name =		"sockfs",
 	.mount =	sockfs_mount,
 	.kill_sb =	kill_anon_super,
-- 
1.8.3.1

             reply	other threads:[~2017-11-10 12:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-10 12:47 Tonghao Zhang [this message]
2017-11-10 13:40 ` [PATCH] socket: add THIS_MODULE to sock_fs_type David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1510318078-31677-1-git-send-email-zhangtonghao@didichuxing.com \
    --to=xiangxia.m.yue@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=zhangtonghao@didichuxing.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).