Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129004
b: refs/heads/master
c: f2b1c41
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Nov 10, 2008
1 parent 0cf97a5 commit 3ebafe3
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 5b7c3fcc46b5deb8a368d5319cf87c78c2df65fe
refs/heads/master: f2b1c41cf94d7f839fe9ede5f3ead92698a93fb3
3 changes: 2 additions & 1 deletion trunk/fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,8 @@ static noinline int lock_delalloc_pages(struct inode *inode,
*/
if (pages[i] != locked_page) {
lock_page(pages[i]);
if (pages[i]->mapping != inode->i_mapping) {
if (!PageDirty(pages[i]) ||
pages[i]->mapping != inode->i_mapping) {
ret = -EAGAIN;
unlock_page(pages[i]);
page_cache_release(pages[i]);
Expand Down

0 comments on commit 3ebafe3

Please sign in to comment.