btrfs: sink gfp parameter to clear_extent_dirty
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)
Callers pass GFP_NOFS. No need to pass the flags around.

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

index 3bc88b4b0032ba5769422de2c249909fc77b9906..263823f28ba4e5d27f12fb1b9fb1d5439c93191c 100644 (file)
@@ -4392,7 +4392,7 @@ again:
                if (ret)
                        break;
 
-               clear_extent_dirty(unpin, start, end, GFP_NOFS);
+               clear_extent_dirty(unpin, start, end);
                btrfs_error_unpin_extent_range(root, start, end);
                cond_resched();
        }
index b1c6d7634e88284a1e468c399cbda6d3e88282d4..61b3dd25ba4c3ce81018e45a667f21c12120964d 100644 (file)
@@ -6408,7 +6408,7 @@ int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans,
                        ret = btrfs_discard_extent(root, start,
                                                   end + 1 - start, NULL);
 
-               clear_extent_dirty(unpin, start, end, GFP_NOFS);
+               clear_extent_dirty(unpin, start, end);
                unpin_extent_range(root, start, end, true);
                mutex_unlock(&fs_info->unused_bg_unpin_mutex);
                cond_resched();
index b7c258c9fa2d9a348acf831a8ba3f4f0698c7c25..9e987ee033612348e8b4037ca54e0809242657bc 100644 (file)
@@ -279,11 +279,11 @@ static inline int set_extent_dirty(struct extent_io_tree *tree, u64 start,
 }
 
 static inline int clear_extent_dirty(struct extent_io_tree *tree, u64 start,
-               u64 end, gfp_t mask)
+               u64 end)
 {
        return clear_extent_bit(tree, start, end,
                                EXTENT_DIRTY | EXTENT_DELALLOC |
-                               EXTENT_DO_ACCOUNTING, 0, 0, NULL, mask);
+                               EXTENT_DO_ACCOUNTING, 0, 0, NULL, GFP_NOFS);
 }
 
 int convert_extent_bit(struct extent_io_tree *tree, u64 start, u64 end,