From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH v2] mtd: Do not corrupt backing device of device node inode From: Artem Bityutskiy To: Jan Kara In-Reply-To: <20100504111947.GB3398@quack.suse.cz> References: <1272922368-18517-1-git-send-email-kirill@shutemov.name> <20100504111947.GB3398@quack.suse.cz> Content-Type: text/plain; charset="UTF-8" Date: Tue, 04 May 2010 17:19:17 +0300 Message-ID: <1272982757.3702.16.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-kernel@vger.kernel.org, David Howells , Alexander Shishkin , linux-mtd@lists.infradead.org, Alexander Viro , linux-fsdevel@vger.kernel.org, "Kirill A. Shutemov" , David Woodhouse Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2010-05-04 at 13:19 +0200, Jan Kara wrote: > On Tue 04-05-10 00:32:48, Kirill A. Shutemov wrote: > > We cannot modify file->f_mapping->backing_dev_info, because it will corrupt > > backing device of device node inode, since file->f_mapping is equal to > > inode->i_mapping (see __dentry_open() in fs/open.c). > > > > Let's introduce separate inode for MTD device with appropriate backing > > device. > > > > Signed-off-by: Kirill A. Shutemov > The patch now looks correct to me. Acked-by: Jan Kara > Is this -stable material? -- Best Regards, Artem Bityutskiy (Артём Битюцкий)