Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752159AbbERF4s (ORCPT ); Mon, 18 May 2015 01:56:48 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:25484 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751177AbbERF4k (ORCPT ); Mon, 18 May 2015 01:56:40 -0400 X-AuditID: cbfee61b-f79536d000000f1f-bc-55597f17b76d From: Chao Yu To: Jaegeuk Kim , Changman Lee Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] f2fs: reserve space for tmpfile Date: Mon, 18 May 2015 13:55:53 +0800 Message-id: <002f01d0912f$67182370$35486a50$@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: AdCRLt5gHpEeKWOIQ5WgxEulVt0ffg== Content-language: zh-cn X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsVy+t9jQV3x+shQg9V7VC2u7Wtksniyfhaz xaVF7haXd81hc2Dx2LSqk81j94LPTB59W1YxenzeJBfAEsVlk5Kak1mWWqRvl8CV8XtKN1vB YZaKV0uaWBoYLzN3MXJySAiYSPyY3cUGYYtJXLi3Hsjm4hASmM4o8WDlF0YI5xWjxNNtu5hA qtgEVCSWd/wHs0UEvCQm7T/BAmIzC3hINHZ8ZwWxhYGm9nYcZQexWQRUJd7+nA+2gVfAUuLi 5XYoW1Dix+R7UL1aEut3HmeCsOUlNq95C3WdgsSOs68ZIXbpSTTtvskIUSMusfHILZYJjAKz kIyahWTULCSjZiFpWcDIsopRNLUguaA4KT3XSK84Mbe4NC9dLzk/dxMjOKifSe9gXNVgcYhR gINRiYfX4k1EqBBrYllxZe4hRgkOZiUR3sgzQCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8J/N9 QoUE0hNLUrNTUwtSi2CyTBycUg2Mq55a73DwkmXn26pvvWPaGdlVB11NfpfNcrmUMlHJ6lgx 79GIBSpqbNrnLfc+Ov404GadSX1KorW2sOjvd3rvVVZteVXCWXm28xR31NKFu5WLZZdML+0M fjthGaPCjK1PG1f2T+SUv7/z4xb+DonFi7WmbFHOUuUI2Pu9oegwp7jlt6zixfFOSizFGYmG WsxFxYkAaL1NdmYCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 30 Add missed f2fs_balance_fs to reserve space for ->tmpfile. Signed-off-by: Chao Yu --- fs/f2fs/namei.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index bed0cb0..38a783e 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -517,6 +517,9 @@ static int __f2fs_tmpfile(struct inode *dir, struct dentry *dentry, struct inode *inode; int err; + if (!whiteout) + f2fs_balance_fs(sbi); + inode = f2fs_new_inode(dir, mode); if (IS_ERR(inode)) return PTR_ERR(inode); -- 2.3.3 -- 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/