mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
nfs: Fix unused variable warning from file.c
Fix the following unused variable warning. fs/nfs/file.c: In function ‘nfs_file_release’: fs/nfs/file.c:140:17: warning: unused variable ‘dentry’ fs/nfs/file.c: In function ‘nfs_file_read’: fs/nfs/file.c:237:9: warning: unused variable ‘count’ Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
e414966b81
commit
6f276e49fd
1 changed files with 3 additions and 6 deletions
|
@ -137,11 +137,9 @@ nfs_file_open(struct inode *inode, struct file *filp)
|
||||||
static int
|
static int
|
||||||
nfs_file_release(struct inode *inode, struct file *filp)
|
nfs_file_release(struct inode *inode, struct file *filp)
|
||||||
{
|
{
|
||||||
struct dentry *dentry = filp->f_path.dentry;
|
|
||||||
|
|
||||||
dprintk("NFS: release(%s/%s)\n",
|
dprintk("NFS: release(%s/%s)\n",
|
||||||
dentry->d_parent->d_name.name,
|
filp->f_path.dentry->d_parent->d_name.name,
|
||||||
dentry->d_name.name);
|
filp->f_path.dentry->d_name.name);
|
||||||
|
|
||||||
nfs_inc_stats(inode, NFSIOS_VFSRELEASE);
|
nfs_inc_stats(inode, NFSIOS_VFSRELEASE);
|
||||||
return nfs_release(inode, filp);
|
return nfs_release(inode, filp);
|
||||||
|
@ -234,14 +232,13 @@ nfs_file_read(struct kiocb *iocb, const struct iovec *iov,
|
||||||
struct dentry * dentry = iocb->ki_filp->f_path.dentry;
|
struct dentry * dentry = iocb->ki_filp->f_path.dentry;
|
||||||
struct inode * inode = dentry->d_inode;
|
struct inode * inode = dentry->d_inode;
|
||||||
ssize_t result;
|
ssize_t result;
|
||||||
size_t count = iov_length(iov, nr_segs);
|
|
||||||
|
|
||||||
if (iocb->ki_filp->f_flags & O_DIRECT)
|
if (iocb->ki_filp->f_flags & O_DIRECT)
|
||||||
return nfs_file_direct_read(iocb, iov, nr_segs, pos);
|
return nfs_file_direct_read(iocb, iov, nr_segs, pos);
|
||||||
|
|
||||||
dprintk("NFS: read(%s/%s, %lu@%lu)\n",
|
dprintk("NFS: read(%s/%s, %lu@%lu)\n",
|
||||||
dentry->d_parent->d_name.name, dentry->d_name.name,
|
dentry->d_parent->d_name.name, dentry->d_name.name,
|
||||||
(unsigned long) count, (unsigned long) pos);
|
(unsigned long) iov_length(iov, nr_segs), (unsigned long) pos);
|
||||||
|
|
||||||
result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping);
|
result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue