[Ocfs2-devel] [PATCH v5 2/4] jbd2, ext4, ocfs2: introduce/use journal callbacks j_submit|finish_inode_data_buffers()
Theodore Y. Ts'o
tytso at mit.edu
Thu Oct 8 19:08:00 PDT 2020
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 <mfo at canonical.com>
> Suggested-by: Jan Kara <jack at suse.cz>
> Reviewed-by: Jan Kara <jack at suse.cz>
> Reviewed-by: Andreas Dilger <adilger at dilger.ca>
Thanks, applied.
- Ted
More information about the Ocfs2-devel
mailing list