projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1fe686
)
fuse: use FUSE_ROOT_ID in fuse_get_root_inode()
author
Miklos Szeredi
<mszeredi@redhat.com>
Wed, 28 Feb 2024 15:50:49 +0000
(16:50 +0100)
committer
Miklos Szeredi
<mszeredi@redhat.com>
Tue, 5 Mar 2024 12:40:43 +0000
(13:40 +0100)
...when calling fuse_iget().
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/inode.c
patch
|
blob
|
history
diff --git
a/fs/fuse/inode.c
b/fs/fuse/inode.c
index 065b84efb6630321328761cd3945fd2974015f1f..0d1aee94124601bfa995e899fca7ec88841f9bfd 100644
(file)
--- 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 {