diff --git a/src/afs/LINUX/osi_compat.h b/src/afs/LINUX/osi_compat.h index 62fce213de..2c93d2204e 100644 --- a/src/afs/LINUX/osi_compat.h +++ b/src/afs/LINUX/osi_compat.h @@ -659,7 +659,7 @@ afs_file_read(struct file *filp, char __user *buf, size_t len, loff_t *pos) #if defined(HAVE_LINUX___VFS_WRITE) return __vfs_read(filp, buf, len, pos); #elif defined(HAVE_LINUX_KERNEL_WRITE) -# if defined(LINUX_KERNEL_READ_OFFSET_IS_LAST) +# if defined(KERNEL_READ_OFFSET_IS_LAST) return kernel_read(filp, buf, len, pos); # else return kernel_read(filp, *pos, buf, len); @@ -675,7 +675,7 @@ afs_file_write(struct file *filp, char __user *buf, size_t len, loff_t *pos) #if defined(HAVE_LINUX___VFS_WRITE) return __vfs_write(filp, buf, len, pos); #elif defined(HAVE_LINUX_KERNEL_WRITE) -# if defined(LINUX_KERNEL_READ_OFFSET_IS_LAST) +# if defined(KERNEL_READ_OFFSET_IS_LAST) return kernel_write(filp, buf, len, pos); # else return kernel_write(filp, buf, len, *pos);