Btrfs: fix return value of setflags ioctl
authorliubo <liubo2009@cn.fujitsu.com>
Thu, 24 Feb 2011 09:38:16 +0000 (09:38 +0000)
committerroot <Chris Mason chris.mason@oracle.com>
Mon, 28 Mar 2011 09:37:51 +0000 (05:37 -0400)
commit2d4e6f6ad2b9f84f568d07dae4bdbc7f48a70ad1
treeeb1490b2b5383fc92eaf276ef31011ec206a2439
parentdac97e516c617f9c797f64b0224050b70aea30c7
Btrfs: fix return value of setflags ioctl

setflags ioctl should return error when any checks fail.

Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c