From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [RFC PATCH] vfs: export lseek_execute() to modules Date: Mon, 24 Jun 2013 05:55:13 -0700 Message-ID: <20130624125513.GA7921@infradead.org> References: <51C832F8.2090707@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org To: Jeff Liu Return-path: Received: from bombadil.infradead.org ([198.137.202.9]:43540 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751232Ab3FXMzO (ORCPT ); Mon, 24 Jun 2013 08:55:14 -0400 Content-Disposition: inline In-Reply-To: <51C832F8.2090707@oracle.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Jun 24, 2013 at 07:52:24PM +0800, Jeff Liu wrote: > From: Jie Liu > > For those file systems(btrfs/ext4/xfs/ocfs2/tmpfs) that support > SEEK_DATA/SEEK_HOLE functions, we end up handling the similar > matter in lseek_execute() to verify the final offset. > > To reduce the duplications, this patch make lseek_execute() public > accessible so that we can call it directly from them. > > Thanks Dave Chinner for this suggestion. Please add a kerneldoc comment explaining the use of this function.