linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs: fix wrong pad for kernelspace arg of btrfs dev stat
@ 2014-10-16  1:53 Gui Hecheng
  2014-10-16  1:53 ` [PATCH] btrfs-progs: fix wrong pad for userspace " Gui Hecheng
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Gui Hecheng @ 2014-10-16  1:53 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Gui Hecheng

The @btrfs_ioctl_get_dev_stats fails to pad to 1k as descripted,
actually it valuates to 1032 bytes.
The corresponding userspace change follows this change.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
---
 include/uapi/linux/btrfs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h
index 2f47824..fc4e326 100644
--- a/include/uapi/linux/btrfs.h
+++ b/include/uapi/linux/btrfs.h
@@ -416,7 +416,7 @@ struct btrfs_ioctl_get_dev_stats {
 	/* out values: */
 	__u64 values[BTRFS_DEV_STAT_VALUES_MAX];
 
-	__u64 unused[128 - 2 - BTRFS_DEV_STAT_VALUES_MAX]; /* pad to 1k */
+	__u64 unused[128 - 3 - BTRFS_DEV_STAT_VALUES_MAX]; /* pad to 1k */
 };
 
 #define BTRFS_QUOTA_CTL_ENABLE	1
-- 
1.8.1.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-16  9:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-16  1:53 [PATCH] btrfs: fix wrong pad for kernelspace arg of btrfs dev stat Gui Hecheng
2014-10-16  1:53 ` [PATCH] btrfs-progs: fix wrong pad for userspace " Gui Hecheng
2014-10-16  1:53 ` [PATCH] btrfs-progs: prevent silent damage when add dev to an invalid mntpnt Gui Hecheng
2014-10-16  9:26 ` [PATCH] btrfs: fix wrong pad for kernelspace arg of btrfs dev stat Stefan Behrens
2014-10-16  9:41   ` Gui Hecheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).