From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: Re: [PATCH v4] mtd: Do not corrupt backing device of device node inode Date: Thu, 06 May 2010 09:39:19 +0300 Message-ID: <1273127959.3702.200.camel@localhost> References: <1273074054-11849-1-git-send-email-kirill@shutemov.name> Reply-To: dedekind1@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: David Woodhouse , Jan Kara , Alexander Viro , David Howells , Alexander Shishkin , linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, stable@kernel.org, linux-kernel@vger.kernel.org To: "Kirill A. Shutemov" Return-path: In-Reply-To: <1273074054-11849-1-git-send-email-kirill@shutemov.name> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, 2010-05-05 at 18:40 +0300, Kirill A. Shutemov wrote: > We cannot modify file->f_mapping->backing_dev_info, because it will c= orrupt > backing device of device node inode, since file->f_mapping is equal t= o > inode->i_mapping (see __dentry_open() in fs/open.c). >=20 > Let's introduce separate inode for MTD device with appropriate backin= g > device. >=20 > Signed-off-by: Kirill A. Shutemov > --- > Changelog: > v3 -> v4: > - Use igrab() instead of __iget inside the inode_lock; > - Add stable@ to CC list. > v2 -> v3: > - Rebase to mtd-2.6.git. > v1 -> v2: > - Fix error handling based on comments by Jan Kara. Pushed to l2-mtd-2.6.git / dunno Also added Jan's ack which disappeared in v4 --=20 Best Regards, Artem Bityutskiy (=D0=90=D1=80=D1=82=D1=91=D0=BC =D0=91=D0=B8=D1=82=D1=8E= =D1=86=D0=BA=D0=B8=D0=B9)