Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274659
b: refs/heads/master
c: cbcc832
h: refs/heads/master
i:
  274657: d378751
  274655: 596ed21
v: v3
  • Loading branch information
Li Zefan authored and David Sterba committed Oct 20, 2011
1 parent 452033e commit cf3cf72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 60ccf82f5b6e26e10d41783464ca469c070c7d49
refs/heads/master: cbcc83265d929ac71553c1b5dafdb830171af947
6 changes: 4 additions & 2 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,6 @@ int btrfs_defrag_file(struct inode *inode, struct file *file,

defrag_count += ret;
balance_dirty_pages_ratelimited_nr(inode->i_mapping, ret);
i += ret;

if (newer_than) {
if (newer_off == (u64)-1)
Expand All @@ -1107,7 +1106,10 @@ int btrfs_defrag_file(struct inode *inode, struct file *file,
break;
}
} else {
i++;
if (ret > 0)
i += ret;
else
i++;
}
}

Expand Down

0 comments on commit cf3cf72

Please sign in to comment.