Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 229023
b: refs/heads/master
c: 6ac7248
h: refs/heads/master
i:
  229021: 01af66d
  229019: c3d1265
  229015: d04fa17
  229007: bd9ee09
  228991: 7cae01d
v: v3
  • Loading branch information
Christoph Hellwig authored and Alex Elder committed Dec 16, 2010
1 parent e9c65ca commit 35c2425
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 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: 221cb2517e8fc9a1d67c7a8a9c19fc5a916b583f
refs/heads/master: 6ac7248ec5f20cb44a063d7c7191b8e0068b5a28
15 changes: 7 additions & 8 deletions trunk/fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,8 @@ xfs_vm_writepage(
type = IO_NEW;

do {
int new_ioend = 0;

if (offset >= end_offset)
break;
if (!buffer_uptodate(bh))
Expand All @@ -1071,8 +1073,6 @@ xfs_vm_writepage(
imap_valid = xfs_imap_valid(inode, &imap, offset);

if (buffer_unwritten(bh) || buffer_delay(bh)) {
int new_ioend = 0;

if (buffer_unwritten(bh)) {
if (type != IO_UNWRITTEN) {
type = IO_UNWRITTEN;
Expand Down Expand Up @@ -1124,6 +1124,7 @@ xfs_vm_writepage(
imap_valid = 0;
}
if (!imap_valid) {
new_ioend = 1;
size = xfs_probe_cluster(inode, page, bh, head);
err = xfs_map_blocks(inode, offset, size,
&imap, flags);
Expand All @@ -1142,14 +1143,12 @@ xfs_vm_writepage(
* that we are writing into for the first time.
*/
type = IO_NEW;
if (trylock_buffer(bh)) {
if (imap_valid)
all_bh = 1;
if (imap_valid) {
all_bh = 1;
lock_buffer(bh);
xfs_add_to_ioend(inode, bh, offset, type,
&ioend, !imap_valid);
&ioend, new_ioend);
count++;
} else {
imap_valid = 0;
}
} else if (PageUptodate(page)) {
ASSERT(buffer_mapped(bh));
Expand Down

0 comments on commit 35c2425

Please sign in to comment.