Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1737092pxu; Thu, 8 Oct 2020 20:58:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnqf0OhP9LloA3jsouDVjeH1Yoh9u2Eu7z0SJBWgshWH4bZ5L1n7rEOulpwBBwo1qRLqXI X-Received: by 2002:a17:906:7f82:: with SMTP id f2mr11660738ejr.264.1602215887848; Thu, 08 Oct 2020 20:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602215887; cv=none; d=google.com; s=arc-20160816; b=HlmFZjNQTehhDmTuVqrf1/+caseBR29Vsi1VQINGS3GNxMXKJyVY0InhuGnKrehUEL ve8yXRdu+Ohm9ayO+3RaBZDm4eEJ+/kCOwJrIcI+jPeNUPppT68YdfD38XmBUIco/2QD O4sSkBnQBnpgY2ppxodWslv7PgwwfpECnT4eCmz1Dnefa0itvpCrsLrFV51vjJUxpTbj HrH6Qz0Klh7jiBTyOffy6veLxnGhIGjxLCzBRdosklXshLmjKilJod5ske+fuKF3ZwSd J9cWdEBydsI5YqFXWg5mHWgUiY4C6qDMQhdPmt8Hd6LDowVKffStjuc8CDpqJuU8kDnT sATQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=BHBv3Tp6he25c0vVyG9oAwBCB+axutTCnqtbGKlxJO0=; b=ENLbaFG6smc4eK0JKjONhJZi3WJU8KLAajrEHilwzcsfezfO4H5lmh+ObvvCwMzq5w qSrcscNp+V2vH39qMfBgL8OJFAgqoLm8DwAdr0MZGWW0P4uF4AILgpfeOzgbpLfct0px HMqgEHpEmS5fShcmkL8OBSd37Pw/MwTA0t8ecEo/282mbCcSZvWYWyuN4qku70xe5mdt t03Dtn0FO8MewKNbTkGIe0D+2Wu0fK78gzEYQXePwEEg2hpN28h1wOgn75ox/xMkkpLQ X5KJ/s7A+vyTLC3kQsEiWw+a5KFfPPQlNsbzYJMCWWnYNee7Z9TUfP7Neeri6voj6pfi juLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si4037973ejz.615.2020.10.08.20.57.44; Thu, 08 Oct 2020 20:58:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728007AbgJICIJ (ORCPT + 99 others); Thu, 8 Oct 2020 22:08:09 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:44313 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726567AbgJICIJ (ORCPT ); Thu, 8 Oct 2020 22:08:09 -0400 Received: from callcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 099280xf001838 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 8 Oct 2020 22:08:01 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 2EEC4420107; Thu, 8 Oct 2020 22:08:00 -0400 (EDT) Date: Thu, 8 Oct 2020 22:08:00 -0400 From: "Theodore Y. Ts'o" To: Mauricio Faria de Oliveira Cc: linux-ext4@vger.kernel.org, ocfs2-devel@oss.oracle.com, Jan Kara , Andreas Dilger , dann frazier , Joseph Qi Subject: Re: [PATCH v5 2/4] jbd2, ext4, ocfs2: introduce/use journal callbacks j_submit|finish_inode_data_buffers() Message-ID: <20201009020800.GF235506@mit.edu> References: <20201006004841.600488-1-mfo@canonical.com> <20201006004841.600488-3-mfo@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201006004841.600488-3-mfo@canonical.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Oct 05, 2020 at 09:48:39PM -0300, Mauricio Faria de Oliveira wrote: > Introduce journal callbacks to allow different behaviors > for an inode in journal_submit|finish_inode_data_buffers(). > > The existing users of the current behavior (ext4, ocfs2) > are adapted to use the previously exported functions > that implement the current behavior. > > Users are callers of jbd2_journal_inode_ranged_write|wait(), > which adds the inode to the transaction's inode list with > the JI_WRITE|WAIT_DATA flags. Only ext4 and ocfs2 in-tree. > > Both CONFIG_EXT4_FS and CONFIG_OCSFS2_FS select CONFIG_JBD2, > which builds fs/jbd2/commit.c and journal.c that define and > export the functions, so we can call directly in ext4/ocfs2. > > Signed-off-by: Mauricio Faria de Oliveira > Suggested-by: Jan Kara > Reviewed-by: Jan Kara > Reviewed-by: Andreas Dilger Thanks, applied. - Ted