Skip to content
Commit 6b7021ef authored by Jan Kara's avatar Jan Kara Committed by Linus Torvalds
Browse files

ext2: also update the inode on disk when dir is IS_DIRSYNC



We used to just write changed page for IS_DIRSYNC inodes.  But we also
have to update the directory inode itself just for the case that we've
allocated a new block and changed i_size.

[akpm@linux-foundation.org: still sync the data page]
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Tested-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 634a84f8
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