Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ext4: fix compile error when using BUFFER_TRACE

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) <yi.zhang@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>

authored by

zhangyi (F) and committed by
Theodore Ts'o
ddccb6db 01215d3e

+1 -1
+1 -1
fs/ext4/inode.c
··· 5995 5995 5996 5996 ext4_write_lock_xattr(inode, &no_expand); 5997 5997 5998 - BUFFER_TRACE(iloc.bh, "get_write_access"); 5998 + BUFFER_TRACE(iloc->bh, "get_write_access"); 5999 5999 error = ext4_journal_get_write_access(handle, iloc->bh); 6000 6000 if (error) { 6001 6001 brelse(iloc->bh);