]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2a142dca268fe03ab848bd99e5d66c33d1587d7
treecfc3ba22db14f6402e567b70cad424ffd43545a6
parent29767dbf65d9e268643185fc4a393bf958b6757b
NFS: Fix a regression in nfs_file_llseek()

After commit 18925a532aea94b10d0ebf418412120497f53908 (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