From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH 3/17] afs: convert afs_dir_get_page to read_kmap_page Date: Thu, 12 Apr 2007 19:57:23 +0100 Message-ID: <29898.1176404243@redhat.com> References: <5c49b0ed0704121123x341d10afxfdf6930b4b26417b@mail.gmail.com> <20070412024938.27380.44677.patchbomb.py@localhost> <1273.1176375482@redhat.com> Cc: "Andrew Morton" , "Alexander Viro" , "Christoph Hellwig" , "Roman Zippel" , "Mikulas Patocka" , "David Woodhouse" , "Dave Kleikamp" , "Anton Altaparmakov" , "Evgeniy Dushistov" , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, reiserfs-dev@namesys.com To: "Nate Diller" Return-path: Received: from mx1.redhat.com ([66.187.233.31]:40752 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751328AbXDLS7D (ORCPT ); Thu, 12 Apr 2007 14:59:03 -0400 In-Reply-To: <5c49b0ed0704121123x341d10afxfdf6930b4b26417b@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Nate Diller wrote: > Hmmm you're right. Is your security work going into the next -mm? I don't know. Andrew hasn't said anything. Andrew? Are you waiting for it to go through DaveM's networking tree? > If so, I'll just re-base this cleanup patch on that ... at the very least I > want to get rid of afs_dir_put_page(). That's reasonable. > Also, did you consider passing the key pointer directly and modifying the > readpage actor to simply cast the pointer back, like > read_mapping_page(mapping, page, (struct file *)key)? It seems like a waste > to allocate a whole file struct on the stack just for the ->private field. There's one small problem with that... And that's filemap_nopage() (it passes vma->vm_file to readpage() unconditionally). Unless, of course, your patches fix that too... David