Skip to content
Commit dc0b9435 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs: Don't use GFP_NOFS in gfs2_unstuff_dinode



Revert the rest of commit 220cca2a ("GFS2: Change truncate page
allocation to be GFP_NOFS"):

In gfs2_unstuff_dinode(), there is no need to carry out the page cache
allocation under GFP_NOFS because inodes on the "regular" filesystem are
never un-inlined under memory pressure, so switch back from
find_or_create_page() to grab_cache_page() here as well.

Inodes on the "metadata" filesystem can theoretically be un-inlined
under memory pressure, but any page cache allocations in that context
would happen in GFP_NOFS context because those inodes have
inode->i_mapping->gfp_mask set to GFP_NOFS (see the previous patch).

Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 111c7d27
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment