logfs: remove null check on block->alias_map as it is an array
PATCH 1/1 logfs: remove null check on block->alias_map as it is an array
From: Colin Ian King <[email protected]>
block->alias_map is an array of unsigned longs and so the null check on block->alias_map is unneccessary, so remove it.
Signed-off-by Colin Ian King <[email protected]>
--- fs/logfs/readwrite.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
fs/logfs/readwrite.c +2 -3
@@ -1279,9 +1279,8 @@ static void fill_shadow_tree(struct inode *inode, struct page *page,struct shadow_tree *tree = &super->s_shadow_tree;if (PagePrivate (page)) { -if (block->alias_map) - super->s_no_object_aliases -=bitmap_weight ( - block->alias_map,LOGFS_BLOCK_FACTOR ); + super->s_no_object_aliases -=bitmap_weight ( + block->alias_map,LOGFS_BLOCK_FACTOR );logfs_handle_transaction (inode, block->ta); block->ops->free_block (inode->i_sb, block); }
Signature · 1 line
2.9.3