From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF8791474D3 for ; Mon, 13 Jan 2025 04:09:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736741349; cv=none; b=TLLrfeBwUE/bAh84gd2wEV138mVDsNFK2SHEddsPbxstXfb3cRQZYE+q4ih3yT42xI4BiiGMBumo9o+P96QsbB1HflGfSBbvLVw6or4ZxIyl2e4joUW29a2sq+2c98t0Mt+0uMuvs5PCq97MO6em4/96m/WJY6JLungjjXNQIo0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736741349; c=relaxed/simple; bh=R2FfseSw7d1imReDcNeZTVe/QOfL+o70FOsQ2N9Qjc8=; h=Date:To:From:Subject:Message-Id; b=S7+UOW7wCFgU5Dl8KULVH3kD0wLa1phZqTf1w43BePFBWajt4eSeDxaQfimwqMRbesavOcKKdlC7y8Afcev/YL6UswW+GWFcczZFkeK0ELLXoxEa+W+ViKGoeGdbp14oqI4sz5ngxb+ovO0YXM/CHv9Vq5cEfjHhrkHURk4eoIk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=kj88jMm+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="kj88jMm+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59FAFC4CED6; Mon, 13 Jan 2025 04:09:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1736741348; bh=R2FfseSw7d1imReDcNeZTVe/QOfL+o70FOsQ2N9Qjc8=; h=Date:To:From:Subject:From; b=kj88jMm+8Sw774EfYvIh8wKJDbcJX752SAmAsHHjlxIFZ5PYVyrdcWxMmyjIkn8Cu S16ZeD24wU+m+ZuVfplNqNlnGWK0CpsVGd/I5++31HwMi0/hoCoN+Ctq2SOLXoXWeH 5v2nXdDG0Yz9hRb+/ZAUUBxxwR7rl9Mdhe8w5Lk4= Date: Sun, 12 Jan 2025 20:09:07 -0800 To: mm-commits@vger.kernel.org,willy@infradead.org,shikemeng@huaweicloud.com,akpm@linux-foundation.org From: Andrew Morton Subject: + xarray-remove-repeat-check-in-xas_squash_marks.patch added to mm-nonmm-unstable branch Message-Id: <20250113040908.59FAFC4CED6@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: Xarray: remove repeat check in xas_squash_marks() has been added to the -mm mm-nonmm-unstable branch. Its filename is xarray-remove-repeat-check-in-xas_squash_marks.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/xarray-remove-repeat-check-in-xas_squash_marks.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Kemeng Shi Subject: Xarray: remove repeat check in xas_squash_marks() Date: Fri, 13 Dec 2024 20:25:22 +0800 Caller of xas_squash_marks() has ensured xas->xa_sibs is non-zero. Just remove repeat check of xas->xa_sibs in xas_squash_marks(). Link: https://lkml.kernel.org/r/20241213122523.12764-5-shikemeng@huaweicloud.com Signed-off-by: Kemeng Shi Cc: Mattew Wilcox Signed-off-by: Andrew Morton --- lib/xarray.c | 3 --- 1 file changed, 3 deletions(-) --- a/lib/xarray.c~xarray-remove-repeat-check-in-xas_squash_marks +++ a/lib/xarray.c @@ -128,9 +128,6 @@ static void xas_squash_marks(const struc unsigned int mark = 0; unsigned int limit = xas->xa_offset + xas->xa_sibs + 1; - if (!xas->xa_sibs) - return; - do { unsigned long *marks = xas->xa_node->marks[mark]; if (find_next_bit(marks, limit, xas->xa_offset + 1) == limit) _ Patches currently in -mm which might be from shikemeng@huaweicloud.com are xarray-do-not-return-sibling-entries-from-xas_find_marked.patch xarray-move-forward-index-correctly-in-xas_pause.patch xarray-distinguish-large-entries-correctly-in-xas_split_alloc.patch xarray-remove-repeat-check-in-xas_squash_marks.patch xarray-use-xa_mark_t-in-xas_squash_marks-to-keep-code-consistent.patch