add patch fix-bigalloc-cluster-free-when-hole-punching-under-load
[ext4-patch-queue.git] / fix-compile-error-when-using-BUFFER_TRACE
blobefddce0b1453def42d0cfde36f61bc20569f49ee
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>
15 ---
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
21 --- a/fs/ext4/inode.c
22 +++ b/fs/ext4/inode.c
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);
30         if (error) {
31                 brelse(iloc->bh);
32 -- 
33 2.7.4