public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfs: use GFP_NOFS argument in radix_tree_preload
@ 2015-03-23  5:06 Sanidhya Kashyap
  2015-03-23  5:24 ` Dave Chinner
  0 siblings, 1 reply; 4+ messages in thread
From: Sanidhya Kashyap @ 2015-03-23  5:06 UTC (permalink / raw)
  To: david, xfs, linux-kernel
  Cc: taesoo, changwoo, sanidhya, blee, csong84, Sanidhya Kashyap

From: Byoungyoung Lee <blee@gatech.edu>

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@gatech.edu>
Signed-off-by: Sanidhya Kashyap <sanidhya.gatech@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-23  7:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-23  5:06 [PATCH] xfs: use GFP_NOFS argument in radix_tree_preload Sanidhya Kashyap
2015-03-23  5:24 ` Dave Chinner
2015-03-23  5:37   ` Taesoo Kim
2015-03-23  7:23     ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox