From 7e8120667bb0aa5d9bddc4f64555bf90f65523d7 Mon Sep 17 00:00:00 2001 From: "zhangyi (F)" Date: Wed, 27 Mar 2019 22:18:31 +0800 Subject: [PATCH] ext4: fix compile error when using BUFFER_TRACE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mainline inclusion from mainline-5.1-rc1 commit ddccb6dbe780d68133191477571cb7c69e17bb8c category: bugfix bugzilla: 12933 CVE: NA ------------------------------------------------- Fix compile error below when using BUFFER_TRACE. fs/ext4/inode.c: In function ‘ext4_expand_extra_isize’: fs/ext4/inode.c:5979:19: error: request for member ‘bh’ in something not a structure or union BUFFER_TRACE(iloc.bh, "get_write_access"); Fixes: c03b45b853f58 ("ext4, project: expand inode extra size if possible") Signed-off-by: zhangyi (F) Signed-off-by: Theodore Ts'o Reviewed-by: Jan Kara Signed-off-by: koulihong Reviewed-by: yangerkun Signed-off-by: Yang Yingliang --- fs/ext4/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 78ecf2a0f4e7..b5e737fcbcb0 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -5981,7 +5981,7 @@ int ext4_expand_extra_isize(struct inode *inode, ext4_write_lock_xattr(inode, &no_expand); - BUFFER_TRACE(iloc.bh, "get_write_access"); + BUFFER_TRACE(iloc->bh, "get_write_access"); error = ext4_journal_get_write_access(handle, iloc->bh); if (error) { brelse(iloc->bh); -- GitLab