Skip to content

Commit 253e524

Browse files
author
Miklos Szeredi
committed
fuse: use FUSE_ROOT_ID in fuse_get_root_inode()
...when calling fuse_iget(). Signed-off-by: Miklos Szeredi <[email protected]>
1 parent b1fe686 commit 253e524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/fuse/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ static struct inode *fuse_get_root_inode(struct super_block *sb, unsigned mode)
981981
attr.mode = mode;
982982
attr.ino = FUSE_ROOT_ID;
983983
attr.nlink = 1;
984-
return fuse_iget(sb, 1, 0, &attr, 0, 0);
984+
return fuse_iget(sb, FUSE_ROOT_ID, 0, &attr, 0, 0);
985985
}
986986

987987
struct fuse_inode_handle {

0 commit comments

Comments
 (0)