Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45815
b: refs/heads/master
c: 4b89eed
h: refs/heads/master
i:
  45813: d5a79c8
  45811: 7f2d6ff
  45807: 8a7f277
v: v3
  • Loading branch information
Linus Torvalds committed Jan 26, 2007
1 parent 56a5549 commit 2a60495
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 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: ecdfc9787fe527491baefc22dce8b2dbd5b2908d
refs/heads/master: 4b89eed93e0fa40a63e3d7b1796ec1337ea7a3aa
13 changes: 12 additions & 1 deletion trunk/fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,19 @@ __writeback_single_inode(struct inode *inode, struct writeback_control *wbc)
WARN_ON(inode->i_state & I_WILL_FREE);

if ((wbc->sync_mode != WB_SYNC_ALL) && (inode->i_state & I_LOCK)) {
struct address_space *mapping = inode->i_mapping;
int ret;

list_move(&inode->i_list, &inode->i_sb->s_dirty);
return 0;

/*
* Even if we don't actually write the inode itself here,
* we can at least start some of the data writeout..
*/
spin_unlock(&inode_lock);
ret = do_writepages(mapping, wbc);
spin_lock(&inode_lock);
return ret;
}

/*
Expand Down

0 comments on commit 2a60495

Please sign in to comment.