]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: port the bumplink function from the kernel
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:02 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:06 +0000 (17:01 -0700)
commita100cb413393cab246c29b77afbc14e807096dfa
tree48ed5c5e4f1921de974e37d185f812fcffaeddd4
parent7e74984e652fab200bc7319d7c3d90f6ae36be2e
libxfs: port the bumplink function from the kernel

Port the xfs_bumplink function from the kernel and use it to replace raw
calls to inc_nlink.  The next patch will need this common function to
prevent integer overflows in the link count.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/xfs_inode.h
libxfs/util.c
mkfs/proto.c
repair/phase6.c