]> 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)
commit40f4ab6d9409f5ca6a0fc1f98c75668b6f079ea6
treecfc3ba22db14f6402e567b70cad424ffd43545a6
parent4e368dd3536e52fb4ad9a4e4c9d9d090c0b8ee7b
NFS: Fix a regression in nfs_file_llseek()

After commit 855ae7a217b43a8edf7687e34bc9de2dcc108972 (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