btrfs: join DEV_STATS ioctls to one
authorDavid Sterba <dsterba@suse.cz>
Fri, 22 Jun 2012 12:30:39 +0000 (06:30 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 19:41:40 +0000 (15:41 -0400)
commitb27f7c0c150f74564b5d4c6c24a03c5226bf6327
treed26d8b2929a883783666836b9ec6808bdcb0f3fd
parenta43a21113365e5a9b59efc411da715d910cca87c
btrfs: join DEV_STATS ioctls to one

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 "do reset after read". I have
suggested

http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg16604.html

to implement it via the ioctl args. This hasn't happen, and I think we
should use a more clean way to pass flags and should not waste ioctl
numbers.

CC: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/ioctl.c
fs/btrfs/ioctl.h
fs/btrfs/volumes.c
fs/btrfs/volumes.h