From: Christoph Hellwig Date: Tue, 13 Oct 2009 22:29:26 +0000 (+0200) Subject: repair: kill B_IS_META flag X-Git-Tag: v3.0.5~11^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08cee6230025e1adc94d8ad5908afbb457693e58;p=thirdparty%2Fxfsprogs-dev.git repair: kill B_IS_META flag B_IS_META is the inverse flag of B_IS_INODE which is not really obvious from it's use. So just use !B_IS_INODE to make it more clear. Signed-off-by: Christoph Hellwig Reviewed-by: Eric Sandeen --- diff --git a/repair/prefetch.c b/repair/prefetch.c index c049748e9..2c78db0d7 100644 --- a/repair/prefetch.c +++ b/repair/prefetch.c @@ -64,7 +64,6 @@ static void pf_read_inode_dirs(prefetch_args_t *, xfs_buf_t *); * the buffer is for an inode or other metadata. */ #define B_IS_INODE(f) (((f) & 5) == 0) -#define B_IS_META(f) (((f) & 5) != 0) #define DEF_BATCH_BYTES 0x10000 @@ -131,7 +130,7 @@ pf_queue_io( if (fsbno > args->last_bno_read) { radix_tree_insert(&args->primary_io_queue, fsbno, bp); - if (B_IS_META(flag)) + if (!B_IS_INODE(flag)) radix_tree_tag_set(&args->primary_io_queue, fsbno, 0); else { args->inode_bufs_queued++; @@ -153,7 +152,7 @@ pf_queue_io( (long long)XFS_BUF_ADDR(bp), args->agno, fsbno, args->last_bno_read); #endif - ASSERT(B_IS_META(flag)); + ASSERT(!B_IS_INODE(flag)); XFS_BUF_SET_PRIORITY(bp, B_DIR_META_2); radix_tree_insert(&args->secondary_io_queue, fsbno, bp); }