]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: fix argument to xfs_trans_add_item
authorEric Sandeen <sandeen@redhat.com>
Tue, 21 May 2019 16:03:21 +0000 (11:03 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 21 May 2019 16:03:21 +0000 (11:03 -0500)
commit31355f96af669ab0efb75f37f79707545dbbaaf4
tree9f408be30231a946b8d4443d663a719856b6b201
parent15b8fe6784d20af11d131bc77e13853d46b0ad9a
libxfs: fix argument to xfs_trans_add_item

The hack of casting an inode_log_item or buf_log_item to a
xfs_log_item_t is pretty gross; yes it's the first member in the
structure, but yuk.  Pass in the correct structure member.

This was fixed in the kernel with commit e98c414f9
("xfs: simplify log item descriptor tracking")

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/trans.c