summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYouling Tang <tangyouling@kylinos.cn>2024-04-30 05:27:44 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2024-05-08 23:29:21 +0200
commit75a53a0a230529425fa27bdfd5b7d9f95736488e (patch)
tree25677c42e22f2a18e9356f7649cec0fb26e3d4c9
parentbcachefs: Fix error path of bch2_link_trans() (diff)
downloadlinux-75a53a0a230529425fa27bdfd5b7d9f95736488e.tar.xz
linux-75a53a0a230529425fa27bdfd5b7d9f95736488e.zip
bcachefs: Correct the FS_IOC_GETFLAGS to FS_IOC32_GETFLAGS in bch2_compat_fs_ioctl()
It should be FS_IOC32_GETFLAGS instead of FS_IOC_GETFLAGS in compat ioctl. Signed-off-by: Youling Tang <tangyouling@kylinos.cn> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/fs-ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/fs-ioctl.c b/fs/bcachefs/fs-ioctl.c
index 3dc8630ff9fe..205a323ffc6d 100644
--- a/fs/bcachefs/fs-ioctl.c
+++ b/fs/bcachefs/fs-ioctl.c
@@ -548,7 +548,7 @@ long bch2_compat_fs_ioctl(struct file *file, unsigned cmd, unsigned long arg)
{
/* These are just misnamed, they actually get/put from/to user an int */
switch (cmd) {
- case FS_IOC_GETFLAGS:
+ case FS_IOC32_GETFLAGS:
cmd = FS_IOC_GETFLAGS;
break;
case FS_IOC32_SETFLAGS: