Commit d3a94048c912e18e99a091d5ea2d0a1178152d6f
Committed by
Chris Mason
1 parent
2b6ba629b5
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
Btrfs: use _IOR for BTRFS_IOC_SUBVOL_GETFLAGS
We used the wrong ioctl macro for the getflags ioctl before. As we don't have the set/getflags ioctls in the user space ioctl.h at the moment, it's safe to fix it now. Reviewed-by: David Sterba <dsterba@suse.cz> Signed-off-by: Alexander Block <ablock84@googlemail.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/btrfs/ioctl.h
... | ... | @@ -339,7 +339,7 @@ |
339 | 339 | #define BTRFS_IOC_WAIT_SYNC _IOW(BTRFS_IOCTL_MAGIC, 22, __u64) |
340 | 340 | #define BTRFS_IOC_SNAP_CREATE_V2 _IOW(BTRFS_IOCTL_MAGIC, 23, \ |
341 | 341 | struct btrfs_ioctl_vol_args_v2) |
342 | -#define BTRFS_IOC_SUBVOL_GETFLAGS _IOW(BTRFS_IOCTL_MAGIC, 25, __u64) | |
342 | +#define BTRFS_IOC_SUBVOL_GETFLAGS _IOR(BTRFS_IOCTL_MAGIC, 25, __u64) | |
343 | 343 | #define BTRFS_IOC_SUBVOL_SETFLAGS _IOW(BTRFS_IOCTL_MAGIC, 26, __u64) |
344 | 344 | #define BTRFS_IOC_SCRUB _IOWR(BTRFS_IOCTL_MAGIC, 27, \ |
345 | 345 | struct btrfs_ioctl_scrub_args) |