[PATCH] btrfs: join DEV_STATS ioctls to one

2012-06-22 Thread David Sterba
Hi Chris, please consider this patch for 3.5-rc before it goes final. Thanks. From: David Sterba dste...@suse.cz Commit c11d2c236cc260b36 (Btrfs: add ioctl to get and reset the device stats) introduced two ioctls doing almost the same thing distinguished by just the ioctl number which encodes

Re: [PATCH] btrfs: join DEV_STATS ioctls to one

2012-06-22 Thread Josef Bacik
On 06/22/2012 08:30 AM, David Sterba wrote: Hi Chris, please consider this patch for 3.5-rc before it goes final. Thanks. From: David Sterba dste...@suse.cz Commit c11d2c236cc260b36 (Btrfs: add ioctl to get and reset the device stats) introduced two ioctls doing almost the same thing

Re: [PATCH] btrfs: join DEV_STATS ioctls to one

2012-06-22 Thread Stefan Behrens
On Fri, 22 Jun 2012 14:30:39 +0200, David Sterba wrote: Hi Chris, please consider this patch for 3.5-rc before it goes final. Thanks. From: David Sterba dste...@suse.cz Commit c11d2c236cc260b36 (Btrfs: add ioctl to get and reset the device stats) introduced two ioctls doing almost the

Re: [PATCH] btrfs: join DEV_STATS ioctls to one

2012-06-22 Thread David Sterba
On Fri, Jun 22, 2012 at 06:26:44PM +0200, Stefan Behrens wrote: I still do not understand your reason and the benefit of your change. The reset command and the read command are two completely different operations. Therefore I assigned two different ioctl commands. Then you can use strace to

Re: [PATCH] btrfs: join DEV_STATS ioctls to one

2012-06-22 Thread Josef Bacik
On 06/22/2012 12:26 PM, Stefan Behrens wrote: On Fri, 22 Jun 2012 14:30:39 +0200, David Sterba wrote: Hi Chris, please consider this patch for 3.5-rc before it goes final. Thanks. From: David Sterba dste...@suse.cz Commit c11d2c236cc260b36 (Btrfs: add ioctl to get and reset the device stats)

Re: [PATCH] btrfs: join DEV_STATS ioctls to one

2012-06-22 Thread Stefan Behrens
On 06/22/2012 19:02 +0200, David Sterba wrote: On Fri, Jun 22, 2012 at 06:26:44PM +0200, Stefan Behrens wrote: I still do not understand your reason and the benefit of your change. The reset command and the read command are two completely different operations. Therefore I assigned two different