ext4: don't set i_flags in EXT4_IOC_SETFLAGS
authorTao Ma <boyu.mt@taobao.com>
Thu, 7 Jun 2012 23:04:19 +0000 (19:04 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 10 Jun 2012 13:42:11 +0000 (14:42 +0100)
commit11c8b786fffcb89514892ba36fba10bf3d46310b
tree2992a343e190c386e96bf9e9849682731bdbdff6
parent8de426390253cabdcfc7e46b53d2d56c894d23bf
ext4: don't set i_flags in EXT4_IOC_SETFLAGS

commit b22b1f178f6799278d3178d894f37facb2085765 upstream.

Commit 7990696 uses the ext4_{set,clear}_inode_flags() functions to
change the i_flags automatically but fails to remove the error setting
of i_flags.  So we still have the problem of trashing state flags.
Fix this by removing the assignment.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/ext4/ioctl.c