Linux: Don't roll our own llseek
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Fri, 23 Apr 2010 14:07:58 +0000 (15:07 +0100)
committerDerrick Brashear <shadow@dementia.org>
Mon, 26 Apr 2010 04:04:13 +0000 (21:04 -0700)
commit20d08fb0ec7190bac622e9ac8a17f97b7feef1cb
treed3511a5df6c0b0f81e0e26d5f0ab0b044f20a1f9
parent5afa2965b2c4eab2a32dbd4ff036a835eb903e75
Linux: Don't roll our own llseek

llseek is a little more complex than just setting the pos field of
the file structure.

Where vfs_llseek is available to us (it has been since 2.6.8) use that
directly. If vfs_llseek isn't available, then use either the
filesystem's llseek method, or default_llseek (available since 2.6.0),
to ensure we get the proper locking.

Change-Id: I26bcbff984c7164be1724eee7a46cbe6e02bc510
Reviewed-on: http://gerrit.openafs.org/1816
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
acinclude.m4
src/afs/LINUX/osi_compat.h
src/afs/LINUX/osi_file.c
src/cf/linux-test4.m4