[PATCH] btrfs: alleviate gfp flags in end_bio_extent_readpage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use of GFP_ATOMIC is not necessary in this context. This makes
consistent use of GFP_NOFS flag being passed to all funcions like
lock_extent_bits/unlock_extent_bits/set_extent_bit/clear_extent_bit.
(Then the mask argument could be later dropped and the flags used
directly at the allocation calls and not needlessly passed down the
call chain.)

Signed-off-by: David Sterba <dsterba@xxxxxxx>
---
 fs/btrfs/extent_io.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 0ada0b7..ac71bbf 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -1932,9 +1932,9 @@ static void end_bio_extent_readpage(struct bio *bio, int err)
 
 		if (uptodate) {
 			set_extent_uptodate(tree, start, end, &cached,
-					    GFP_ATOMIC);
+					    GFP_NOFS);
 		}
-		unlock_extent_cached(tree, start, end, &cached, GFP_ATOMIC);
+		unlock_extent_cached(tree, start, end, &cached, GFP_NOFS);
 
 		if (whole_page) {
 			if (uptodate) {
-- 
1.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux