From fa85002bb286d15c83c7cf491fbb2ea2b2bb7a92 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 20 Jan 2004 03:16:11 -0800 Subject: [PATCH] [PATCH] ext3: update a_ops when running `chattr +j' From: Jan Kara 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. --- fs/ext3/inode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index e5b60217d34ad..4b60f7c13bbb0 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c @@ -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); -- 2.53.0