cifs: fix revalidation test in cifs_llseek()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 30 Apr 2012 14:36:21 +0000 (17:36 +0300)
committerSteve French <sfrench@us.ibm.com>
Wed, 9 May 2012 20:16:22 +0000 (15:16 -0500)
commit48a5730e5b71201e226ff06e245bf308feba5f10
tree2018cd2924ed13f736032beec587858c5e688ce1
parent7ee94d97aafacf5a019b3578e0eae6daa2e2bcd5
cifs: fix revalidation test in cifs_llseek()

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>
fs/cifs/cifsfs.c