From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755629Ab2LSQKI (ORCPT ); Wed, 19 Dec 2012 11:10:08 -0500 Received: from mail.parknet.co.jp ([210.171.160.6]:54569 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754454Ab2LSQKF (ORCPT ); Wed, 19 Dec 2012 11:10:05 -0500 From: OGAWA Hirofumi To: Namjae Jeon Cc: akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Namjae Jeon , Ravishankar N , Amit Sahrawat Subject: Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails References: <1353504311-6020-1-git-send-email-linkinjeon@gmail.com> <878v9f5ugn.fsf@devron.myhome.or.jp> <87k3sy17vk.fsf@devron.myhome.or.jp> <87txs0x45r.fsf@devron.myhome.or.jp> Date: Thu, 20 Dec 2012 01:10:01 +0900 In-Reply-To: (Namjae Jeon's message of "Sat, 15 Dec 2012 19:52:32 +0900") Message-ID: <87623ydnvq.fsf@devron.myhome.or.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Namjae Jeon writes: >> Okay, We will check how we can consolidate the 2 paths to avoid any issue. > Hi OGAWA. > > On checking fat_search_long() logic, it is observed that it performs > name based lookup of the entries in a given directory. > In fat_get_parent(), we do not have such information to use the > existing API to reconstruct the parent inode. > Could you give me some hint or guide to consolidate smoothly > fat_search_long and current traverse_logic ? Hm, start with copy of fat_search_long() and refactoring it. With it, we will be able to avoid the fixed bugs. After that, we might be able to merge those somehow. Well, I'm not pretty sure without doing it actually though. Thanks. -- OGAWA Hirofumi