[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240829072952.35335-1-kunwu.chan@linux.dev>
Date: Thu, 29 Aug 2024 15:29:52 +0800
From: Kunwu Chan <kunwu.chan@...ux.dev>
To: clm@...com,
josef@...icpanda.com,
dsterba@...e.com
Cc: linux-btrfs@...r.kernel.org,
linux-kernel@...r.kernel.org,
Kunwu Chan <chentao@...inos.cn>
Subject: [PATCH] btrfs: Remove duplicate 'unlikely()' usage
From: Kunwu Chan <chentao@...inos.cn>
nested unlikely() calls, IS_ERR already uses unlikely() internally
Signed-off-by: Kunwu Chan <chentao@...inos.cn>
---
fs/btrfs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 4b58306e1ef1..cc07ba7313b7 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -898,7 +898,7 @@ static int extent_range_clear_dirty_for_io(struct inode *inode, u64 start, u64 e
for (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;
--
2.41.0
Powered by blists - more mailing lists