]>
Commit | Line | Data |
---|---|---|
4463d21a GKH |
1 | From ddccb6dbe780d68133191477571cb7c69e17bb8c Mon Sep 17 00:00:00 2001 |
2 | From: "zhangyi (F)" <yi.zhang@huawei.com> | |
3 | Date: Thu, 21 Feb 2019 11:29:10 -0500 | |
4 | Subject: ext4: fix compile error when using BUFFER_TRACE | |
5 | MIME-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | From: zhangyi (F) <yi.zhang@huawei.com> | |
10 | ||
11 | commit ddccb6dbe780d68133191477571cb7c69e17bb8c upstream. | |
12 | ||
13 | Fix compile error below when using BUFFER_TRACE. | |
14 | ||
15 | fs/ext4/inode.c: In function ‘ext4_expand_extra_isize’: | |
16 | fs/ext4/inode.c:5979:19: error: request for member ‘bh’ in something not a structure or union | |
17 | BUFFER_TRACE(iloc.bh, "get_write_access"); | |
18 | ||
19 | Fixes: c03b45b853f58 ("ext4, project: expand inode extra size if possible") | |
20 | Signed-off-by: zhangyi (F) <yi.zhang@huawei.com> | |
21 | Signed-off-by: Theodore Ts'o <tytso@mit.edu> | |
22 | Reviewed-by: Jan Kara <jack@suse.cz> | |
23 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
24 | ||
25 | --- | |
26 | fs/ext4/inode.c | 2 +- | |
27 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
28 | ||
29 | --- a/fs/ext4/inode.c | |
30 | +++ b/fs/ext4/inode.c | |
514377f9 | 31 | @@ -5971,7 +5971,7 @@ int ext4_expand_extra_isize(struct inode |
4463d21a GKH |
32 | |
33 | ext4_write_lock_xattr(inode, &no_expand); | |
34 | ||
35 | - BUFFER_TRACE(iloc.bh, "get_write_access"); | |
36 | + BUFFER_TRACE(iloc->bh, "get_write_access"); | |
37 | error = ext4_journal_get_write_access(handle, iloc->bh); | |
38 | if (error) { | |
39 | brelse(iloc->bh); |