NFS: Fix a regression in nfs_file_llseek()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 15 Dec 2011 23:38:10 +0000 (18:38 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 15 Dec 2011 23:44:36 +0000 (18:44 -0500)
commit6c52961743f38747401b47127b82159ab6d8a7a4
treecfc3ba22db14f6402e567b70cad424ffd43545a6
parent652f89f64fabcdae9143ee2b4253cfa838fb0279
NFS: Fix a regression in nfs_file_llseek()

After commit 06222e491e663dac939f04b125c9dc52126a75c4 (fs: handle
SEEK_HOLE/SEEK_DATA properly in all fs's that define their own llseek)
the behaviour of llseek() was changed so that it always revalidates
the file size. The bug appears to be due to a logic error in the
afore-mentioned commit, which always evaluates to 'true'.

Reported-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org [>=3.1]
fs/nfs/file.c