From 135c7b501d261de84ae39d96cccab64001cb7cfc Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 9 Jan 2017 20:16:33 -0600 Subject: [PATCH] libxfs: synchronize dinode_verify with userspace Source kernel commit: 420fbeb4bff483d89dd8de9242b8fd83e2eb3527 The userspace version of _dinode_verify takes a raw inode number instead of an inode itself. Since neither version actually needs the inode, port the changes to the kernel. This will also reduce the libxfs diff noise. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- libxfs/xfs_inode_buf.c | 2 +- libxfs/xfs_inode_buf.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libxfs/xfs_inode_buf.c b/libxfs/xfs_inode_buf.c index 87323597d..3f2049b06 100644 --- a/libxfs/xfs_inode_buf.c +++ b/libxfs/xfs_inode_buf.c @@ -378,7 +378,7 @@ xfs_log_dinode_to_disk( } } -bool +static bool xfs_dinode_verify( struct xfs_mount *mp, xfs_ino_t ino, diff --git a/libxfs/xfs_inode_buf.h b/libxfs/xfs_inode_buf.h index 99f18218b..6848a0afb 100644 --- a/libxfs/xfs_inode_buf.h +++ b/libxfs/xfs_inode_buf.h @@ -73,8 +73,6 @@ void xfs_inode_to_disk(struct xfs_inode *ip, struct xfs_dinode *to, void xfs_inode_from_disk(struct xfs_inode *ip, struct xfs_dinode *from); void xfs_log_dinode_to_disk(struct xfs_log_dinode *from, struct xfs_dinode *to); -bool xfs_dinode_verify(struct xfs_mount *mp, xfs_ino_t ino, - struct xfs_dinode *dip); bool xfs_dinode_good_version(struct xfs_mount *mp, __u8 version); -- 2.47.2