xfs
[Top] [All Lists]

[PATCH] xfs: use GFP_NOFS argument in radix_tree_preload

To: david@xxxxxxxxxxxxx, xfs@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
Subject: [PATCH] xfs: use GFP_NOFS argument in radix_tree_preload
From: Sanidhya Kashyap <sanidhya.gatech@xxxxxxxxx>
Date: Mon, 23 Mar 2015 01:06:23 -0400
Cc: taesoo@xxxxxxxxxx, changwoo@xxxxxxxxxx, sanidhya@xxxxxxxxxx, blee@xxxxxxxxxx, csong84@xxxxxxxxxx, Sanidhya Kashyap <sanidhya.gatech@xxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=DG8DWEgh6X7h5/2wigyw8hpgLbVzF5DkHjgRYwZmC1g=; b=yJzqJYrRd9jOa/ivI09lt+UYyFDVRf9lT+X8Hc3nvVCQQULbuhVVuxxBpeGLj7jmqE kBAOWaNnKXWKBdDCXQqWzk3/7lx0DqqjO1A8PG9CBI6CWKy5DBCB4uEzeRBMOw6AHkm7 SR/PTsgvB0EDDdeyTcQybkvh5VorNwNZjItPxt1gFZHHAhmPV8JqjbhP72P2kV5LUvBZ G46TrnF+Bh0flBiI1wzjIJvMekifp5lyKLLX7LKEZHL9BpE7uJ8JK+rV/x2hpP3cQo1M 4e9Ldy/tUyLOx2NxNtooH2NIrqEP6WI0LuRyyqS8tocYbLPjrWK9USMBA7pdYpohwWrR 9oQg==
From: Byoungyoung Lee <blee@xxxxxxxxxx>

Following the convention of other file systems, GFP_NOFS
should be used as an argument for radix_tree_preload() instead
of GFP_KERNEL.

Signed-off-by: Byoungyoung Lee <blee@xxxxxxxxxx>
Signed-off-by: Sanidhya Kashyap <sanidhya.gatech@xxxxxxxxx>
---
 fs/xfs/xfs_mru_cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_mru_cache.c b/fs/xfs/xfs_mru_cache.c
index 30ecca3..f8a674d 100644
--- a/fs/xfs/xfs_mru_cache.c
+++ b/fs/xfs/xfs_mru_cache.c
@@ -437,7 +437,7 @@ xfs_mru_cache_insert(
        if (!mru || !mru->lists)
                return -EINVAL;
 
-       if (radix_tree_preload(GFP_KERNEL))
+       if (radix_tree_preload(GFP_NOFS))
                return -ENOMEM;
 
        INIT_LIST_HEAD(&elem->list_node);
-- 
2.1.0

<Prev in Thread] Current Thread [Next in Thread>