Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156512
b: refs/heads/master
c: ceab36e
h: refs/heads/master
v: v3
  • Loading branch information
Yan Zheng authored and Chris Mason committed Aug 7, 2009
1 parent 4c0d748 commit 8fe65ba
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 60f2e8f8a07331097a57ec4abcdc680405579377
refs/heads/master: ceab36edd3d3ad3ffd01d41d6d1e05ac1ff8357e
9 changes: 7 additions & 2 deletions trunk/fs/btrfs/relocation.c
Original file line number Diff line number Diff line change
Expand Up @@ -2553,8 +2553,13 @@ int relocate_inode_pages(struct inode *inode, u64 start, u64 len)
last_index = (start + len - 1) >> PAGE_CACHE_SHIFT;

/* make sure the dirty trick played by the caller work */
ret = invalidate_inode_pages2_range(inode->i_mapping,
first_index, last_index);
while (1) {
ret = invalidate_inode_pages2_range(inode->i_mapping,
first_index, last_index);
if (ret != -EBUSY)
break;
schedule_timeout(HZ/10);
}
if (ret)
goto out_unlock;

Expand Down

0 comments on commit 8fe65ba

Please sign in to comment.