ext4: do not reference pa_inode from group_pa
pa_inode in group_pa is set NULL in ext4_mb_new_group_pa, so pa_inode should be not referenced. Reported-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:

committed by
Theodore Ts'o

parent
384703b8e6
commit
60e07cf515
@@ -573,9 +573,9 @@ TRACE_EVENT(ext4_mb_release_inode_pa,
|
||||
);
|
||||
|
||||
TRACE_EVENT(ext4_mb_release_group_pa,
|
||||
TP_PROTO(struct ext4_prealloc_space *pa),
|
||||
TP_PROTO(struct super_block *sb, struct ext4_prealloc_space *pa),
|
||||
|
||||
TP_ARGS(pa),
|
||||
TP_ARGS(sb, pa),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( dev_t, dev )
|
||||
@@ -585,7 +585,7 @@ TRACE_EVENT(ext4_mb_release_group_pa,
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->dev = pa->pa_inode->i_sb->s_dev;
|
||||
__entry->dev = sb->s_dev;
|
||||
__entry->pa_pstart = pa->pa_pstart;
|
||||
__entry->pa_len = pa->pa_len;
|
||||
),
|
||||
|
Reference in New Issue
Block a user