diff options
author | Christoph Hellwig <hch@lst.de> | 2015-06-18 16:45:01 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-06-22 14:15:04 -0400 |
commit | 96bcad506457cfa0c26680446eedefb616c6b079 (patch) | |
tree | a1a5b4c1124d23eb5c0dccf58c4e532548fd230d /fs/nfsd/nfs4proc.c | |
parent | af90f707fa6d54dbb725c4b919c976cd23cd07f2 (diff) | |
download | linux-96bcad506457cfa0c26680446eedefb616c6b079.tar.bz2 |
nfsd: fput rd_file from XDR encode context
Remove the hack where we fput the read-specific file in generic code.
Instead we can do it in nfsd4_encode_read as that gets called for all
error cases as well.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 5aa7c4e7fc8c..90cfda75313c 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -1723,10 +1723,6 @@ encode_op: be32_to_cpu(status)); nfsd4_cstate_clear_replay(cstate); - /* XXX Ugh, we need to get rid of this kind of special case: */ - if (op->opnum == OP_READ && op->u.read.rd_filp) - fput(op->u.read.rd_filp); - nfsd4_increment_op_stats(op->opnum); } |