Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348970
b: refs/heads/master
c: 9eaeba7
h: refs/heads/master
v: v3
  • Loading branch information
Jaegeuk Kim committed Jan 11, 2013
1 parent eb43fde commit e974409
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 7d82db83165dbac8c3f6d47b73c84f38e3996e30
refs/heads/master: 9eaeba701386037cdd2ccd8bf8650feb2e2cec31
5 changes: 2 additions & 3 deletions trunk/fs/f2fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ int truncate_hole(struct inode *inode, pgoff_t pg_start, pgoff_t pg_end)
struct dnode_of_data dn;
struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb);

f2fs_balance_fs(sbi);

mutex_lock_op(sbi, DATA_TRUNC);
set_new_dnode(&dn, inode, NULL, NULL, 0);
err = get_dnode_of_data(&dn, index, RDONLY_NODE);
Expand Down Expand Up @@ -537,7 +539,6 @@ static long f2fs_fallocate(struct file *file, int mode,
loff_t offset, loff_t len)
{
struct inode *inode = file->f_path.dentry->d_inode;
struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb);
long ret;

if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE))
Expand All @@ -552,8 +553,6 @@ static long f2fs_fallocate(struct file *file, int mode,
inode->i_mtime = inode->i_ctime = CURRENT_TIME;
mark_inode_dirty(inode);
}

f2fs_balance_fs(sbi);
return ret;
}

Expand Down

0 comments on commit e974409

Please sign in to comment.