]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ext2/dir.c
ext2: also update the inode on disk when dir is IS_DIRSYNC
[linux-2.6-omap-h63xx.git] / fs / ext2 / dir.c
index 9a0fc400f91cf606bdd9bfc7c9b14e136243a1c7..2999d72153b7c19d91b86fe918089263f299b2b6 100644 (file)
@@ -95,10 +95,13 @@ static int ext2_commit_chunk(struct page *page, loff_t pos, unsigned len)
                mark_inode_dirty(dir);
        }
 
-       if (IS_DIRSYNC(dir))
+       if (IS_DIRSYNC(dir)) {
                err = write_one_page(page, 1);
-       else
+               if (!err)
+                       err = ext2_sync_inode(dir);
+       } else {
                unlock_page(page);
+       }
 
        return err;
 }