[Concept,05/21] linux: dcache: Add d_op field to struct dentry

Message ID 20260416165733.2923423-6-sjg@u-boot.org
State New
Headers
Series fs: Add ISO 9660 filesystem driver ported from Linux |

Commit Message

Simon Glass April 16, 2026, 4:56 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

The isofs driver uses dentry_operations for case-insensitive filename
matching (needed for ISO 9660 and Joliet extensions).

Add the d_op field and a forward declaration of struct dentry_operations
to the U-Boot dentry stub.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/linux/dcache.h | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index bf8d1e4755e..bf6253ee60f 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -48,11 +48,14 @@  static const struct qstr dotdot_name = QSTR_INIT("..", 2);
  *
  * U-Boot stub - minimal fields for ext4l.
  */
+struct dentry_operations;
+
 struct dentry {
 	struct qstr d_name;
 	struct inode *d_inode;
 	struct super_block *d_sb;
 	struct dentry *d_parent;
+	const struct dentry_operations *d_op;
 };
 
 /**