Skip to content

Commit

Permalink
fuse: replace remaining make_bad_inode() with fuse_make_bad()
Browse files Browse the repository at this point in the history
[ Upstream commit 82e081a ]

fuse_do_statx() was added with the wrong helper.

Fixes: d304553 ("fuse: implement statx")
Cc: <stable@vger.kernel.org> # v6.6
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Miklos Szeredi authored and gregkh committed Apr 3, 2024
1 parent 842cf1a commit b3c78e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fuse/dir.c
Expand Up @@ -1210,7 +1210,7 @@ static int fuse_do_statx(struct inode *inode, struct file *file,
if (((sx->mask & STATX_SIZE) && !fuse_valid_size(sx->size)) ||
((sx->mask & STATX_TYPE) && (!fuse_valid_type(sx->mode) ||
inode_wrong_type(inode, sx->mode)))) {
make_bad_inode(inode);
fuse_make_bad(inode);
return -EIO;
}

Expand Down

0 comments on commit b3c78e4

Please sign in to comment.