Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263740
b: refs/heads/master
c: d525e8a
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Chris Mason committed Sep 11, 2011
1 parent 8ca8120 commit e8ea3db
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d72c0842ff0e71342857723bb65f35b71f57b264
refs/heads/master: d525e8ab022cb000e6e31a515ba8c3cf0d9c6130
6 changes: 6 additions & 0 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2228,6 +2228,12 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
!IS_ALIGNED(destoff, bs))
goto out_unlock;

if (destoff > inode->i_size) {
ret = btrfs_cont_expand(inode, inode->i_size, destoff);
if (ret)
goto out_unlock;
}

/* do any pending delalloc/csum calc on src, one way or
another, and lock file content */
while (1) {
Expand Down

0 comments on commit e8ea3db

Please sign in to comment.