From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH 2/2] vfs: Get rid of duplicate file_ops check in do_readv_writev() Date: Sun, 29 Sep 2013 23:24:53 +0100 Message-ID: <20130929222453.GP13318@ZenIV.linux.org.uk> References: <1380447470-2811-1-git-send-email-namhyung@kernel.org> <1380447470-2811-2-git-send-email-namhyung@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Namhyung Kim Return-path: Content-Disposition: inline In-Reply-To: <1380447470-2811-2-git-send-email-namhyung@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Sun, Sep 29, 2013 at 06:37:50PM +0900, Namhyung Kim wrote: > The file->f_op check in do_readv_writev() is redundant since all of > its caller (vfs_readv and vfs_writev) already did the check. The > same goes to compat_do_readv_writev(). ... and the right fix is to kill all those checks completely. I have that done in local queue; will push to #for-next tonight. file->f_op should never be NULL, period.