Commit 6fd1e845 authored by Nathan Scott's avatar Nathan Scott

[XFS] Add back a missing pflags check in releasepage.

SGI Modid: xfs-linux:xfs-kern:166323a
parent 2c36b588
...@@ -410,7 +410,6 @@ map_unwritten( ...@@ -410,7 +410,6 @@ map_unwritten(
/* get an "empty" pagebuf to manage IO completion /* get an "empty" pagebuf to manage IO completion
* Proper values will be set before returning */ * Proper values will be set before returning */
pb = pagebuf_lookup(iomapp->iomap_target, 0, 0, 0); pb = pagebuf_lookup(iomapp->iomap_target, 0, 0, 0);
if (!pb) if (!pb)
return -EAGAIN; return -EAGAIN;
...@@ -1183,6 +1182,12 @@ linvfs_release_page( ...@@ -1183,6 +1182,12 @@ linvfs_release_page(
if (!(gfp_mask & __GFP_FS)) if (!(gfp_mask & __GFP_FS))
return 0; return 0;
/* If we are already inside a transaction or the thread cannot
* do I/O, we cannot release this page.
*/
if (PFLAGS_TEST_FSTRANS())
return 0;
/* /*
* Convert delalloc space to real space, do not flush the * Convert delalloc space to real space, do not flush the
* data out to disk, that will be done by the caller. * data out to disk, that will be done by the caller.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment