Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330142
b: refs/heads/master
c: 1486465
h: refs/heads/master
v: v3
  • Loading branch information
Namjae Jeon authored and Linus Torvalds committed Oct 5, 2012
1 parent 98aca99 commit b73ab2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 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: 126ac0518c71ba0e54e599dc129b76027a7c2d23
refs/heads/master: 14864655c0f1fafe690c6a44086e83a4ac08b6f6
14 changes: 5 additions & 9 deletions trunk/fs/fat/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1463,18 +1463,14 @@ static int writeback_inode(struct inode *inode)
{

int ret;
struct address_space *mapping = inode->i_mapping;
struct writeback_control wbc = {
.sync_mode = WB_SYNC_NONE,
.nr_to_write = 0,
};
/* if we used WB_SYNC_ALL, sync_inode waits for the io for the
* inode to finish. So WB_SYNC_NONE is sent down to sync_inode

/* if we used wait=1, sync_inode_metadata waits for the io for the
* inode to finish. So wait=0 is sent down to sync_inode_metadata
* and filemap_fdatawrite is used for the data blocks
*/
ret = sync_inode(inode, &wbc);
ret = sync_inode_metadata(inode, 0);
if (!ret)
ret = filemap_fdatawrite(mapping);
ret = filemap_fdatawrite(inode->i_mapping);
return ret;
}

Expand Down

0 comments on commit b73ab2b

Please sign in to comment.