Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263102
b: refs/heads/master
c: f81c9cd
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil authored and Chris Mason committed Aug 17, 2011
1 parent 7d914d0 commit d73e5a6
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 0e588859618be54ec100373f1b86296271ce5307
refs/heads/master: f81c9cdc567cd3160ff9e64868d9a1a7ee226480
4 changes: 4 additions & 0 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2244,6 +2244,10 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
btrfs_wait_ordered_range(src, off, len);
}

/* truncate page cache pages from target inode range */
truncate_inode_pages_range(&inode->i_data, off,
ALIGN(off + len, PAGE_CACHE_SIZE) - 1);

/* clone data */
key.objectid = btrfs_ino(src);
key.type = BTRFS_EXTENT_DATA_KEY;
Expand Down

0 comments on commit d73e5a6

Please sign in to comment.