Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294359
b: refs/heads/master
c: 021c68d
h: refs/heads/master
i:
  294357: 1902827
  294355: 8f03560
  294351: 42aae3e
v: v3
  • Loading branch information
Stanislav Kinsbursky authored and Trond Myklebust committed Jan 31, 2012
1 parent 789c826 commit 6bf579a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 38b0da7522c086f1dcdeda39a2d1849c6a31f518
refs/heads/master: 021c68dec8c04c44cb82eb5bbee77028fafe22e8
14 changes: 13 additions & 1 deletion trunk/net/sunrpc/rpc_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#include <linux/workqueue.h>
#include <linux/sunrpc/rpc_pipe_fs.h>
#include <linux/sunrpc/cache.h>
#include <linux/nsproxy.h>

#include "netns.h"

static struct vfsmount *rpc_mnt __read_mostly;
static int rpc_mount_count;
Expand Down Expand Up @@ -1011,6 +1014,7 @@ rpc_fill_super(struct super_block *sb, void *data, int silent)
}
if (rpc_populate(root, files, RPCAUTH_lockd, RPCAUTH_RootEOF, NULL))
return -ENOMEM;
sb->s_fs_info = get_net(net);
return 0;
}

Expand All @@ -1021,11 +1025,19 @@ rpc_mount(struct file_system_type *fs_type,
return mount_ns(fs_type, flags, current->nsproxy->net_ns, rpc_fill_super);
}

void rpc_kill_sb(struct super_block *sb)
{
struct net *net = sb->s_fs_info;

put_net(net);
kill_litter_super(sb);
}

static struct file_system_type rpc_pipe_fs_type = {
.owner = THIS_MODULE,
.name = "rpc_pipefs",
.mount = rpc_mount,
.kill_sb = kill_litter_super,
.kill_sb = rpc_kill_sb,
};

static void
Expand Down

0 comments on commit 6bf579a

Please sign in to comment.