diff options
Diffstat (limited to 'fs/ocfs2/journal.c')
-rw-r--r-- | fs/ocfs2/journal.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c index 4c8f3557fe93..a70d49da2ceb 100644 --- a/fs/ocfs2/journal.c +++ b/fs/ocfs2/journal.c | |||
@@ -484,6 +484,22 @@ static struct ocfs2_triggers dq_triggers = { | |||
484 | }, | 484 | }, |
485 | }; | 485 | }; |
486 | 486 | ||
487 | static struct ocfs2_triggers dr_triggers = { | ||
488 | .ot_triggers = { | ||
489 | .t_commit = ocfs2_commit_trigger, | ||
490 | .t_abort = ocfs2_abort_trigger, | ||
491 | }, | ||
492 | .ot_offset = offsetof(struct ocfs2_dx_root_block, dr_check), | ||
493 | }; | ||
494 | |||
495 | static struct ocfs2_triggers dl_triggers = { | ||
496 | .ot_triggers = { | ||
497 | .t_commit = ocfs2_commit_trigger, | ||
498 | .t_abort = ocfs2_abort_trigger, | ||
499 | }, | ||
500 | .ot_offset = offsetof(struct ocfs2_dx_leaf, dl_check), | ||
501 | }; | ||
502 | |||
487 | static int __ocfs2_journal_access(handle_t *handle, | 503 | static int __ocfs2_journal_access(handle_t *handle, |
488 | struct inode *inode, | 504 | struct inode *inode, |
489 | struct buffer_head *bh, | 505 | struct buffer_head *bh, |
@@ -588,6 +604,20 @@ int ocfs2_journal_access_dq(handle_t *handle, struct inode *inode, | |||
588 | type); | 604 | type); |
589 | } | 605 | } |
590 | 606 | ||
607 | int ocfs2_journal_access_dr(handle_t *handle, struct inode *inode, | ||
608 | struct buffer_head *bh, int type) | ||
609 | { | ||
610 | return __ocfs2_journal_access(handle, inode, bh, &dr_triggers, | ||
611 | type); | ||
612 | } | ||
613 | |||
614 | int ocfs2_journal_access_dl(handle_t *handle, struct inode *inode, | ||
615 | struct buffer_head *bh, int type) | ||
616 | { | ||
617 | return __ocfs2_journal_access(handle, inode, bh, &dl_triggers, | ||
618 | type); | ||
619 | } | ||
620 | |||
591 | int ocfs2_journal_access(handle_t *handle, struct inode *inode, | 621 | int ocfs2_journal_access(handle_t *handle, struct inode *inode, |
592 | struct buffer_head *bh, int type) | 622 | struct buffer_head *bh, int type) |
593 | { | 623 | { |