]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: synchronize dinode_verify with userspace
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 10 Jan 2017 02:16:33 +0000 (20:16 -0600)
committerEric Sandeen <sandeen@redhat.com>
Tue, 10 Jan 2017 02:16:33 +0000 (20:16 -0600)
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 <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_inode_buf.c
libxfs/xfs_inode_buf.h

index 87323597d0ecab342fb3bc861b2b33819f47a9ba..3f2049b06f564e27c400402ebff75bd61b611ec6 100644 (file)
@@ -378,7 +378,7 @@ xfs_log_dinode_to_disk(
        }
 }
 
-bool
+static bool
 xfs_dinode_verify(
        struct xfs_mount        *mp,
        xfs_ino_t               ino,
index 99f18218b22f02507824be766db19963d5bfd8b0..6848a0afbce7a4db3b03938858ca0e591cbf40ef 100644 (file)
@@ -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);