]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Linux 4.1: No need for do_sync_read
authorMarc Dionne <marc.dionne@your-file-system.com>
Mon, 20 Apr 2015 13:37:40 +0000 (10:37 -0300)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 28 May 2015 13:00:17 +0000 (09:00 -0400)
Make the test here a bit more specific. do_sync_read no longer
exists, but we don't use it for new kernels.  Trying to define it
here in terms of generic_file_read is not helpful as that doesn't
exist anymore.

Reviewed-on: http://gerrit.openafs.org/11848
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams <3chas3@gmail.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit fcfa5ae2468d878db962a93d6013fcd3042e6c13)

Change-Id: I87bf0fc856d244d15bdae300f0cd6b80ecb63797
Reviewed-on: http://gerrit.openafs.org/11872
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Daria Brashear <shadow@your-file-system.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/LINUX/osi_compat.h

index c1cdb19e8c89bea98181a716d5cf77ba75c1844a..97369a2b1bc6de77c4a7d4261b49d0ef5a16311b 100644 (file)
@@ -47,7 +47,7 @@ typedef struct path afs_linux_path_t;
 # endif
 #endif
 
-#ifndef HAVE_LINUX_DO_SYNC_READ
+#if !defined(HAVE_LINUX_DO_SYNC_READ) && !defined(STRUCT_FILE_OPERATIONS_HAS_READ_ITER)
 static inline int
 do_sync_read(struct file *fp, char *buf, size_t count, loff_t *offp) {
     return generic_file_read(fp, buf, count, offp);