Linux: adapt to truncate sequence changes
authorMarc Dionne <marc.c.dionne@gmail.com>
Wed, 11 Aug 2010 22:20:59 +0000 (18:20 -0400)
committerDerrick Brashear <shadow@dementia.org>
Thu, 12 Aug 2010 20:43:53 +0000 (13:43 -0700)
commiteaf3378f537935f6b9843886b43d8b6d38a91a92
tree3c54dbd8b36b196a970394db60ccf1b0d715da7d
parentd4018b2673e6532543984838290ffb891b970fea
Linux: adapt to truncate sequence changes

As part of changes to the truncate sequence, inode_setattr() no
longer exists, and all filesystems have to define the setattr op
so we can assume that it is not NULL.

Introduce a compat inline function afs_inode_setattr that hides
the tests and the different versions from the main code.

Note that the existing test for the inode_setattr() return type
will fail, but the value is no longer used in that case.

This is required for 2.6.36

Change-Id: I2f5e8a0b660b48453d0152b6c4db64e57539f91a
Reviewed-on: http://gerrit.openafs.org/2543
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