summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/vfs.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-05-28 10:46:32 +0200
committerJ. Bruce Fields <bfields@redhat.com>2014-05-30 17:32:27 -0400
commitb52bd7bccca57b2bbe837d14a0bf3e45279459a8 (patch)
tree0c815d914a4117b33e0daafe9754a5c9570afe9e /fs/nfsd/vfs.c
parent12337901d654415d9f764b5f5ba50052e9700f37 (diff)
downloadop-kernel-dev-b52bd7bccca57b2bbe837d14a0bf3e45279459a8.zip
op-kernel-dev-b52bd7bccca57b2bbe837d14a0bf3e45279459a8.tar.gz
nfsd: remove unused function nfsd_read_file
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r--fs/nfsd/vfs.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index b7d35a4..140c496 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -1026,26 +1026,6 @@ __be32 nfsd_read(struct svc_rqst *rqstp, struct svc_fh *fhp,
return err;
}
-/* As above, but use the provided file descriptor. */
-__be32
-nfsd_read_file(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
- loff_t offset, struct kvec *vec, int vlen,
- unsigned long *count)
-{
- __be32 err;
-
- if (file) {
- err = nfsd_permission(rqstp, fhp->fh_export, fhp->fh_dentry,
- NFSD_MAY_READ|NFSD_MAY_OWNER_OVERRIDE);
- if (err)
- goto out;
- err = nfsd_vfs_read(rqstp, file, offset, vec, vlen, count);
- } else /* Note file may still be NULL in NFSv4 special stateid case: */
- err = nfsd_read(rqstp, fhp, offset, vec, vlen, count);
-out:
- return err;
-}
-
/*
* Write data to a file.
* The stable flag requests synchronous writes.
OpenPOWER on IntegriCloud