From: Darrick J. Wong Date: Tue, 10 Jan 2017 02:16:33 +0000 (-0600) Subject: libxfs: synchronize dinode_verify with userspace X-Git-Tag: v4.10.0-rc1~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=135c7b501d261de84ae39d96cccab64001cb7cfc;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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);