Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755290AbbLXKEo (ORCPT ); Thu, 24 Dec 2015 05:04:44 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:52062 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755225AbbLXKE2 (ORCPT ); Thu, 24 Dec 2015 05:04:28 -0500 X-AuditID: cbfee61b-f793c6d00000236c-e9-567bc32a0cf6 From: Chao Yu To: Jaegeuk Kim Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] f2fs: add missing f2fs_balance_fs in __recover_dot_dentries Date: Thu, 24 Dec 2015 18:03:29 +0800 Message-id: <016401d13e32$784c7aa0$68e56fe0$@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: AdE+MkyFP4Dk+nQjQBCpNMWpIUj54Q== Content-language: zh-cn X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsVy+t9jQV2tw9VhBm+eclo8WT+L2eLSIneL y7vmsDkwe2xa1cnmsXvBZyaPz5vkApijuGxSUnMyy1KL9O0SuDJO//zGWHCapeLi2V3MDYw3 mbsYOTkkBEwkTn89yw5hi0lcuLeeDcQWEpjFKLHlFGcXIxeQ/YpR4k/DIRaQBJuAisTyjv9M ILYIkH1o0WWwZmYBD4nGju+sILawQIDEkllfwRawCKhKPL9yEizOK2ApcbxpPxuELSjxY/I9 FoheLYn1O48zQdjyEpvXvIU6TkFix9nXjBC79CS+LDkKVSMusfHILZYJjEBXIoyahWTULCSj ZiFpWcDIsopRIrUguaA4KT3XKC+1XK84Mbe4NC9dLzk/dxMjOIifSe9gPLzL/RCjAAejEg9v 4Z2qMCHWxLLiytxDjBIczEoivJ/2VYcJ8aYkVlalFuXHF5XmpBYfYpTmYFES5913KTJMSCA9 sSQ1OzW1ILUIJsvEwSnVwCh4YsG0da/nTDWOqU2+9vHy78KAm63RcpZLc9osL52Jco/fZfHz W7dHau2kT2+yf/LkRAhk+31zMvr+IiHMUL+wNCGCqefts937hNhcc7fd5La9WhY5a7FlhoTr nCqxh/qP8rILsvNNs6VfRrxhv39a4afrnmf8mcwzG0JylT8L2tW//+k6Q4mlOCPRUIu5qDgR AAQrFZBeAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 807 Lines: 30 __recover_do_dentries will try to grab free space in storage, so fix to add missing f2fs_balance_fs here. Signed-off-by: Chao Yu --- fs/f2fs/namei.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index e439f32..fb41c80 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -214,6 +214,8 @@ static int __recover_dot_dentries(struct inode *dir, nid_t pino) struct page *page; int err = 0; + f2fs_balance_fs(sbi); + f2fs_lock_op(sbi); de = f2fs_find_entry(dir, &dot, &page); -- 2.6.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/