1 ext4: fix compile error when using BUFFER_TRACE
3 From: "zhangyi (F)" <yi.zhang@huawei.com>
5 Fix compile error below when using BUFFER_TRACE.
7 fs/ext4/inode.c: In function ‘ext4_expand_extra_isize’:
8 fs/ext4/inode.c:5979:19: error: request for member ‘bh’ in something not a structure or union
9 BUFFER_TRACE(iloc.bh, "get_write_access");
11 Fixes: c03b45b853f58 ("ext4, project: expand inode extra size if possible")
12 Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
13 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
14 Reviewed-by: Jan Kara <jack@suse.cz>
16 fs/ext4/inode.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
19 diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
20 index 22a9d81..b7384d5 100644
23 @@ -5976,7 +5976,7 @@ int ext4_expand_extra_isize(struct inode *inode,
25 ext4_write_lock_xattr(inode, &no_expand);
27 - BUFFER_TRACE(iloc.bh, "get_write_access");
28 + BUFFER_TRACE(iloc->bh, "get_write_access");
29 error = ext4_journal_get_write_access(handle, iloc->bh);