btrfs: Remove duplicate 'unlikely()' usage
PATCH 1/1 btrfs: Remove duplicate 'unlikely()' usage
From: Kunwu Chan <[email protected]>
nested unlikely() calls, IS_ERR already uses unlikely() internally
Signed-off-by Kunwu Chan <[email protected]>
--- fs/btrfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/inode.c +1 -1
@@ -898,7 +898,7 @@ static int extent_range_clear_dirty_for_io(struct inode *inode, u64 start, u64 efor (unsigned long index = start >>PAGE_SHIFT ; index <= end_index; index++) { folio =__filemap_get_folio (inode->i_mapping, index,0 ,0 ); -if (unlikely (IS_ERR (folio))) { +if (IS_ERR (folio)) {if (!ret) ret =PTR_ERR (folio);continue ;
Signature · 1 line
2.41.0
Quoted 5 lines · Kunwu Chan
From: Kunwu Chan <[email protected]>
nested
unlikely()calls,IS_ERRalready usesunlikely()internallySigned-off-by Kunwu Chan <[email protected]>
Thanks for noticing it, I've folded the change to the patch "btrfs:
convert extent_range_clear_dirty_for_io() to use a folio"