From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753207AbbCWFGk (ORCPT ); Mon, 23 Mar 2015 01:06:40 -0400 Received: from mail-yh0-f67.google.com ([209.85.213.67]:34623 "EHLO mail-yh0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752526AbbCWFGi (ORCPT ); Mon, 23 Mar 2015 01:06:38 -0400 From: Sanidhya Kashyap To: david@fromorbit.com, xfs@oss.sgi.com, linux-kernel@vger.kernel.org Cc: taesoo@gatech.edu, changwoo@gatech.edu, sanidhya@gatech.edu, blee@gatech.edu, csong84@gatech.edu, Sanidhya Kashyap Subject: [PATCH] xfs: use GFP_NOFS argument in radix_tree_preload Date: Mon, 23 Mar 2015 01:06:23 -0400 Message-Id: <1427087183-20391-1-git-send-email-sanidhya.gatech@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Byoungyoung Lee 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 Signed-off-by: Sanidhya Kashyap --- 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