Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201744
b: refs/heads/master
c: 3d9b02e
h: refs/heads/master
v: v3
  • Loading branch information
Eric Sandeen authored and Alex Elder committed Jul 26, 2010
1 parent 9a807d7 commit acd7f4a
Show file tree
Hide file tree
Showing 2 changed files with 11 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: b4e9181e772b0c8b9038c5822ead368b96c2b533
refs/heads/master: 3d9b02e3c76531687ab5314e0edf266256f13c2d
10 changes: 10 additions & 0 deletions trunk/fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,16 @@ xfs_page_state_convert(
continue;
}

/*
* A hole may still be marked uptodate because discard_buffer
* leaves the flag set.
*/
if (!buffer_mapped(bh) && buffer_uptodate(bh)) {
ASSERT(!buffer_dirty(bh));
imap_valid = 0;
continue;
}

if (imap_valid)
imap_valid = xfs_imap_valid(inode, &imap, offset);

Expand Down

0 comments on commit acd7f4a

Please sign in to comment.