Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753466AbZK3Gce (ORCPT ); Mon, 30 Nov 2009 01:32:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752597AbZK3Gce (ORCPT ); Mon, 30 Nov 2009 01:32:34 -0500 Received: from filer.fsl.cs.sunysb.edu ([130.245.126.2]:52103 "EHLO filer.fsl.cs.sunysb.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750920AbZK3Gcd (ORCPT ); Mon, 30 Nov 2009 01:32:33 -0500 Date: Mon, 30 Nov 2009 01:32:08 -0500 Message-Id: <200911300632.nAU6W8gd022170@agora.fsl.cs.sunysb.edu> From: Erez Zadok To: Valerie Aurora Cc: Jan Blunck , Alexander Viro , Christoph Hellwig , Andy Whitcroft , Scott James Remnant , Sandu Popa Marius , Jan Rekorajski , "J. R. Okajima" , Arnd Bergmann , Vladimir Dronnikov , Felix Fietkau , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Theodore Tso , linux-ext4@vger.kernel.org Subject: Re: [PATCH 14/41] whiteout: Split of ext2_append_link() from ext2_add_link() In-reply-to: Your message of "Wed, 21 Oct 2009 12:19:12 PDT." <1256152779-10054-15-git-send-email-vaurora@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1606 Lines: 42 In message <1256152779-10054-15-git-send-email-vaurora@redhat.com>, Valerie Aurora writes: > From: Jan Blunck > > The ext2_append_link() is later used to find or append a directory > entry to whiteout. > > Signed-off-by: Jan Blunck > Signed-off-by: Valerie Aurora > Cc: Theodore Tso > Cc: linux-ext4@vger.kernel.org > --- > fs/ext2/dir.c | 70 ++++++++++++++++++++++++++++++++++++++++---------------- > 1 files changed, 50 insertions(+), 20 deletions(-) > > diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c > index 6cde970..cb8ceff 100644 > --- a/fs/ext2/dir.c > +++ b/fs/ext2/dir.c > @@ -472,9 +472,10 @@ void ext2_set_link(struct inode *dir, struct ext2_dir_entry_2 *de, > } > > /* > - * Parent is locked. > + * Find or append a given dentry to the parent directory > */ > -int ext2_add_link (struct dentry *dentry, struct inode *inode) > +static ext2_dirent * ext2_append_entry(struct dentry * dentry, > + struct page ** page) I thought checkpatch didn't want to see spaces after a '*', so "struct foo * ptr" should become "struct foo *ptr". I also think that "struct page **page" should be renamed to "struct page **ppage" or "struct page **pages", to avoid confusion with many other functions which pass a "struct page *" pointer to a variable named "page". Erez. -- 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/