* [PATCH 3/3 v2] NFSD: Remove unused value inode in nfsd_vfs_write
@ 2016-12-31 13:00 Kinglong Mee
2017-01-04 17:14 ` J. Bruce Fields
0 siblings, 1 reply; 2+ messages in thread
From: Kinglong Mee @ 2016-12-31 13:00 UTC (permalink / raw)
To: J. Bruce Fields, linux-nfs; +Cc: Christoph Hellwig, kinglongmee
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
---
fs/nfsd/vfs.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index d1d4a11..2c13216 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -943,7 +943,6 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
unsigned long *cnt, int stable)
{
struct svc_export *exp;
- struct inode *inode;
mm_segment_t oldfs;
__be32 err = 0;
int host_err;
@@ -961,9 +960,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
*/
current->flags |= PF_LESS_THROTTLE;
- inode = file_inode(file);
- exp = fhp->fh_export;
-
+ exp = fhp->fh_export;
use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp);
if (!EX_ISSYNC(exp))
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 3/3 v2] NFSD: Remove unused value inode in nfsd_vfs_write
2016-12-31 13:00 [PATCH 3/3 v2] NFSD: Remove unused value inode in nfsd_vfs_write Kinglong Mee
@ 2017-01-04 17:14 ` J. Bruce Fields
0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2017-01-04 17:14 UTC (permalink / raw)
To: Kinglong Mee; +Cc: linux-nfs, Christoph Hellwig
These three look fine, thanks.--b.
On Sat, Dec 31, 2016 at 09:00:21PM +0800, Kinglong Mee wrote:
> Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> ---
> fs/nfsd/vfs.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
> index d1d4a11..2c13216 100644
> --- a/fs/nfsd/vfs.c
> +++ b/fs/nfsd/vfs.c
> @@ -943,7 +943,6 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
> unsigned long *cnt, int stable)
> {
> struct svc_export *exp;
> - struct inode *inode;
> mm_segment_t oldfs;
> __be32 err = 0;
> int host_err;
> @@ -961,9 +960,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
> */
> current->flags |= PF_LESS_THROTTLE;
>
> - inode = file_inode(file);
> - exp = fhp->fh_export;
> -
> + exp = fhp->fh_export;
> use_wgather = (rqstp->rq_vers == 2) && EX_WGATHER(exp);
>
> if (!EX_ISSYNC(exp))
> --
> 2.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-04 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-31 13:00 [PATCH 3/3 v2] NFSD: Remove unused value inode in nfsd_vfs_write Kinglong Mee
2017-01-04 17:14 ` J. Bruce Fields
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).