Since the commit
3e3271549670 ("vfs: get rid of old '->iterate' directory
operation") of v6.6, struct file_operations::iterate is removed, and only
iterate_shared callback is used. Convert iterate to iterate_shared for
v6.6 or later kernel version.
Change-Id: I267bff76423820962d86177bc82250384c69bc7a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
return 0;
}
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,6,0))
+WRAP_DIR_ITER(fs_dir_fop_iterate)
+#endif
+
static const struct file_operations fs_dir_fops = {
.read = generic_read_dir,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,6,0))
+ .iterate_shared = shared_fs_dir_fop_iterate,
+#else
.iterate = fs_dir_fop_iterate,
+#endif
.llseek = fs_dir_fop_llseek,
.release = fs_dir_fop_release,
};