From: Christoph Hellwig Date: Thu, 11 May 2017 19:01:07 +0000 (-0500) Subject: xfs: remove the ISUNWRITTEN macro X-Git-Tag: v4.12.0-rc1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef0b177931d3a1ba264aec144a43b2cb0f55e530;p=thirdparty%2Fxfsprogs-dev.git xfs: remove the ISUNWRITTEN macro Source kernel commit: 63fbb4c18d6b04d5f376326395cddf6c2de2c965 Opencoding the trivial checks makes it much easier to read (and grep..). Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_bmap_btree.h b/libxfs/xfs_bmap_btree.h index 819a8a4de..90347a99c 100644 --- a/libxfs/xfs_bmap_btree.h +++ b/libxfs/xfs_bmap_btree.h @@ -30,7 +30,6 @@ struct xfs_trans; #define XFS_EXTFMT_INODE(x) \ (xfs_sb_version_hasextflgbit(&((x)->i_mount->m_sb)) ? \ XFS_EXTFMT_HASSTATE : XFS_EXTFMT_NOSTATE) -#define ISUNWRITTEN(x) ((x)->br_state == XFS_EXT_UNWRITTEN) /* * Btree block header size depends on a superblock flag.