This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: Inode reference counting wrong for jffs2
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Thomas Koeller <thomas dot koeller at baslerweb dot com>
- Cc: ecos-patches at sources dot redhat dot com
- Date: Tue, 27 Jan 2004 11:50:07 +0100
- Subject: Re: Inode reference counting wrong for jffs2
- References: <200401091454.50876.thomas.koeller@baslerweb.com>
On Fri, Jan 09, 2004 at 02:54:50PM +0100, Thomas Koeller wrote:
> I found a bug fs-ecos.c. When creating a link, the
> code performed a check to ensure that the destination
> did not already exist. If no destination inode
> existed (the normal case), the code would nonetheless
> attempt to decrement its reference count. This would
> result in the reference count of the containing
> directory's inode instead.
>
> The patch below fixes this.
Committed,
Thanks
Andrew