summaryrefslogtreecommitdiff
path: root/fs/fuse
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2024-02-28 16:50:49 +0100
committerMiklos Szeredi <mszeredi@redhat.com>2024-03-05 13:40:43 +0100
commit253e52437119719eb87293ef6852e13bb5ad0960 (patch)
treed1c1c6af26ee37663c6b57c5ee357e14db7f1647 /fs/fuse
parentb1fe686a765e6c0d71811d825b5a1585a202b777 (diff)
fuse: use FUSE_ROOT_ID in fuse_get_root_inode()
...when calling fuse_iget(). Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse')
-rw-r--r--fs/fuse/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 065b84efb663..0d1aee941246 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -981,7 +981,7 @@ static struct inode *fuse_get_root_inode(struct super_block *sb, unsigned mode)
attr.mode = mode;
attr.ino = FUSE_ROOT_ID;
attr.nlink = 1;
- return fuse_iget(sb, 1, 0, &attr, 0, 0);
+ return fuse_iget(sb, FUSE_ROOT_ID, 0, &attr, 0, 0);
}
struct fuse_inode_handle {