diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2024-02-28 16:50:49 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2024-03-05 13:40:43 +0100 |
commit | 253e52437119719eb87293ef6852e13bb5ad0960 (patch) | |
tree | d1c1c6af26ee37663c6b57c5ee357e14db7f1647 /fs/fuse | |
parent | fuse: don't unhash root (diff) | |
download | linux-253e52437119719eb87293ef6852e13bb5ad0960.tar.xz linux-253e52437119719eb87293ef6852e13bb5ad0960.zip |
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.c | 2 |
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 { |