aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4recover.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-11-14 10:22:12 -0500
committerJ. Bruce Fields <bfields@redhat.com>2012-11-15 07:40:50 -0500
commit12760c6685624d65f8de078485c21b6a08e83409 (patch)
tree827bdc4ae8e65968a72b018719c1658f49f06b61 /fs/nfsd/nfs4recover.c
parent3320fef19b542b8df9606bd8e63990dc2a3fb330 (diff)
nfsd: pass nfsd_net instead of net to grace enders
Passing net context looks as overkill. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4recover.c')
-rw-r--r--fs/nfsd/nfs4recover.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c
index 376692ab1b3b..b657b622bf5d 100644
--- a/fs/nfsd/nfs4recover.c
+++ b/fs/nfsd/nfs4recover.c
@@ -58,7 +58,7 @@ struct nfsd4_client_tracking_ops {
58 void (*create)(struct nfs4_client *); 58 void (*create)(struct nfs4_client *);
59 void (*remove)(struct nfs4_client *); 59 void (*remove)(struct nfs4_client *);
60 int (*check)(struct nfs4_client *); 60 int (*check)(struct nfs4_client *);
61 void (*grace_done)(struct net *, time_t); 61 void (*grace_done)(struct nfsd_net *, time_t);
62}; 62};
63 63
64/* Globals */ 64/* Globals */
@@ -391,10 +391,9 @@ purge_old(struct dentry *parent, struct dentry *child, struct nfsd_net *nn)
391} 391}
392 392
393static void 393static void
394nfsd4_recdir_purge_old(struct net *net, time_t boot_time) 394nfsd4_recdir_purge_old(struct nfsd_net *nn, time_t boot_time)
395{ 395{
396 int status; 396 int status;
397 struct nfsd_net *nn = net_generic(net, nfsd_net_id);
398 397
399 in_grace = false; 398 in_grace = false;
400 if (!rec_file) 399 if (!rec_file)
@@ -1017,11 +1016,10 @@ nfsd4_cld_check(struct nfs4_client *clp)
1017} 1016}
1018 1017
1019static void 1018static void
1020nfsd4_cld_grace_done(struct net *net, time_t boot_time) 1019nfsd4_cld_grace_done(struct nfsd_net *nn, time_t boot_time)
1021{ 1020{
1022 int ret; 1021 int ret;
1023 struct cld_upcall *cup; 1022 struct cld_upcall *cup;
1024 struct nfsd_net *nn = net_generic(net, nfsd_net_id);
1025 struct cld_net *cn = nn->cld_net; 1023 struct cld_net *cn = nn->cld_net;
1026 1024
1027 cup = alloc_cld_upcall(cn); 1025 cup = alloc_cld_upcall(cn);
@@ -1241,7 +1239,7 @@ nfsd4_umh_cltrack_check(struct nfs4_client *clp)
1241} 1239}
1242 1240
1243static void 1241static void
1244nfsd4_umh_cltrack_grace_done(struct net __attribute__((unused)) *net, 1242nfsd4_umh_cltrack_grace_done(struct nfsd_net __attribute__((unused)) *nn,
1245 time_t boot_time) 1243 time_t boot_time)
1246{ 1244{
1247 char *legacy; 1245 char *legacy;
@@ -1343,10 +1341,10 @@ nfsd4_client_record_check(struct nfs4_client *clp)
1343} 1341}
1344 1342
1345void 1343void
1346nfsd4_record_grace_done(struct net *net, time_t boot_time) 1344nfsd4_record_grace_done(struct nfsd_net *nn, time_t boot_time)
1347{ 1345{
1348 if (client_tracking_ops) 1346 if (client_tracking_ops)
1349 client_tracking_ops->grace_done(net, boot_time); 1347 client_tracking_ops->grace_done(nn, boot_time);
1350} 1348}
1351 1349
1352static int 1350static int