The commit 48c1d1bb525b1c44b8bdc8e7ec5629cb6c2b9fc4 fails to compile in kernel version 6.14.
Version 6.14: struct inode *btrfs_iget(u64 ino, struct btrfs_root *root) { struct inode *inode; ~~~~~~~~~~~~~~ ... inode = btrfs_iget_locked(ino, root); ... }
Version 6.15: struct btrfs_inode *btrfs_iget(u64 ino, struct btrfs_root *root) { struct btrfs_inode *inode; ~~~~~~~~~~~~~~~~~~~~ ... inode = btrfs_iget_locked(ino, root); ... }
In kernel version 6.14, the function btrfs_iget_locked() returns a struct inode *, so the patch code adjusts to use iget_failed(inode).
Reported-by: Penglei Jiang superman.xpt@gmail.com Link: https://lore.kernel.org/linux-btrfs/20250421102425.44431-1-superman.xpt@gmai... Fixes: 7c855e16ab72 ("btrfs: remove conditional path allocation in btrfs_read_locked_inode()") Signed-off-by: Penglei Jiang superman.xpt@gmail.com --- fs/btrfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index ad7009d336fa..d2edb2201e3a 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -5660,7 +5660,7 @@ struct inode *btrfs_iget(u64 ino, struct btrfs_root *root)
path = btrfs_alloc_path(); if (!path) { - iget_failed(&inode->vfs_inode); + iget_failed(inode); return ERR_PTR(-ENOMEM); }