diff options
author | changfengnan <changfengnan@bytedance.com> | 2022-10-08 20:05:18 +0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-12-01 10:46:54 -0500 |
commit | 5f3e240321dd00b251f91a37c70fc551a140c87b (patch) | |
tree | e82d59b2ede58ad0c19cb9eeb2f1aa1b095a459f /fs/ext4/ialloc.c | |
parent | e3ea75ee651daf5e434afbfdb7dbf75e200ea1f6 (diff) | |
download | linux-5f3e240321dd00b251f91a37c70fc551a140c87b.tar.gz linux-5f3e240321dd00b251f91a37c70fc551a140c87b.tar.bz2 linux-5f3e240321dd00b251f91a37c70fc551a140c87b.zip |
ext4: split ext4_journal_start trace for debug
we might want to know why jbd2 thread using high io for detail,
split ext4_journal_start trace to ext4_journal_start_sb and
ext4_journal_start_inode, show ino and handle type when possible.
Signed-off-by: changfengnan <changfengnan@bytedance.com>
Link: https://lore.kernel.org/r/20221008120518.74870-1-changfengnan@bytedance.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r-- | fs/ext4/ialloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index e9bc46684106..d701977678d4 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c @@ -1076,8 +1076,8 @@ repeat_in_this_group: if ((!(sbi->s_mount_state & EXT4_FC_REPLAY)) && !handle) { BUG_ON(nblocks <= 0); - handle = __ext4_journal_start_sb(dir->i_sb, line_no, - handle_type, nblocks, 0, + handle = __ext4_journal_start_sb(NULL, dir->i_sb, + line_no, handle_type, nblocks, 0, ext4_trans_default_revoke_credits(sb)); if (IS_ERR(handle)) { err = PTR_ERR(handle); |