[Concept,08/21] ext4l: Fix alloc_inode_sb() to actually allocate

Message ID 20260416165733.2923423-9-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>

alloc_inode_sb() returns NULL instead of calling kmem_cache_alloc(),
causing any filesystem that uses kmem_cache-based inode allocation to
fail. Fix it to perform the allocation.

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

 fs/ext4l/stub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/fs/ext4l/stub.c b/fs/ext4l/stub.c
index 3da511fa1cf..3198c472981 100644
--- a/fs/ext4l/stub.c
+++ b/fs/ext4l/stub.c
@@ -343,7 +343,7 @@  int inode_generic_drop(struct inode *inode)
 void *alloc_inode_sb(struct super_block *sb, struct kmem_cache *cache,
 		     gfp_t gfp)
 {
-	return NULL;
+	return kmem_cache_alloc(cache, gfp);
 }
 
 /* inode_set_iversion is now a macro in linux/iversion.h */