]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: clarify btrfs_ioctl_get_dev_stats padding
authorHans van Kranenburg <hans.van.kranenburg@mendix.com>
Sat, 3 Aug 2019 21:36:34 +0000 (23:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:05 +0000 (14:59 +0200)
commit1ab2e9adfc73927b4bba6646c4c481a9ef657adc
tree8bf7df5f3685dc8f7c6cec944abd813f43d81cf7
parent6ab7acacce45b85116954118011bb3e3dc01a1c0
btrfs: clarify btrfs_ioctl_get_dev_stats padding

In commit ecedeb8c712fe ("Btrfs: add ioctl to get and reset the device
stats") the get_dev_stats ioctl was added.

Shortly thereafter, in commit 910c26c7925d7 ("btrfs: join DEV_STATS
ioctls to one") , the flags field was added.  However, the calculation
for unused padding space was not updated, which also invalidated the
comment.

Clarify what happened to reduce confusion and wasted time for anyone
implementing this.

Signed-off-by: Hans van Kranenburg <hans.van.kranenburg@mendix.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
include/uapi/linux/btrfs.h