]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: fix v4.2 SEEK on files over 2 gigs
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 16 Sep 2015 21:21:27 +0000 (17:21 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 17 Sep 2015 19:48:23 +0000 (15:48 -0400)
commite35df0b38e56d0c966697e78bb2d15053cd8e404
tree2518639baf4e333c4c0f20263694e0bf0b6c0a9a
parent14532e998446e6b84b27bd4c9fec17cbc91b7315
nfs: fix v4.2 SEEK on files over 2 gigs

We're incorrectly assigning a loff_t return to an int.  If SEEK_HOLE or
SEEK_DATA returns an offset over 2^31 then the application will see a
weird lseek() result (usually -EIO).

Cc: stable@vger.kernel.org
Fixes: b4cc7a6a2ce6 "NFSv4.2: handle NFS-specific llseek errors"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Reviewed-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs42proc.c