Skip to content

Commit 8ea6e2c

Browse files
committed
NFSD: Make nfs4_put_copy() static
Clean up: All call sites are in fs/nfsd/nfs4proc.c. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent d314309 commit 8ea6e2c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

fs/nfsd/nfs4proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ nfsd4_clone(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
12851285
return status;
12861286
}
12871287

1288-
void nfs4_put_copy(struct nfsd4_copy *copy)
1288+
static void nfs4_put_copy(struct nfsd4_copy *copy)
12891289
{
12901290
if (!refcount_dec_and_test(&copy->refcount))
12911291
return;

fs/nfsd/state.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,6 @@ extern struct nfs4_client_reclaim *nfs4_client_to_reclaim(struct xdr_netobj name
703703
extern bool nfs4_has_reclaimed_state(struct xdr_netobj name, struct nfsd_net *nn);
704704

705705
void put_nfs4_file(struct nfs4_file *fi);
706-
extern void nfs4_put_copy(struct nfsd4_copy *copy);
707706
extern struct nfsd4_copy *
708707
find_async_copy(struct nfs4_client *clp, stateid_t *staetid);
709708
extern void nfs4_put_cpntf_state(struct nfsd_net *nn,

0 commit comments

Comments
 (0)