From patchwork Sun Sep 15 01:25:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13895532 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 201FEE7716D for ; Thu, 5 Dec 2024 15:19:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B7F4F6B00AF; Thu, 5 Dec 2024 10:19:09 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7A97D6B00AE; Thu, 5 Dec 2024 10:19:09 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 88A9C6B00AF; Thu, 5 Dec 2024 10:19:08 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id EFD4A6B0082 for ; Sat, 14 Sep 2024 21:26:01 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 9783512111A for ; Sun, 15 Sep 2024 01:26:01 +0000 (UTC) X-FDA: 82565231322.21.87E9DBE Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by imf25.hostedemail.com (Postfix) with ESMTP id C3033A000B for ; Sun, 15 Sep 2024 01:25:59 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=D50ifguU; spf=pass (imf25.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.54 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1726363452; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:dkim-signature; bh=Hbkb1onfh2EkXc2AjZWhGCQ5Ytvm5JYSUWP67zRmUZ8=; b=mbgF63B+9DfHOPqFUIgdMyKYDFXD+UWNqINDl+hTxKaUa19tG/9OTwDza2fVyXQMjQhh0w 7jyUGxPbdo8RycCRLzH8qSbTS/ZrEowqK1tOWCMazCufqsuY4oppZCCUWw2v+AvewT7BDS QFzMKmqCpi9+HEp2QQaQwiLXRj98ZcI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726363452; a=rsa-sha256; cv=none; b=266Ro/9zts4fyRo4dk2D4d4y/mAmX8phge5PFah5LXAN2EjUqPVk3+njCBGAgwU8AaOpbN nLWrm5qvA24wplWNW7a+yuZ2WJw1fJBm3iDzM6U31AiErByZt68HO1geuCRaaxVAUCWiSS ar9cJM920nnCQcp67HEiUYmeUu+4yyw= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=D50ifguU; spf=pass (imf25.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.54 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a8d29b7edc2so432217866b.1 for ; Sat, 14 Sep 2024 18:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726363558; x=1726968358; darn=kvack.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=Hbkb1onfh2EkXc2AjZWhGCQ5Ytvm5JYSUWP67zRmUZ8=; b=D50ifguUxj67eWTdt4RL2cMqPrpkxm1+TPUX1WgcZHUsb+o46QGFIVQbsonKOQq8Ky br9l9p5G7Se12cpgXLPMRaabsiM5u7FrEvfQ8Px3nTbL/6V5h5OWWzMkR8anQvxLyOAX 2RKRWeXNA+5h07KnWRL0/ur+f74gLpfy+TBYjHe6HN9WbMXwZrspzCWpb7mJgAA0Rvzm kBonk6Ts6W1AGmog39s3WU0dVHC6L2gpM/UoR0UBgojSI2TsAWXn7krLqyuk9ibFQ+JB fi9h/GU+5FTV4M8QkcYl1fEeG4siJsPk4TW8DsM1NlIwQCxZ6UPdOkp/AhZal7GjMUGw FmnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726363558; x=1726968358; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Hbkb1onfh2EkXc2AjZWhGCQ5Ytvm5JYSUWP67zRmUZ8=; b=d1gZJVf4yXDuabwdl1giezQbssVX0iv5MfMomg1jZG5mc/l2qCh7e5JowaP6KcDQAM JlFrpdzXkYeR2ImTBFBkb8AM/PQBGb9Xv9fniy81l+6bzdvYOA8Ws4YuQOOpswmUDEgo GsAzCgQ6ZUx9zi9CLLHSvoFZPUpZEShDgYIc0u4av4opbqQlZj6ddnu8HD3O1dtaA8Q2 YCZg2To8FBNB/CCjKjCzjk2ZTy7g569nXWLOnCpPloLCCSvpp4zHIzPdZQvv8RPq8gJL qvfqlNjxe3jInxDM/CMYtOn+xejbM9/5N7FkvB54b7mILmyDZkRoZ6/iDgXeSLRjYwD6 cqRw== X-Forwarded-Encrypted: i=1; AJvYcCWKWxSx/32OVAl2aMNMGg145cJNoh/ualDJNDWeCrKqR0obgZmFxlulFwhC2zkD81dIx8tOdRRrJw==@kvack.org X-Gm-Message-State: AOJu0YzZqWwrdINiqXXq/cwTijJAo+xdog5/VM2F3++k/31f/Bnu00zw l++Cuco84VtolSncRR0zSQ+TMdQ1VL7l5/FTMx9jVTGUGlJ1DWG8 X-Google-Smtp-Source: AGHT+IFr+HH5Zo1zZFu95fpsUztSPBjfHbK6s3u79Sie7wKCjkTxGlIxjbIs/2D0Y1FJYTASJmNCAQ== X-Received: by 2002:a17:907:72ca:b0:a8d:2d2e:90e6 with SMTP id a640c23a62f3a-a9029674fb4mr1147363966b.60.1726363557746; Sat, 14 Sep 2024 18:25:57 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb8a218sm1152492a12.62.2024.09.14.18.25.55 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 14 Sep 2024 18:25:56 -0700 (PDT) From: Wei Yang To: akpm@linux-foundation.org, Liam.Howlett@oracle.com Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, Wei Yang Subject: [PATCH 1/2] maple_tree: the new max of left side subtree has been set Date: Sun, 15 Sep 2024 01:25:47 +0000 Message-Id: <20240915012548.31724-2-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240915012548.31724-1-richard.weiyang@gmail.com> References: <20240915012548.31724-1-richard.weiyang@gmail.com> X-Rspamd-Queue-Id: C3033A000B X-Stat-Signature: yyxg4tj4kj3zfjzoxh76jpt8fexaj5bs X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1726363559-65133 X-HE-Meta: U2FsdGVkX19hGGtvxddF0SvroyqEhn+owP1noOAG0WHiIQfyTH9etXR/zaLNwoVGQomHZ49zvL/qe0jg471fxI77mMlI6borbqDuPmZYNmkK4S/ePFGJEsIfBd5cpgx/cQK4VVA11ue34UAKCXkjM3Kyb6UCpqaELq4zH37S/fePlzLmsk39/0bpMDI3qoXOGxOYTUQoDTvx75PiY2X7VI0+FzwNAw4MxQyA9/lbpwUdSVEqhQdluqmye9mHcWr3NtU7EjTloBnzudaNkU9ENJH+YYi2mP8Nwsn7pW81IEXur1KIIhnug40Apj2txvqpN8epAA4GwY8JIhJ3CW3xjbzRPtClw1pnIVfgPA+4h/S+FThyxcPbYlp4DKPD/meu7Sx92HvpVfOGM0QEe8H6clzHQJSwbfSSY6nXQBxZ4znmt4B3awDfGg/SgHmGNY64VFVYsel99Lw6et/Ak9dmUtTxXorQfaUpiv5dWTgadUFEi42j1Ug0Cg20E9ni9cLb+cj6CJBAxQu+Qdj4scshmfGorrPTu7bkth/U2YhYfrnMGhroum1n3HaHEx+MAHuRphEGK7SqOeGTiVNfniANr2TGoTFvFNxNM0qYbcj8HTm57DQiE+uvToh3It57R4IICKQ/YY2EYczXFdJvKCxcjtPGaSvtsPOOTtrJLtptCZnkrUmiv141O5zOLIztuxuDZHXRJrxHRbn9L/B/6YCgiQhwHzwa1XvdaHieCEfnyAJtkudVk8yIFVGqQ9aNqKMz1StmXOy0tzbfzl5Obn1a/+Z6FEgz082lvbQl8+7XShUKtTObJwkTxEjdDoT5ItgoXraxsmiXCEfIRKlTcPrf0Ngk8UcuaSpiXGXRIYQH8YbxM2kQTF8ucUpbiYaNgH3dA4NaWZbUdrO55olofk0LNHi5ExUi1K7SMtWzr85Tek67/bswj7gb1Sr7wICgp1m/uUOYvtN6TOiPfSDK3js SZAuWwpR ND2iqk34npZgpnpGvLxTNcr+RVcz2w//Hj6IzJsgVCtMiva/iwtbk39CvlkEulE547QkNCrRxjCEKR/nmZEZa6eC7UoRmNdlygwV58kMRy7iD7Ib6q9T+w/umNLb+yYhmn9FlctvNOu7paoepPe4tHPc5JDa68GX2GiiUAdB04MwZ8kCoOeZVwhmj5qht/24pcKG3MfrzDJjbn4Q098yG+ZyleaHaZW/o/sCdIOzX+n7IMu5fDGyHD3AnxL/7Qqk9Ymh7Gu+IkU9oB2YI40nrZRlti2Mtb5GzzVZVvEErMEfVdVHJDi54P8izrDjTmLLbLo7K7ThEN5fkWBRNswrb8BxIxZnDfUwlxkpD7ffI5xtG1oKwmIpVK0VXIjNQmHdgiscjORBcP6ZsmHciRVYWbiCehzOCJV09qhaWsmj44E/OUCJVzmV+91ZsX3tb4tOWRV97081c1NIHR0sYZS1qEC1KUBy9dCcuI8gYD1YQr7TsnV94wI5WGw8pd4eDIenhY9hrsrkGB+zc25/JA1GvVVa5gzinYfR/ohf9gVEHsalg/lng4YHyWu+Z7dI4KcfT+tgQ X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The max value has been updated in mab_mas_cp() on copying the left part. Not necessary to update it again. Signed-off-by: Wei Yang --- lib/maple_tree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 75e294d97e51..31964c5c677a 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3177,7 +3177,6 @@ static inline void mast_split_data(struct maple_subtree_state *mast, mte_set_pivot(mast->r->node, 0, mast->r->max); mab_mas_cp(mast->bn, split + 1, mast->bn->b_end, mast->r, false); mast->l->offset = mte_parent_slot(mas->node); - mast->l->max = mast->bn->pivot[split]; mast->r->min = mast->l->max + 1; if (mte_is_leaf(mas->node)) return; From patchwork Sun Sep 15 01:25:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13804615 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E0ABC35FE1 for ; Sun, 15 Sep 2024 01:26:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DF60B6B0083; Sat, 14 Sep 2024 21:26:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D7EA46B0088; Sat, 14 Sep 2024 21:26:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C46D06B0089; Sat, 14 Sep 2024 21:26:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id A8B4E6B0083 for ; Sat, 14 Sep 2024 21:26:04 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 5B58EC1136 for ; Sun, 15 Sep 2024 01:26:04 +0000 (UTC) X-FDA: 82565231448.07.C6C9B1F Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) by imf30.hostedemail.com (Postfix) with ESMTP id 9C8B480013 for ; Sun, 15 Sep 2024 01:26:02 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=g7SHPj80; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf30.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.52 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726363483; a=rsa-sha256; cv=none; b=HBkHv/k1ik+uuviP+Rn/wEWu5olkITvh3J9Oi1Zj/Xa3tCdtI2IeHP9JIdrHaOOye8edUa 5yDK9psFxFcbDmQcvgk588m5Rm+oThsWMBZbJPbuiN0/H98y3zpw6OB5qIZJ6F6BjPFnk/ nNUG5zbGndshA/0LZkV90C/rQ7wSJls= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=g7SHPj80; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf30.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.52 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1726363483; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:dkim-signature; bh=LwXzK57KhSWrPIrhtsWNseb3FjKQNSwwcTHophZJya4=; b=3ujAxq1syFSQv+tCXvqCfRcIYFckHIQRoaS4lpcW37nBl5d+pFCwH5fvuvl1qFeCP28bTp bImuYwobfv//Uh1WMSnQZteRPf24/Q52Ofua0PXY5j8Y+zHo5LzimeFJxV/UREv9sg7FLz LsyHVsmjThT1qoC1Ceh8VwYSR/gVKVU= Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-5c27067b81aso2410842a12.0 for ; Sat, 14 Sep 2024 18:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726363561; x=1726968361; darn=kvack.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=LwXzK57KhSWrPIrhtsWNseb3FjKQNSwwcTHophZJya4=; b=g7SHPj80xmvr2MFbnGnOYoMZBWW7f3Eeti54Ib+9uxemCqZAT8PDRwPF4oLTGIl3yQ E0pedeXnkL+kMnqvWBk/GPLD4qKG0c1WstK9LKdehRlwx0/vgwsxAhbtZRz21RF62pQs mrKLhSrhJhalPYGyEpf5938z6WP6ayCEZUst2a1K6ALJDr5O8ts0a1XEAV+3KVp+ZIaX xOHEo9OwSl6zfGpAMlKToh/oT6/DMtlK2ooMH4iwNOTQbxNxSYubfkiNglMPa2IhpHA8 2D080AigxuPRhHAhTp/GbwJupF5bxWnlVmU2/ASEqFV17tIRLtgcOJbjcI11qssnD7zt a1cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726363561; x=1726968361; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LwXzK57KhSWrPIrhtsWNseb3FjKQNSwwcTHophZJya4=; b=nDNEj7MwQvLxOm8ARsmZ9+mL/tozkSahpvrFFc1gdAEwdi22KmtVwaIyfSitywC6og OsOEzmOE2zutfaOl/q1Qav9T9vPAwmQEYfnUGz9hmA5sR3NZJ6Q+AmJ3okP0e1RY0vs5 DJO3oxf2hi+bt0dNvh2dpHhpcLdT+CwdA5ilHxDs9Nj6vT9UY+0ITJnBXTKwCWSvYtiP gJd/Ndy+5oGQRHUjf9KFiLeQa58gCdJKQ1Aa3dE2MTjw114dbZPB5ZKBvrgBLIcaG2Q4 vVEONb3mZuv+1zYP54eBMKMRSdCg7TIHei/eseBBgwBYCN+4cc8cwBefmQ5XZESGP/hY RwBA== X-Forwarded-Encrypted: i=1; AJvYcCVBkAYramdGq7W+6VRioh033ob3MdzlCQ3SpZDi8QQUCx6gPlStR9uJ/fjASQ86iy/WXojsZ1IkCA==@kvack.org X-Gm-Message-State: AOJu0YxHvB/uMKGADssnFO8m1BkmPN0NxUgW61facBq4E1uy20heYv2t NymrwcOLGUlP1E9DHlNyiNb55NxuHeWovHAe/8XjkeleBb+Mu3ij X-Google-Smtp-Source: AGHT+IF9x/OMAHSPbNH3t9z+qUkSfiU5khEV8Ulql6udsiqsWwU+/QHUUPboZOxECaddc+jpX+/J9w== X-Received: by 2002:a05:6402:50c8:b0:5c2:5d97:ec9c with SMTP id 4fb4d7f45d1cf-5c41df9df96mr6931373a12.1.1726363561157; Sat, 14 Sep 2024 18:26:01 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c42bb568basm1157220a12.37.2024.09.14.18.25.58 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 14 Sep 2024 18:25:59 -0700 (PDT) From: Wei Yang To: akpm@linux-foundation.org, Liam.Howlett@oracle.com Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, Wei Yang Subject: [PATCH 2/2] maple_tree: not necessary to set pivot 0 before mab_mas_cp() Date: Sun, 15 Sep 2024 01:25:48 +0000 Message-Id: <20240915012548.31724-3-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20240915012548.31724-1-richard.weiyang@gmail.com> References: <20240915012548.31724-1-richard.weiyang@gmail.com> X-Rspamd-Queue-Id: 9C8B480013 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: jfjgnhdusadofqi1rhfok6t3agbm9t1q X-HE-Tag: 1726363562-624221 X-HE-Meta: U2FsdGVkX18TThAVh4dQK4PSqvuWCF3tZKktAW56V73/N3fgUomVupXZmyc5+W0iAK+RnH6yNVzdbIzmWVj5n4EPo5Vq0l0lFBs+D6zlUXJAKu9iuiK//YXLOsGirHSbJ7rsqCdemE6ty/jxmqg7g9Rj8gIgtMr1LaJ2dGA2t6NUM8lnskjDP94FezDCvXanTJP7bwz9lXq/Rt3t+XMwvJqA2Nl5l4ncr2ZWTpCl3cFXOwlZyKaZ6kOw1JH+/GQmXYUEkNnJRvvwK5+gzDSEDLMWf0Wlx79tPexo3I7Q6p+tFrJBz40UkDnWultckZnEBc1Da9Q8cABIdMCifu6k5ckFOED9OVgSNPkl2tjFiTrIriZcVZUQiJ35ee3Wu2VOkAmVV7066sVfO7EmdFbsDw82bX8A2m9bTUjJoJHOGxs8WM+Ku6C+YfF2Y5HHkhXo70/mWvNGUjT4RJvWIXlqdpXgVbQQRopT2nrLDBxSv8+fCsSEHrZbNLU7HNrW0/s08+zdhUlxHZtMsYTpvgZzj8xH74lHP674BXypOB+FPuURXEvMBuc8A4RBh9c/Mv/eVNkA5WAMiKHo0AYDgoB3gdwd0fDSRddeRH/YhoOgz7Grq/DiTm2AAMZm5QVhDu346BBZifWaOh0mhdnqGRMqLCR2n9wQqCAx6azF+0gYZGIPSkr/n9tG4v3kKDg8vr8YCOGXcnbIpBJjJa7YPgswGuMaSRPqRIbG/3cJrWgT8FnqzCQhHFQcryZ+2aRYrBd/OKfpJ2dZPfRvrxjde9vr1K4r86NDHxHuZKu4+IW40nnzhNa6EoXZUNTq27s6g3J+bXJ4ZYqmDMmKZSr6ru5Q1+4Cg3moCxdxRDL+2FmCdhonflA7UmWlSAKTxwe1yjnn/dGIrC7VRQXtzLVLP3t1NftASxPrJD+vGbu89JYp9CfnCx6QHA0pWfp0sUM7sscUvWoDIsYBxFanRVysOmt SOiCuYQw eMvDBBtXvuoghGuwlOJwtemzo6CX729mikhIbfGo6LSKyRptlfGOOi7jBjRH1QElk3rtWVyb6113L3vs8hYVwmiRlz2JRLBQ6Delvqfjm+2VdQ1vozNLEiF21axcnzphaois/Gif/ja6fzZ8HPFlDSnHaYAwCI7Q5b0F/DuJtUmEpjUR5Xy1RAH90F4TC5PxQO6UFEFry2pSTP3YZ9xKJL7QcB9OrGVLLWxWovDg1pOrhyHPJ06/frDvPUmDKxFrtFFS4v0L25OfTdNpA089Wd2E9IkjQ71cNc1wOy5pJJbpdQIo1uCutix7SiGRGVf8mXANid1bNPd+yve2jQks/IXAMBXsSrLvv2IlIJRV1uZJJBW7XWmzWR8taABAjfSA4/nwDBgt0taUtscSR9r9IYQj3RRqzUxeQaz5BgFZKDJQHKMYpChpjvbHfk+ZHeUWv3Wvt4xIh+JUeSC/IN48XF1TJdAh+SGrS2vlZ+pBfT9TdatI= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000029, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: mab_mas_cp() at least copy one pivot, which is pivot 0. This means the pivot 0 set by mte_set_pivot() will be overwritten. Just remote this redundant code. Signed-off-by: Wei Yang --- lib/maple_tree.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 31964c5c677a..b02d812e1489 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3174,7 +3174,6 @@ static inline void mast_split_data(struct maple_subtree_state *mast, unsigned char p_slot; mab_mas_cp(mast->bn, 0, split, mast->l, true); - mte_set_pivot(mast->r->node, 0, mast->r->max); mab_mas_cp(mast->bn, split + 1, mast->bn->b_end, mast->r, false); mast->l->offset = mte_parent_slot(mas->node); mast->r->min = mast->l->max + 1;