Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751786AbcLEPho (ORCPT ); Mon, 5 Dec 2016 10:37:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59652 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751455AbcLEPhm (ORCPT ); Mon, 5 Dec 2016 10:37:42 -0500 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20161204160504.GG1555@ZenIV.linux.org.uk> References: <20161204160504.GG1555@ZenIV.linux.org.uk> <147986254484.19139.8038609825799670925.stgit@warthog.procyon.org.uk> <147986255194.19139.9583434946564699577.stgit@warthog.procyon.org.uk> <20161204043803.GA1022@ZenIV.linux.org.uk> To: Al Viro Cc: dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available [ver #3] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13726.1480952259.1@warthog.procyon.org.uk> Date: Mon, 05 Dec 2016 15:37:39 +0000 Message-ID: <13727.1480952259@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 05 Dec 2016 15:37:41 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 802 Lines: 17 Al Viro wrote: > > I understand wanting to avoid extra arguments, but you are asking for > > trouble with that sort of calling conventions. Verifying that all call > > chains have these fields initialized is bloody unpleasant and it *is* > > going to break, especially since the rules are "you need to initialize it > > for vfs_xgetattr(), but not for vfs_getattr()" - the names are similar > > enough for confusion, and that's not the only such pair. > > BTW, after some grepping: you seem to leave ecryptfs_getattr() as-is, which > means that flags it had been passed by caller in *stat are not seen by > underlying fs. Looks fishy... I have patches for some other filesystems as well, but I'm trying to nail the core down before whipping those back into shape. David