>From 1d98bc7c3d2940c25ac2ca0cb0a3f6101a942671 Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Mon, 10 Aug 2015 11:06:11 +0200 Subject: [PATCH] jbd2: Debug sync handle from writeback Signed-off-by: Jan Kara --- fs/ext4/ext4_jbd2.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/ext4/ext4_jbd2.h b/fs/ext4/ext4_jbd2.h index 9c5b49fb281e..0a63b49caf4e 100644 --- a/fs/ext4/ext4_jbd2.h +++ b/fs/ext4/ext4_jbd2.h @@ -278,8 +278,13 @@ static inline int ext4_handle_valid(handle_t *handle) static inline void ext4_handle_sync(handle_t *handle) { - if (ext4_handle_valid(handle)) + if (ext4_handle_valid(handle)) { handle->h_sync = 1; + if (handle->h_type == EXT4_HT_WRITE_PAGE) { + printk(KERN_ERR "ext4: Writeback handle is sync!\n"); + dump_stack(); + } + } } static inline int ext4_handle_is_aborted(handle_t *handle) -- 2.1.4