diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-05-31 23:46:01 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-05-31 23:46:01 -0400 |
commit | 79906964a187c405db72a3abc60eb9b50d804fbc (patch) | |
tree | bb9cec1905d268cda5d46a95b993e0a173c226c4 /fs/ntfs/dir.c | |
parent | 9660755100ae7677d65772a28e16d475a2ee9eab (diff) | |
download | linux-79906964a187c405db72a3abc60eb9b50d804fbc.tar.gz linux-79906964a187c405db72a3abc60eb9b50d804fbc.tar.bz2 linux-79906964a187c405db72a3abc60eb9b50d804fbc.zip |
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 <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
Diffstat (limited to 'fs/ntfs/dir.c')
0 files changed, 0 insertions, 0 deletions