Commit 555bae04 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] loop: file use highmem

From: Hugh Dickins <hugh@veritas.com>

When loop restricts underlying file's allocation mask to avoid deadlock, it
unintentionally masks out its highmem capability, making failures at the
underlying level much more likely.
parent ecdd22ad
......@@ -714,7 +714,7 @@ static int loop_set_fd(struct loop_device *lo, struct file *lo_file,
goto out_putf;
}
lo->old_gfp_mask = inode->i_mapping->gfp_mask;
inode->i_mapping->gfp_mask = GFP_NOIO;
inode->i_mapping->gfp_mask &= ~(__GFP_IO|__GFP_FS);
set_blocksize(bdev, lo_blocksize);
......
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