OSDN Git Service

xfs: don't cast inode_log_items to get the log_item
authorChristoph Hellwig <hch@lst.de>
Sat, 29 Jun 2019 02:27:33 +0000 (19:27 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 29 Jun 2019 02:27:33 +0000 (19:27 -0700)
commitb3b14aacc6765eb908f13d0422d9b2d0cd822e14
treeecc02eb59f63ba49592e5ca48fb4855bfc1c4919
parent9ce632a28a41bd9aeeaa3913d95b23648a82c2ee
xfs: don't cast inode_log_items to get the log_item

The cast is not type safe, and we can just dereference the first
member instead to start with.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_inode.c