* [PATCH] socket: add THIS_MODULE to sock_fs_type.
@ 2017-11-10 12:47 Tonghao Zhang
2017-11-10 13:40 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Tonghao Zhang @ 2017-11-10 12:47 UTC (permalink / raw)
To: netdev; +Cc: Tonghao Zhang
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] socket: add THIS_MODULE to sock_fs_type.
2017-11-10 12:47 [PATCH] socket: add THIS_MODULE to sock_fs_type Tonghao Zhang
@ 2017-11-10 13:40 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-11-10 13:40 UTC (permalink / raw)
To: xiangxia.m.yue; +Cc: netdev, zhangtonghao
From: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Date: Fri, 10 Nov 2017 04:47:58 -0800
> As important member of file_system_type, we set
> ->owner for sock_fs_type.
>
> Signed-off-by: Tonghao Zhang <zhangtonghao@didichuxing.com>
The value of THIS_MODULE is always NULL in this file.
Sorry, I'm not applying this.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-10 13:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-10 12:47 [PATCH] socket: add THIS_MODULE to sock_fs_type Tonghao Zhang
2017-11-10 13:40 ` David Miller
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).