Linux: Test for __vfs_write rather than __vfs_read 28/12728/3
authorDamien Diederen <ddiederen@sinenomine.net>
Mon, 18 Sep 2017 09:59:40 +0000 (11:59 +0200)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 3 Oct 2017 00:10:47 +0000 (20:10 -0400)
commit929e77a886fc9853ee292ba1aa52a920c454e94b
treef75764b7dc95e9a997824b2266c828da7cb02adb
parent0a9a6b57ce6e1c97fcc651c8cb74e66fc8422a1e
Linux: Test for __vfs_write rather than __vfs_read

The following commit:

    commit eb031849d52e61d24ba54e9d27553189ff328174
    Author: Christoph Hellwig <hch@lst.de>
    Date:   Fri Sep 1 17:39:23 2017 +0200

        fs: unexport __vfs_read/__vfs_write

unexports both __vfs_read and __vfs_write, but keeps the former in
fs.h--as it is is still being used by another part of the tree.

This situation results in a false positive in our Autoconf check,
which does not see the export statements, and ends up marking the
corresponding API as available.

That, in turn, causes some code which assumes symmetry with
__vfs_write to fail to compile.

Switch to testing for __vfs_write, which correctly marks the API as
unavailable.

Change-Id: I392f2b17b4de7bd81d549c84e6f7b5ef05e1b999
Reviewed-on: https://gerrit.openafs.org/12728
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
acinclude.m4
src/afs/LINUX/osi_compat.h
src/afs/LINUX/osi_vnodeops.c