From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([131.228.20.172] helo=mgw-ext13.nokia.com) by canuck.infradead.org with esmtps (Exim 4.63 #1 (Red Hat Linux)) id 1IIp17-0008BR-JY for linux-mtd@lists.infradead.org; Wed, 08 Aug 2007 13:08:50 -0400 Subject: Re: [Patch 05/18] fs/logfs/dir.c From: Artem Bityutskiy To: =?ISO-8859-1?Q?J=F6rn?= Engel In-Reply-To: <20070808161626.GG15319@lazybastard.org> References: <20070808161234.GB15319@lazybastard.org> <20070808161626.GG15319@lazybastard.org> Content-Type: text/plain; charset=utf-8 Date: Wed, 08 Aug 2007 20:07:34 +0300 Message-Id: <1186592854.19606.49.camel@sauron> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Cc: akpm@osdl.org, Arnd Bergmann , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, Thomas Gleixner , David Woodhouse Reply-To: dedekind@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2007-08-08 at 18:16 +0200, J=C3=B6rn Engel wrote: > +static inline void logfs_inc_count(struct inode *inode) > +{ > + inode->i_nlink++; > + mark_inode_dirty_sync(inode); > +} > + > +static inline void logfs_dec_count(struct inode *inode) > +{ > + inode->i_nlink--; > + mark_inode_dirty_sync(inode); > +} include/linux/fs.h: inode_inc_link_count() inode_dec_link_count() do this. Although not sure they exist in the old kernel your patches are against. --=20 Best regards, Artem Bityutskiy (=D0=91=D0=B8=D1=82=D1=8E=D1=86=D0=BA=D0=B8=D0=B9 =D0=90= =D1=80=D1=82=D1=91=D0=BC) From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: Re: [Patch 05/18] fs/logfs/dir.c Date: Wed, 08 Aug 2007 20:07:34 +0300 Message-ID: <1186592854.19606.49.camel@sauron> References: <20070808161234.GB15319@lazybastard.org> <20070808161626.GG15319@lazybastard.org> Reply-To: dedekind@infradead.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: akpm@osdl.org, Arnd Bergmann , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, Thomas Gleixner , David Woodhouse To: =?ISO-8859-1?Q?J=F6rn?= Engel Return-path: Received: from smtp.nokia.com ([131.228.20.172]:31942 "EHLO mgw-ext13.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763319AbXHHRIz convert rfc822-to-8bit (ORCPT ); Wed, 8 Aug 2007 13:08:55 -0400 In-Reply-To: <20070808161626.GG15319@lazybastard.org> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, 2007-08-08 at 18:16 +0200, J=C3=B6rn Engel wrote: > +static inline void logfs_inc_count(struct inode *inode) > +{ > + inode->i_nlink++; > + mark_inode_dirty_sync(inode); > +} > + > +static inline void logfs_dec_count(struct inode *inode) > +{ > + inode->i_nlink--; > + mark_inode_dirty_sync(inode); > +} include/linux/fs.h: inode_inc_link_count() inode_dec_link_count() do this. Although not sure they exist in the old kernel your patches are against. --=20 Best regards, Artem Bityutskiy (=D0=91=D0=B8=D1=82=D1=8E=D1=86=D0=BA=D0=B8=D0=B9 =D0=90= =D1=80=D1=82=D1=91=D0=BC) - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html