Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129702
b: refs/heads/master
c: 6b7021e
h: refs/heads/master
v: v3
  • Loading branch information
Jan Kara authored and Linus Torvalds committed Jan 16, 2009
1 parent 7ff953f commit 67f3b23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 634a84f8d5b74da497688d3346f6809c28239eda
refs/heads/master: 6b7021ef7e1a703c7092daeceda063951b22b4f6
7 changes: 5 additions & 2 deletions trunk/fs/ext2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 67f3b23

Please sign in to comment.