Files
mirror_zfs/module/zfs
Brian Behlendorf 0ee129199f RHEL 7.5 compat: FMODE_KABI_ITERATE
As of RHEL 7.5 the mainline fops.iterate() method was added to
the file_operations structure and is correctly detected by the
configure script.

Normally this is what we want, but in order to maintain KABI
compatibility the RHEL change additionally does the following:

* Requires that callers intending to use this extended interface
  set the FMODE_KABI_ITERATE flag on the file structure when
  opening the directory.
* Adds the fops.iterate() method to the end of the structure,
  without removing fops.readdir().

This change updates the configure check to ignore the RHEL 7.5+
variant of fops.iterate() when detected.  Instead fallback to
the fops.readdir() interface which will be available.

Finally, add the 'zpl_' prefix to the directory context wrappers
to avoid colliding with the kernel provided symbols when both
the fops.iterate() and fops.readdir() are provided by the kernel.

Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7460
Closes #7463
2018-05-07 17:19:57 -07:00
..
2018-01-30 10:27:31 -06:00
2018-05-07 17:19:57 -07:00
2015-01-16 14:41:26 -08:00
2017-05-26 11:42:10 -07:00
2017-06-26 14:36:49 -07:00
2018-01-30 10:27:31 -06:00
2015-01-16 14:41:26 -08:00
2017-11-21 13:11:29 -06:00
2017-07-13 13:54:00 -04:00
2015-01-16 14:41:26 -08:00
2017-07-13 13:54:00 -04:00
2016-04-21 09:49:25 -07:00
2017-01-03 11:31:18 -06:00
2010-08-31 13:41:58 -07:00
2018-05-07 17:19:56 -07:00
2017-07-13 13:54:00 -04:00
2018-01-30 10:27:30 -06:00
2016-11-29 14:34:33 -08:00
2018-05-07 17:19:56 -07:00
2010-08-31 13:41:58 -07:00
2017-03-10 09:51:33 -08:00
2017-03-10 09:51:33 -08:00
2017-01-03 11:31:18 -06:00
2017-08-08 10:17:33 -07:00
2017-03-29 12:24:51 -07:00
2018-05-07 17:19:56 -07:00
2018-03-14 16:10:36 -07:00
2018-05-07 17:19:57 -07:00
2018-01-30 10:27:31 -06:00
2017-01-23 10:35:58 -08:00