From: KOSAKI Motohiro Subject: Re: [patch 2/4] vfs: filp is never NULL in do_generic_file_read() Date: Thu, 31 Jul 2008 16:19:08 +0900 Message-ID: <20080731161554.3C84.KOSAKI.MOTOHIRO@jp.fujitsu.com> References: <20080730130845.905327725@szeredi.hu> <20080730130914.500576799@szeredi.hu> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Cc: kosaki.motohiro@jp.fujitsu.com, viro@ZenIV.linux.org.uk, akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Miklos Szeredi Return-path: Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:34967 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752340AbYGaHUO (ORCPT ); Thu, 31 Jul 2008 03:20:14 -0400 In-Reply-To: <20080730130914.500576799@szeredi.hu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: > *ppos = ((loff_t)index << PAGE_CACHE_SHIFT) + offset; > - if (filp) > - file_accessed(filp); > + file_accessed(filp); > } > > int file_read_actor(read_descriptor_t *desc, struct page *page, if filp is never NULL, BUG_ON is better?