Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358978
b: refs/heads/master
c: bd43df0
h: refs/heads/master
v: v3
  • Loading branch information
Jaegeuk Kim committed Feb 11, 2013
1 parent 6673f01 commit a5e073d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 577e349514452fa3fcd99fd06e587b02d3d1cf28
refs/heads/master: bd43df021ac37247f2db58ff376fb4032170f754
5 changes: 5 additions & 0 deletions trunk/fs/f2fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,17 @@ const struct inode_operations f2fs_file_inode_operations = {
static void fill_zero(struct inode *inode, pgoff_t index,
loff_t start, loff_t len)
{
struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb);
struct page *page;

if (!len)
return;

f2fs_balance_fs(sbi);

mutex_lock_op(sbi, DATA_NEW);
page = get_new_data_page(inode, index, false);
mutex_unlock_op(sbi, DATA_NEW);

if (!IS_ERR(page)) {
wait_on_page_writeback(page);
Expand Down

0 comments on commit a5e073d

Please sign in to comment.