[PATCH] xfs: use GFP_NOFS argument in radix_tree_preload
Sanidhya Kashyap
sanidhya.gatech at gmail.com
Mon Mar 23 00:06:23 CDT 2015
From: Byoungyoung Lee <blee at 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 at gatech.edu>
Signed-off-by: Sanidhya Kashyap <sanidhya.gatech at 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
More information about the xfs
mailing list