Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3213
b: refs/heads/master
c: 1e8a81c
h: refs/heads/master
i:
  3211: fb21590
v: v3
  • Loading branch information
Hifumi Hisashi authored and Linus Torvalds committed Jun 25, 2005
1 parent cf33704 commit 8160506
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: b4819b593740a6d11db07b52e0fe35975b29a185
refs/heads/master: 1e8a81c5a37907bc082025d3468718116dca1eeb
7 changes: 5 additions & 2 deletions trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1851,8 +1851,11 @@ generic_file_direct_write(struct kiocb *iocb, const struct iovec *iov,
* i_sem is held, which protects generic_osync_inode() from
* livelocking.
*/
if (written >= 0 && file->f_flags & O_SYNC)
generic_osync_inode(inode, mapping, OSYNC_METADATA);
if (written >= 0 && ((file->f_flags & O_SYNC) || IS_SYNC(inode))) {
int err = generic_osync_inode(inode, mapping, OSYNC_METADATA);
if (err < 0)
written = err;
}
if (written == count && !is_sync_kiocb(iocb))
written = -EIOCBQUEUED;
return written;
Expand Down

0 comments on commit 8160506

Please sign in to comment.