cifs: fix revalidation test in cifs_llseek()
commit4c7a674cc364f699fa5b6a6176c6cff4f586e607
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 30 Apr 2012 14:36:21 +0000 (30 17:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 May 2012 17:46:22 +0000 (21 10:46 -0700)
tree90fbb146c3bacc8737dc19d60f606e016e77c892
parentef474e8699d6214527989d09e9d4cab368a6468f
cifs: fix revalidation test in cifs_llseek()

commit 48a5730e5b71201e226ff06e245bf308feba5f10 upstream.

This test is always true so it means we revalidate the length every
time, which generates more network traffic.  When it is SEEK_SET or
SEEK_CUR, then we don't need to revalidate.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/cifsfs.c