Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753340AbbBGJhY (ORCPT ); Sat, 7 Feb 2015 04:37:24 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:31324 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751928AbbBGJhU (ORCPT ); Sat, 7 Feb 2015 04:37:20 -0500 X-AuditID: cbfee61a-f79c06d000004e71-bf-54d5dccd84a9 From: Chao Yu To: Jaegeuk Kim , Changman Lee Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH] f2fs: fix to use highmem for pages of newly created directory Date: Sat, 07 Feb 2015 17:36:15 +0800 Message-id: <002801d042b9$a9a12e40$fce38ac0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AdBCuBTWUG9yak6iRAiNFDlWAkbmYA== Content-language: zh-cn X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsVy+t9jAd2zd66GGLy+aGxxbV8jk8WT9bOY LS4tcre4vGsOmwOLx6ZVnWweuxd8ZvLo27KK0ePzJrkAligum5TUnMyy1CJ9uwSujKnPdzIW LOao+HjiMWMD4w+2LkZODgkBE4n7D1eyQNhiEhfurQeKc3EICSxilLi7eAIThPODUWLPx1fM IFVsAioSyzv+M4HYIgJeEpP2nwDrZhbwkGjs+M4KYgsL+Em8e9EBZrMIqErMaFoBZvMKWEo0 dZ5mh7AFJX5MvgfVqyWxeVsTK4QtL7F5zVtmiIsUJHacfc0IsUtP4nrHbyaIGnGJjUdusUxg FJiFZNQsJKNmIRk1C0nLAkaWVYyiqQXJBcVJ6bmGesWJucWleel6yfm5mxjBQf1MagfjygaL Q4wCHIxKPLwTkq+GCLEmlhVX5h5ilOBgVhLh3bYTKMSbklhZlVqUH19UmpNafIhRmoNFSZxX yb4tREggPbEkNTs1tSC1CCbLxMEp1cAo6uibPe3348+3dfkmzPxz+ba+07tpMo8OL7z2fEVr n5FuoUxE4IWpQkoTVi+R1ovhuv/wXcvn01XdH2/d2C9vtzxJZu/itrmPxOr9Djb/n3b04qbr p5SkbuXPsFz/IWgVq9e39mVvr69c6DKr49Z/7ZqLEm56cftu7Lh6/e9bKw75W9XPhWflCymx FGckGmoxFxUnAgCwr+j3ZgIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1275 Lines: 34 In commit a78186ebe516 ("f2fs: use highmem for directory pages"), we have set __GFP_HIGHMEM into dir mapping's gfp flag in f2fs_iget, so high address memory could be used for these existing dir's page. But we forgot to set flag for newly created dir, due to this reason, our newly created dir pages could not be allocated from high address memory. Fix it. Signed-off-by: Chao Yu --- fs/f2fs/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 547a2de..e79639a9 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -299,7 +299,7 @@ static int f2fs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) inode->i_op = &f2fs_dir_inode_operations; inode->i_fop = &f2fs_dir_operations; inode->i_mapping->a_ops = &f2fs_dblock_aops; - mapping_set_gfp_mask(inode->i_mapping, GFP_F2FS_ZERO); + mapping_set_gfp_mask(inode->i_mapping, GFP_F2FS_HIGH_ZERO); set_inode_flag(F2FS_I(inode), FI_INC_LINK); f2fs_lock_op(sbi); -- 2.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/