Commit aef73a61 authored by Darrick J. Wong's avatar Darrick J. Wong

ocfs2: fix bad pointer cast

generic/188 triggered a dmesg stack trace because the dio completion
was casting a buffer head to an on-disk inode, which is whacky.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent dbf896fc
...@@ -2317,7 +2317,7 @@ static int ocfs2_dio_end_io_write(struct inode *inode, ...@@ -2317,7 +2317,7 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
mlog_errno(ret); mlog_errno(ret);
} }
di = (struct ocfs2_dinode *)di_bh; di = (struct ocfs2_dinode *)di_bh->b_data;
ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment