btrfs: sink gfp parameter to set_extent_defrag
authorDavid Sterba <dsterba@suse.com>
Tue, 26 Apr 2016 21:54:39 +0000 (23:54 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 29 Apr 2016 09:01:47 +0000 (11:01 +0200)
Single caller passes GFP_NOFS.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.h
fs/btrfs/ioctl.c

index e99a6befdbf5deb0d4ac55f812001fc93314cddc..a1cf4b1dd290666acac09b52b97fd3263ef5a242 100644 (file)
@@ -299,11 +299,11 @@ static inline int set_extent_delalloc(struct extent_io_tree *tree, u64 start,
 }
 
 static inline int set_extent_defrag(struct extent_io_tree *tree, u64 start,
-               u64 end, struct extent_state **cached_state, gfp_t mask)
+               u64 end, struct extent_state **cached_state)
 {
        return set_extent_bit(tree, start, end,
                              EXTENT_DELALLOC | EXTENT_UPTODATE | EXTENT_DEFRAG,
-                             NULL, cached_state, mask);
+                             NULL, cached_state, GFP_NOFS);
 }
 
 static inline int set_extent_new(struct extent_io_tree *tree, u64 start,
index 5a23806ae418af8e3952b4cbf65df06aae384b57..72f48252a55dc552930a28ec74aef6a6b40f2eee 100644 (file)
@@ -1228,7 +1228,7 @@ again:
 
 
        set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1,
-                         &cached_state, GFP_NOFS);
+                         &cached_state);
 
        unlock_extent_cached(&BTRFS_I(inode)->io_tree,
                             page_start, page_end - 1, &cached_state,