Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232990
b: refs/heads/master
c: 4d728ec
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan committed Jan 26, 2011
1 parent 673130b commit 2997778
Show file tree
Hide file tree
Showing 2 changed files with 5 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: b897abec032deb7cc3ce67392a1f544ac965ddea
refs/heads/master: 4d728ec7aefdca5419d2ebfb28c147e81a4b59f4
5 changes: 4 additions & 1 deletion trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,10 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,

memcpy(&new_key, &key, sizeof(new_key));
new_key.objectid = inode->i_ino;
new_key.offset = key.offset + destoff - off;
if (off <= key.offset)
new_key.offset = key.offset + destoff - off;
else
new_key.offset = destoff;

trans = btrfs_start_transaction(root, 1);
if (IS_ERR(trans)) {
Expand Down

0 comments on commit 2997778

Please sign in to comment.