]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit071e488d4bbcc526707afdd20b2e4080bcb39d17
treeecc02eb59f63ba49592e5ca48fb4855bfc1c4919
parent8b2192040b7ac2dfa824eb9e71b050babf8e9e5c
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