Home
last modified time | relevance | path

Searched refs:jinode (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/fs/jbd2/
Dcommit.c190 int jbd2_journal_submit_inode_data_buffers(struct jbd2_inode *jinode) in jbd2_journal_submit_inode_data_buffers() argument
192 struct address_space *mapping = jinode->i_vfs_inode->i_mapping; in jbd2_journal_submit_inode_data_buffers()
196 .range_start = jinode->i_dirty_start, in jbd2_journal_submit_inode_data_buffers()
197 .range_end = jinode->i_dirty_end, in jbd2_journal_submit_inode_data_buffers()
210 int jbd2_submit_inode_data(struct jbd2_inode *jinode) in jbd2_submit_inode_data() argument
213 if (!jinode || !(jinode->i_flags & JI_WRITE_DATA)) in jbd2_submit_inode_data()
216 trace_jbd2_submit_inode_data(jinode->i_vfs_inode); in jbd2_submit_inode_data()
217 return jbd2_journal_submit_inode_data_buffers(jinode); in jbd2_submit_inode_data()
222 int jbd2_wait_inode_data(journal_t *journal, struct jbd2_inode *jinode) in jbd2_wait_inode_data() argument
224 if (!jinode || !(jinode->i_flags & JI_WAIT_DATA) || in jbd2_wait_inode_data()
[all …]
Dtransaction.c2640 static int jbd2_journal_file_inode(handle_t *handle, struct jbd2_inode *jinode, in jbd2_journal_file_inode() argument
2650 jbd_debug(4, "Adding inode %lu, tid:%d\n", jinode->i_vfs_inode->i_ino, in jbd2_journal_file_inode()
2654 jinode->i_flags |= flags; in jbd2_journal_file_inode()
2656 if (jinode->i_dirty_end) { in jbd2_journal_file_inode()
2657 jinode->i_dirty_start = min(jinode->i_dirty_start, start_byte); in jbd2_journal_file_inode()
2658 jinode->i_dirty_end = max(jinode->i_dirty_end, end_byte); in jbd2_journal_file_inode()
2660 jinode->i_dirty_start = start_byte; in jbd2_journal_file_inode()
2661 jinode->i_dirty_end = end_byte; in jbd2_journal_file_inode()
2665 if (jinode->i_transaction == transaction || in jbd2_journal_file_inode()
2666 jinode->i_next_transaction == transaction) in jbd2_journal_file_inode()
[all …]
Djournal.c2936 void jbd2_journal_init_jbd_inode(struct jbd2_inode *jinode, struct inode *inode) in jbd2_journal_init_jbd_inode() argument
2938 jinode->i_transaction = NULL; in jbd2_journal_init_jbd_inode()
2939 jinode->i_next_transaction = NULL; in jbd2_journal_init_jbd_inode()
2940 jinode->i_vfs_inode = inode; in jbd2_journal_init_jbd_inode()
2941 jinode->i_flags = 0; in jbd2_journal_init_jbd_inode()
2942 jinode->i_dirty_start = 0; in jbd2_journal_init_jbd_inode()
2943 jinode->i_dirty_end = 0; in jbd2_journal_init_jbd_inode()
2944 INIT_LIST_HEAD(&jinode->i_list); in jbd2_journal_init_jbd_inode()
2953 struct jbd2_inode *jinode) in jbd2_journal_release_jbd_inode() argument
2960 if (jinode->i_flags & JI_COMMIT_RUNNING) { in jbd2_journal_release_jbd_inode()
[all …]
/kernel/linux/linux-5.10/include/linux/
Djbd2.h1567 struct jbd2_inode *jinode);
1569 struct jbd2_inode *jinode);
1572 extern void jbd2_journal_init_jbd_inode(struct jbd2_inode *jinode, struct inode *inode);
1573 extern void jbd2_journal_release_jbd_inode(journal_t *journal, struct jbd2_inode *jinode);
1608 static inline void jbd2_free_inode(struct jbd2_inode *jinode) in jbd2_free_inode() argument
1610 kmem_cache_free(jbd2_inode_cache, jinode); in jbd2_free_inode()
1659 int jbd2_submit_inode_data(struct jbd2_inode *jinode);
1660 int jbd2_wait_inode_data(journal_t *journal, struct jbd2_inode *jinode);
/kernel/linux/linux-5.10/fs/ext4/
Dext4_jbd2.h422 EXT4_I(inode)->jinode, start_byte, length); in ext4_jbd2_inode_add_write()
431 EXT4_I(inode)->jinode, start_byte, length); in ext4_jbd2_inode_add_wait()
Dsuper.c505 static int ext4_journalled_submit_inode_data_buffers(struct jbd2_inode *jinode) in ext4_journalled_submit_inode_data_buffers() argument
507 struct address_space *mapping = jinode->i_vfs_inode->i_mapping; in ext4_journalled_submit_inode_data_buffers()
511 .range_start = jinode->i_dirty_start, in ext4_journalled_submit_inode_data_buffers()
512 .range_end = jinode->i_dirty_end, in ext4_journalled_submit_inode_data_buffers()
517 jinode->i_transaction); in ext4_journalled_submit_inode_data_buffers()
520 static int ext4_journal_submit_inode_data_buffers(struct jbd2_inode *jinode) in ext4_journal_submit_inode_data_buffers() argument
524 if (ext4_should_journal_data(jinode->i_vfs_inode)) in ext4_journal_submit_inode_data_buffers()
525 ret = ext4_journalled_submit_inode_data_buffers(jinode); in ext4_journal_submit_inode_data_buffers()
527 ret = jbd2_journal_submit_inode_data_buffers(jinode); in ext4_journal_submit_inode_data_buffers()
532 static int ext4_journal_finish_inode_data_buffers(struct jbd2_inode *jinode) in ext4_journal_finish_inode_data_buffers() argument
[all …]
Dinode.c131 if (!EXT4_I(inode)->jinode) in ext4_begin_ordered_truncate()
134 EXT4_I(inode)->jinode, in ext4_begin_ordered_truncate()
4163 struct jbd2_inode *jinode; in ext4_inode_attach_jinode() local
4165 if (ei->jinode || !EXT4_SB(inode->i_sb)->s_journal) in ext4_inode_attach_jinode()
4168 jinode = jbd2_alloc_inode(GFP_KERNEL); in ext4_inode_attach_jinode()
4170 if (!ei->jinode) { in ext4_inode_attach_jinode()
4171 if (!jinode) { in ext4_inode_attach_jinode()
4175 ei->jinode = jinode; in ext4_inode_attach_jinode()
4176 jbd2_journal_init_jbd_inode(ei->jinode, inode); in ext4_inode_attach_jinode()
4177 jinode = NULL; in ext4_inode_attach_jinode()
[all …]
Dfast_commit.c905 ret = jbd2_submit_inode_data(ei->jinode); in ext4_fc_submit_inode_data_all()
930 ret = jbd2_wait_inode_data(journal, pos->jinode); in ext4_fc_wait_inode_data_all()
Dext4.h1084 struct jbd2_inode *jinode; member