Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2394913ybi; Thu, 20 Jun 2019 14:26:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+Grig6n+MCMLNlywDM/q8HdC9xmzlnFHcvyBV2jvk3QROprrfWx7J6Pnd6Xe2M27mMv1X X-Received: by 2002:a17:90a:dd45:: with SMTP id u5mr1662567pjv.109.1561065981518; Thu, 20 Jun 2019 14:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561065981; cv=none; d=google.com; s=arc-20160816; b=0B/t+qPn+R9A0QhDlTSdyW1v9PpZbPJ5jGV4bpVwtV0cjRf51/EBstQZBVHk2gk/8o uu2GSmenElQ5ox/dRsF73kwxMzII6/IOEwV4mxvOfDWS+bs2DCXeSPKtAWwcQ/ExveM7 o0Jz8SNagS3sExhEzAgWDT0L2kKr7BEtykubV3wPvk5pkei+SIPfCVJipPvV1DICrv+h UqBj2wfAiaqVrO5/yZbVWNzWL866FTLxdiiCee/DrI++HO0QpW8wA2tE4Fd1CdylbGpn C9SZ7d6h7O9uyRIQUN6WBY/5Yzj42YlrSNgBt6Md+jbA7NpYt7KzN3As7qkwNRKzt4SW M/Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=z7yeWNDlrolP68FXZ0Ychsh0f/4mTPV1owheIRaf2MY=; b=stEGzdvP3M0bEGAUgPb/nSIK22NozhYiW8Qd4It7ZaWgOJ7Pul0ex2nWGMcdTf0X5V IZIE13PScCQlvgD028BZJrCthuHgeCwiKklswHPUC4Q5g3x6zj1l7zpEF2HIO2JLTKlx DY7J017aC4XeU7wYnVc4IOEmEvW+3PuIxKh00Gi6FGpLEuLrH+D4dbX6eGJI/eF/60jk XrQchr4zEsbCu6o+mHt1HyJZ7h/YBavZYS3NEXmTlvNy8oRO6TMb1BFiM5SKqZBgQjCP +rEqucbgERAA5iHEKurHhV+mU+aIVkQHBJXUG2WBdorDOqpaA1Q4OQN3OagnC2kNWIox 1Xag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn3si671433plb.321.2019.06.20.14.26.01; Thu, 20 Jun 2019 14:26:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726258AbfFTVZe (ORCPT + 99 others); Thu, 20 Jun 2019 17:25:34 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:54051 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725905AbfFTVZe (ORCPT ); Thu, 20 Jun 2019 17:25:34 -0400 Received: from callcc.thunk.org (guestnat-104-133-0-109.corp.google.com [104.133.0.109] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x5KLPHSK007114 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Jun 2019 17:25:18 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 86C56420484; Thu, 20 Jun 2019 17:25:17 -0400 (EDT) Date: Thu, 20 Jun 2019 17:25:17 -0400 From: "Theodore Ts'o" To: Ross Zwisler Cc: linux-kernel@vger.kernel.org, Ross Zwisler , Alexander Viro , Andreas Dilger , Jan Kara , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Fletcher Woodruff , Justin TerAvest , Jan Kara , stable@vger.kernel.org Subject: Re: [PATCH v2 2/3] jbd2: introduce jbd2_inode dirty range scoping Message-ID: <20190620212517.GC4650@mit.edu> Mail-Followup-To: Theodore Ts'o , Ross Zwisler , linux-kernel@vger.kernel.org, Ross Zwisler , Alexander Viro , Andreas Dilger , Jan Kara , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Fletcher Woodruff , Justin TerAvest , Jan Kara , stable@vger.kernel.org References: <20190620151839.195506-1-zwisler@google.com> <20190620151839.195506-3-zwisler@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190620151839.195506-3-zwisler@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Jun 20, 2019 at 09:18:38AM -0600, Ross Zwisler wrote: > diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h > index 5c04181b7c6d8..0e0393e7f41a4 100644 > --- a/include/linux/jbd2.h > +++ b/include/linux/jbd2.h > @@ -1397,6 +1413,12 @@ extern int jbd2_journal_force_commit(journal_t *); > extern int jbd2_journal_force_commit_nested(journal_t *); > extern int jbd2_journal_inode_add_write(handle_t *handle, struct jbd2_inode *inode); > extern int jbd2_journal_inode_add_wait(handle_t *handle, struct jbd2_inode *inode); > +extern int jbd2_journal_inode_ranged_write(handle_t *handle, > + struct jbd2_inode *inode, loff_t start_byte, > + loff_t length); > +extern int jbd2_journal_inode_ranged_wait(handle_t *handle, > + struct jbd2_inode *inode, loff_t start_byte, > + loff_t length); > extern int jbd2_journal_begin_ordered_truncate(journal_t *journal, > struct jbd2_inode *inode, loff_t new_size); > extern void jbd2_journal_init_jbd_inode(struct jbd2_inode *jinode, struct inode *inode); You're adding two new functions that are called from outside the jbd2 subsystem. To support compiling jbd2 as a module, we also need to add EXPORT_SYMBOL declarations for these two functions. I'll take care of this when applying this change. Thanks, applied. - Ted