summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-12-09 16:10:15 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2016-12-10 12:39:45 -0800
commitaef73a61c01a4dca3f26c22df05039f78fe9d468 (patch)
treecbf489c3452ce925a65a736d7bfd0eac3e8a4f0c /fs/ocfs2
parentdbf896fc286a62bf215b904c6ff5d197df93e685 (diff)
downloadlinux-stable-aef73a61c01a4dca3f26c22df05039f78fe9d468.tar.gz
linux-stable-aef73a61c01a4dca3f26c22df05039f78fe9d468.tar.bz2
linux-stable-aef73a61c01a4dca3f26c22df05039f78fe9d468.zip
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: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r--fs/ocfs2/aops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 3c531f108a21..3372d82d12b6 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -2317,7 +2317,7 @@ static int ocfs2_dio_end_io_write(struct inode *inode,
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);