From: Theodore Ts'o Date: Fri, 1 Jun 2012 03:46:01 +0000 (-0400) Subject: ext4: don't trash state flags in EXT4_IOC_SETFLAGS X-Git-Tag: v3.5-rc1~16^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79906964a187c405db72a3abc60eb9b50d804fbc;p=pandora-kernel.git ext4: don't trash state flags in EXT4_IOC_SETFLAGS In commit 353eb83c we removed i_state_flags with 64-bit longs, But when handling the EXT4_IOC_SETFLAGS ioctl, we replace i_flags directly, which trashes the state flags which are stored in the high 32-bits of i_flags on 64-bit platforms. So use the the ext4_{set,clear}_inode_flags() functions which use atomic bit manipulation functions instead. Reported-by: Tao Ma Signed-off-by: "Theodore Ts'o" Cc: stable@kernel.org --- Reading git-diff-tree failed