From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: [PATCH 1/3] VFS "stat light" out of fstatat, and fine grained flags Date: Tue, 07 Apr 2009 19:25:45 -0400 Message-ID: <49DBE0F9.7000207@garzik.org> References: <20090407231524.GA1569655@fiona.linuxhacker.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, LKML To: Oleg Drokin Return-path: Received: from srv5.dvmed.net ([207.36.208.214]:59439 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751978AbZDGXZs (ORCPT ); Tue, 7 Apr 2009 19:25:48 -0400 In-Reply-To: <20090407231524.GA1569655@fiona.linuxhacker.ru> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Oleg Drokin wrote: > Hello! > > This is reworked Mark Fasheh's patch + my earlier patch. > It allows one to specify which specific struct stat fields are needed > out of the fstatat call, and also a request to obtain most uptodate > information for inode (for NFS mostly). > > Also it adds AT_STAT_SELF flag to mean that the stat should be executed not > on a path, but on the passed filedecriptor itself. > > A first real kernel user for this added in loop block driver that does > not care about size or anything else besides rdev and inode number. > > I see various architectures replicate bits of vfs_*stat* in some compat > code, I am not sure if we need to update those as well or not. > > This patch does away with all the extra syscalls. linux-kernel should be included in the discussion of this syscall. Jeff