Return-Path: Received: from bombadil.infradead.org ([198.137.202.133]:51872 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933262AbeFUMW0 (ORCPT ); Thu, 21 Jun 2018 08:22:26 -0400 Date: Thu, 21 Jun 2018 05:22:25 -0700 From: Christoph Hellwig To: lorneli.cs@gmail.com Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] vfs: get inode after passing previous check in rw_verify_area() Message-ID: <20180621122225.GC14053@infradead.org> References: <1529576973-4340-1-git-send-email-lorneli.cs@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1529576973-4340-1-git-send-email-lorneli.cs@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Jun 21, 2018 at 06:29:33PM +0800, lorneli.cs@gmail.com wrote: > From: Lorne Li > > Move file_inode function to the front of line actually using inode. Why?