Commit fa85002b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ext3: update a_ops when running `chattr +j'

From: Jan Kara <jack@suse.cz>

Journalled-data files need a different set of address_space_operations, so
we need to update the file's aops when someone runs `chattr +j' on the
file.
parent 335585a7
......@@ -3036,6 +3036,7 @@ int ext3_change_inode_journal_flag(struct inode *inode, int val)
EXT3_I(inode)->i_flags |= EXT3_JOURNAL_DATA_FL;
else
EXT3_I(inode)->i_flags &= ~EXT3_JOURNAL_DATA_FL;
ext3_set_aops(inode);
journal_unlock_updates(journal);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment