diff options
| author | Mauricio Faria de Oliveira <[email protected]> | 2020-10-06 00:48:39 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2020-10-18 14:37:15 +0000 |
| commit | 342af94ec6c02aa478fe2adcd41b950e154b03ba (patch) | |
| tree | cffd8535ef90eae696c89f434dfabc313d3fac77 /fs/ext4/fast_commit.c | |
| parent | jbd2: introduce/export functions jbd2_journal_submit|finish_inode_data_buffers() (diff) | |
| download | kernel-342af94ec6c02aa478fe2adcd41b950e154b03ba.tar.gz kernel-342af94ec6c02aa478fe2adcd41b950e154b03ba.zip | |
jbd2, ext4, ocfs2: introduce/use journal callbacks j_submit|finish_inode_data_buffers()
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 <[email protected]>
Suggested-by: Jan Kara <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Andreas Dilger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions
