diff options
author | Chao Yu <chao@kernel.org> | 2023-01-28 18:32:26 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-02-02 13:37:17 -0800 |
commit | 933141e4eb49d8b48721e2377835063a1e8fb823 (patch) | |
tree | c7ef355e45180cb7d787cd8d804e01ef313f3d1c /fs/f2fs | |
parent | b90e5086df6bf5ba819216d5ecf0667370bd565f (diff) | |
download | linux-933141e4eb49d8b48721e2377835063a1e8fb823.tar.gz linux-933141e4eb49d8b48721e2377835063a1e8fb823.tar.bz2 linux-933141e4eb49d8b48721e2377835063a1e8fb823.zip |
f2fs: fix to handle F2FS_IOC_START_ATOMIC_REPLACE in f2fs_compat_ioctl()
Otherwise, 32-bits binary call ioctl(F2FS_IOC_START_ATOMIC_REPLACE) will
fail in 64-bits kernel.
Fixes: 41e8f85a75fc ("f2fs: introduce F2FS_IOC_START_ATOMIC_REPLACE")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 65199574cd7d..f05148a9dc99 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -4814,6 +4814,7 @@ long f2fs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) case F2FS_IOC32_MOVE_RANGE: return f2fs_compat_ioc_move_range(file, arg); case F2FS_IOC_START_ATOMIC_WRITE: + case F2FS_IOC_START_ATOMIC_REPLACE: case F2FS_IOC_COMMIT_ATOMIC_WRITE: case F2FS_IOC_START_VOLATILE_WRITE: case F2FS_IOC_RELEASE_VOLATILE_WRITE: |