btrfs: pass __GFP_WRITE for buffered write page allocations
[deliverable/linux.git] / fs / btrfs / file.c
index 97fbe939c050dc7d523baeaed960741c053cbf0d..20375e6691c3903597f158c2b36406af9187e9ab 100644 (file)
@@ -1081,7 +1081,7 @@ static noinline int prepare_pages(struct btrfs_root *root, struct file *file,
 again:
        for (i = 0; i < num_pages; i++) {
                pages[i] = find_or_create_page(inode->i_mapping, index + i,
-                                              mask);
+                                              mask | __GFP_WRITE);
                if (!pages[i]) {
                        faili = i - 1;
                        err = -ENOMEM;
This page took 0.039732 seconds and 5 git commands to generate.