Btrfs: fix FS_IOC_SETFLAGS ioctl
commitebcb904dfe31644857422e3bb62e50f76fe86255
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 15 Apr 2011 03:03:17 +0000 (15 03:03 +0000)
committerChris Mason <chris.mason@oracle.com>
Sat, 14 May 2011 20:10:28 +0000 (14 16:10 -0400)
treee4dd906d7f15e0a924b410acd236e8b7e3bc8bba
parentd0092bdda819914b8725da76a8c33eb06eb0bd21
Btrfs: fix FS_IOC_SETFLAGS ioctl

Steps to reproduce the bug:

  - Call FS_IOC_SETLFAGS ioctl with flags=FS_COMPR_FL
  - Call FS_IOC_SETFLAGS ioctl with flags=0
  - Call FS_IOC_GETFLAGS ioctl, and you'll see FS_COMPR_FL is still set!

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c