Btrfs: fix "mutually exclusive op is running" error code
authorIlya Dryomov <idryomov@gmail.com>
Sun, 20 Jan 2013 13:57:57 +0000 (15:57 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 20 Jan 2013 14:21:18 +0000 (16:21 +0200)
commit2c0c9da02a2c4289350da6e54202a86602c0f926
treef2a7cc3827ec7fb948d6b54fb18b751a36f6684a
parented0fb78fb6aa294a719f8f5654fdff0ec8bc00bc
Btrfs: fix "mutually exclusive op is running" error code

The error code that is returned in response to starting a mutually
exclusive operation when there is one already running got silently
changed from EINVAL to EINPROGRESS by 5ac00add.  Returning EINPROGRESS
to, say, add_dev, when rm_dev is running is misleading.  Furthermore,
the operation itself may want to use EINPROGRESS for other purposes.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/btrfs/ioctl.c