diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-11-14 10:22:12 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-11-15 07:40:50 -0500 |
commit | 12760c6685624d65f8de078485c21b6a08e83409 (patch) | |
tree | 827bdc4ae8e65968a72b018719c1658f49f06b61 /fs/nfsd/nfs4recover.c | |
parent | 3320fef19b542b8df9606bd8e63990dc2a3fb330 (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.c | 14 |
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 | ||
393 | static void | 393 | static void |
394 | nfsd4_recdir_purge_old(struct net *net, time_t boot_time) | 394 | nfsd4_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 | ||
1019 | static void | 1018 | static void |
1020 | nfsd4_cld_grace_done(struct net *net, time_t boot_time) | 1019 | nfsd4_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 | ||
1243 | static void | 1241 | static void |
1244 | nfsd4_umh_cltrack_grace_done(struct net __attribute__((unused)) *net, | 1242 | nfsd4_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 | ||
1345 | void | 1343 | void |
1346 | nfsd4_record_grace_done(struct net *net, time_t boot_time) | 1344 | nfsd4_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 | ||
1352 | static int | 1350 | static int |