Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1625783
| From | Jaegeuk Kim <jaegeuk@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] f2fs: fix _IOW usage |
| Date | 2017-04-19 03:50 +0200 |
| Message-ID | <txMUO-5oF-11@gated-at.bofh.it> (permalink) |
| References | <txMUN-5oF-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch fixes wrong _IOW usage. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> --- fs/f2fs/f2fs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index c28e8e7d6a5f..6655061f6d3f 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -275,9 +275,10 @@ static inline bool __has_cursum_space(struct f2fs_journal *journal, #define F2FS_IOC_START_VOLATILE_WRITE _IO(F2FS_IOCTL_MAGIC, 3) #define F2FS_IOC_RELEASE_VOLATILE_WRITE _IO(F2FS_IOCTL_MAGIC, 4) #define F2FS_IOC_ABORT_VOLATILE_WRITE _IO(F2FS_IOCTL_MAGIC, 5) -#define F2FS_IOC_GARBAGE_COLLECT _IO(F2FS_IOCTL_MAGIC, 6) +#define F2FS_IOC_GARBAGE_COLLECT _IOW(F2FS_IOCTL_MAGIC, 6, __u32) #define F2FS_IOC_WRITE_CHECKPOINT _IO(F2FS_IOCTL_MAGIC, 7) -#define F2FS_IOC_DEFRAGMENT _IO(F2FS_IOCTL_MAGIC, 8) +#define F2FS_IOC_DEFRAGMENT _IOWR(F2FS_IOCTL_MAGIC, 8, \ + struct f2fs_defragment) #define F2FS_IOC_MOVE_RANGE _IOWR(F2FS_IOCTL_MAGIC, 9, \ struct f2fs_move_range) #define F2FS_IOC_FLUSH_DEVICE _IOW(F2FS_IOCTL_MAGIC, 10, \ -- 2.11.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/3] f2fs: add ioctl to flush data from faster device to cold area Jaegeuk Kim <jaegeuk@kernel.org> - 2017-04-19 03:50 +0200 [PATCH 3/3] f2fs: assign allocation hint for warm/cold data Jaegeuk Kim <jaegeuk@kernel.org> - 2017-04-19 03:50 +0200 [PATCH 2/3] f2fs: fix _IOW usage Jaegeuk Kim <jaegeuk@kernel.org> - 2017-04-19 03:50 +0200 Re: [PATCH 1/3] f2fs: add ioctl to flush data from faster device to cold area Chao Yu <yuchao0@huawei.com> - 2017-04-22 03:20 +0200 Re: [PATCH 1/3 v2] f2fs: add ioctl to flush data from faster device to cold area Jaegeuk Kim <jaegeuk@kernel.org> - 2017-04-24 22:10 +0200
csiph-web