Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209985
b: refs/heads/master
c: b5420f2
h: refs/heads/master
i:
  209983: 074cf67
v: v3
  • Loading branch information
Christoph Hellwig authored and Dave Chinner committed Aug 24, 2010
1 parent b4f162b commit a6e0afc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 3b93c7aaefc05ee2a75e2726929b01a321402984
refs/heads/master: b5420f235953448eeae615b3361584dc5e414f34
9 changes: 6 additions & 3 deletions trunk/fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ xfs_vm_writepage(
* by themselves.
*/
if ((current->flags & (PF_MEMALLOC|PF_KSWAPD)) == PF_MEMALLOC)
goto out_fail;
goto redirty;

/*
* We need a transaction if there are delalloc or unwritten buffers
Expand All @@ -1080,7 +1080,7 @@ xfs_vm_writepage(
*/
xfs_count_page_state(page, &delalloc, &unwritten);
if ((current->flags & PF_FSTRANS) && (delalloc || unwritten))
goto out_fail;
goto redirty;

/* Is this page beyond the end of the file? */
offset = i_size_read(inode);
Expand Down Expand Up @@ -1245,12 +1245,15 @@ xfs_vm_writepage(
if (iohead)
xfs_cancel_ioend(iohead);

if (err == -EAGAIN)
goto redirty;

xfs_aops_discard_page(page);
ClearPageUptodate(page);
unlock_page(page);
return err;

out_fail:
redirty:
redirty_page_for_writepage(wbc, page);
unlock_page(page);
return 0;
Expand Down

0 comments on commit a6e0afc

Please sign in to comment.