]> git.baikalelectronics.ru Git - kernel.git/commit
ext2: also update the inode on disk when dir is IS_DIRSYNC
authorJan Kara <jack@suse.cz>
Thu, 15 Jan 2009 21:51:29 +0000 (13:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Jan 2009 00:39:42 +0000 (16:39 -0800)
commit7fc2d8fa7a3845a6b5fbce49944a7a777a026187
treeee2a92121f102bc8e948c17a3fa4a357f6687f2a
parent41a637d24f6a80b821b4fb0a712b0473bf894c81
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: Jan Kara <jack@suse.cz>
Tested-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ext2/dir.c