NFSv4.2 fix size storage for nfs42_proc_copy
authorOlga Kornievskaia <kolga@netapp.com>
Thu, 6 Jul 2017 13:43:02 +0000 (09:43 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 13 Jul 2017 20:00:14 +0000 (16:00 -0400)
Return size of COPY is u64 but it was assigned to an "int" status.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs42proc.c

index 319a47db218d133d36b749641b63e5fa4489014c..6c2db51e67a77422cead4b27fb83fa3695d1eb91 100644 (file)
@@ -146,7 +146,7 @@ static ssize_t _nfs42_proc_copy(struct file *src,
        loff_t pos_src = args->src_pos;
        loff_t pos_dst = args->dst_pos;
        size_t count = args->count;
-       int status;
+       ssize_t status;
 
        status = nfs4_set_rw_stateid(&args->src_stateid, src_lock->open_context,
                                     src_lock, FMODE_READ);