Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753210AbcLKCgn (ORCPT ); Sat, 10 Dec 2016 21:36:43 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:50262 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753033AbcLKCgm (ORCPT ); Sat, 10 Dec 2016 21:36:42 -0500 Date: Sun, 11 Dec 2016 02:36:27 +0000 From: Al Viro To: Miklos Szeredi Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org Subject: Re: [GIT PULL] readlink cleanup Message-ID: <20161211023620.GL1555@ZenIV.linux.org.uk> References: <20161210204145.GK2622@veci.piliscsaba.szeredi.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161210204145.GK2622@veci.piliscsaba.szeredi.hu> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 819 Lines: 21 On Sat, Dec 10, 2016 at 09:41:45PM +0100, Miklos Szeredi wrote: > Hi Al, > > Please pull from: > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git readlink > > This is a rework of the readlink cleanup patchset. Now readlink(2) does the > following: > > - if i_op->readlink() is non-NULL (only proc and afs mountpoints for now) then > it calls that; > - otherwise call i_op->get_link(); > - signature of ->readlink() now matches that of ->get_link(); > > This is against the #misc branch (the stats look better that way ;) I'm still not sure what does "vfs: convert ->readlink to same signature as ->get_link" buy us. If anything, the result appears to be more complex - you make freeing that buffer delayed (and introduce a dynamically allocated buffer in one case that didn't use it)...