btrfs: return btrfs error code for dev excl ops err
authorAnand Jain <Anand.Jain@oracle.com>
Wed, 21 Aug 2013 03:44:48 +0000 (11:44 +0800)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:16:35 +0000 (08:16 -0400)
commite57138b3e96e45a63124492e736612378096290f
tree463e2063f9208bc9b243a9b298cdf7c44781ffb0
parent77cef2ec5484564eca6bd12a2b4a1e88fd766fbc
btrfs: return btrfs error code for dev excl ops err

now threads can return BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS
as defined in btrfs.h for the dev excl operation error in
the FS, which means with this kernel would stop logging
(almost an user error) into the /var/log/messages

v2: accepts Josef' comment

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ioctl.c