]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: Replace XFS_BUF_SET_PTR with xfs_buf_associate_memory
authorEric Sandeen <sandeen@redhat.com>
Fri, 9 Mar 2018 02:35:22 +0000 (20:35 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 9 Mar 2018 02:35:22 +0000 (20:35 -0600)
commitfc9f709f5beeb2b89136662013fc0bb65828ca8f
treef6c78175ac9e32ea2a0d68d8723af0142d63b023
parentd97638251b67861786b3dbfeab6555c5ea3660b0
libxfs: Replace XFS_BUF_SET_PTR with xfs_buf_associate_memory

We test the return value of the macro, but it returns
returns a side-effect which looks like failure.  Write
a userspace-libxfs-specific version of xfs_buf_associate_memory
to make this code a tad more like the kernel, with a proper
return value to boot.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_io.h
libxlog/xfs_log_recover.c