From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751996AbbDOXug (ORCPT ); Wed, 15 Apr 2015 19:50:36 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:47866 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751402AbbDOXu0 (ORCPT ); Wed, 15 Apr 2015 19:50:26 -0400 Message-ID: <552EF937.6060108@fb.com> Date: Wed, 15 Apr 2015 17:50:15 -0600 From: Jens Axboe User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Al Viro CC: Dave Chinner , , , Andrew Morton , Christoph Hellwig , "Theodore Ts'o" , "Elliott, Robert (Server Storage)" Subject: Re: [PATCH 1/3] direct-io: only inc/dec inode->i_dio_count for file systems References: <1429135298-17153-1-git-send-email-axboe@fb.com> <1429135298-17153-2-git-send-email-axboe@fb.com> <20150415223620.GU13731@dastard> <20150415225625.GR889@ZenIV.linux.org.uk> <552EEECC.90008@fb.com> <20150415233051.GT889@ZenIV.linux.org.uk> In-Reply-To: <20150415233051.GT889@ZenIV.linux.org.uk> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.54.13] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-04-15_07:2015-04-15,2015-04-15,1970-01-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/15/2015 05:30 PM, Al Viro wrote: > On Wed, Apr 15, 2015 at 05:05:48PM -0600, Jens Axboe wrote: >> On 04/15/2015 04:56 PM, Al Viro wrote: >>> On Thu, Apr 16, 2015 at 08:36:20AM +1000, Dave Chinner wrote: >>> >>>> Bikeshedding: I think this would be better suited to inode_dio_begin() >>>> and inode_dio_end() because now we are trying to say "this is where >>>> the DIO starts, and this is where it ends". It's not really >>>> "reference counting" interface, we're trying to annotate the >>>> boundaries of where DIO iis protected against truncate.... >>> >>> *nod* >>> >>> And while we are at, inode_dio_begin() could be static inline just fine. >> >> Done (rename and docbook), and inode_dio_{begin.end}() made static inlines. >> >> v3 against vfs-next attached. > > Applied. Awesome, thanks! -- Jens Axboe