Commit b22b1f178f6799278d3178d894f37facb2085765

Authored by Tao Ma
Committed by Theodore Ts'o
1 parent b0dd6b70f0

ext4: don't set i_flags in EXT4_IOC_SETFLAGS

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>
Cc: stable@kernel.org

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

... ... @@ -123,7 +123,6 @@
123 123 else
124 124 ext4_clear_inode_flag(inode, i);
125 125 }
126   - ei->i_flags = flags;
127 126  
128 127 ext4_set_inode_flags(inode);
129 128 inode->i_ctime = ext4_current_time(inode);