From patchwork Fri Dec 29 11:36:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Elfring X-Patchwork-Id: 13506450 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 22D87C46CD3 for ; Fri, 29 Dec 2023 11:36:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6B7E36B0112; Fri, 29 Dec 2023 06:36:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 668486B0113; Fri, 29 Dec 2023 06:36:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 557776B0114; Fri, 29 Dec 2023 06:36:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 484396B0112 for ; Fri, 29 Dec 2023 06:36:27 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id F2A2940855 for ; Fri, 29 Dec 2023 11:36:26 +0000 (UTC) X-FDA: 81619652772.04.25480EF Received: from mout.web.de (mout.web.de [212.227.17.11]) by imf13.hostedemail.com (Postfix) with ESMTP id F26E320022 for ; Fri, 29 Dec 2023 11:36:24 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=web.de header.s=s29768273 header.b=enI5zDCb; spf=pass (imf13.hostedemail.com: domain of Markus.Elfring@web.de designates 212.227.17.11 as permitted sender) smtp.mailfrom=Markus.Elfring@web.de; dmarc=pass (policy=quarantine) header.from=web.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1703849785; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=aXFs6k4FKZGqWi8lpCNlY40oSAoS68g/ShH6LSh/q9I=; b=HpWeKcK13gSf0tPopBjxMBSQ9vHt8z6d2rprIMX0tSLtwNLwO5fSL5hsBmbktPs3VBHdhF Xf/modHGpbEhkIW0fkqmW5MsqR1xrAkBjmd/BbZE/Vdr5t1DEhDTjnO96iPcjaiDMZ851b 8ldx8TaiqdC32nkdxi+Hkq2Fc4TcCpY= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=web.de header.s=s29768273 header.b=enI5zDCb; spf=pass (imf13.hostedemail.com: domain of Markus.Elfring@web.de designates 212.227.17.11 as permitted sender) smtp.mailfrom=Markus.Elfring@web.de; dmarc=pass (policy=quarantine) header.from=web.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703849785; a=rsa-sha256; cv=none; b=QgUcKVOoR8DOP2YOV2uiJGLnpnYt5ZIgojsByDzV2MUi07xkNoxyghHK8Qs5AE8g0xBtnT VULkcdvK2okM/mTm3G8RlOSaFi4mgsrjq9jfj9mu+E3tGgmZdtJlFpSDi5AzBhNFnjC+EU JVyIk/odWDGBNuywqttrndMsuWMjZjE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1703849778; x=1704454578; i=markus.elfring@web.de; bh=bT5iUlJtBnPgfkwMqM8aRFxOKOnLJ2N+sHYoEYyh7V4=; h=X-UI-Sender-Class:Date:To:Cc:From:Subject; b=enI5zDCbX5rYVHnR7JDklsELQf8i+V/dpaxEp1oyPuu/dbNGyxNQhk8xl3oMn18U cUHENFPfFnsinQawf4rYMYh9y+5HCl3exIUllB+yushuliX9NHYmivk5VCdDN9Xzl k7gm0gNrFAXwW6hLTK8pcEXk59JnXeDh3e6Gf8QDgnUPKhJ/BcnjQ8vcXjWMbC834 3jUDqpHiTue51YApWSEOcWu11epCICRiUxfOfz8S4uUpAlFu3ZpkKawgBi9KtRl8S GTFO0saoG7ElmZfggAdQSYUeSv/rujUUi0WyX248RcSjCOoFGPVjQi9/qAauU68He Ktv3kPE5Lpx7UBMrbg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.85.95]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1M9ZeA-1rMUXm0Er6-00619G; Fri, 29 Dec 2023 12:36:18 +0100 Message-ID: <9ce3f553-24bc-4ecd-ac5e-7ba27caeff57@web.de> Date: Fri, 29 Dec 2023 12:36:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: linux-mm@kvack.org, kernel-janitors@vger.kernel.org, Muchun Song Content-Language: en-GB Cc: LKML From: Markus Elfring Subject: [PATCH 0/2] hugetlbfs: Adjustments for two function implementations X-Provags-ID: V03:K1:zmPL3zuCMseUMikKu19QGDmehHT65Bw9/KBE14p6VW8VcZbbwU9 kMz+gvKyg0RS7WjualXdj8hhNOBNOtbBozcD6Qv/4N/uLes/2gChUoUk6slayJ33ES9tiCr YpUdQmwqcmsAeblm3zwFHm2No9DyuHQu3so+nimsij8aHohnax6FU1gOgggtg8SBmx2i2Ao VQlJUXikmtCsv664qyjOw== UI-OutboundReport: notjunk:1;M01:P0:IR5K9XE0/K8=;J6XN6ruCw9rw7+bIfDOaCtu7NSF TAgN9EanRBWN0tMe/2bHAc60yNnXHvJR2N094yHmsfL6nG7ZvBxwul0+vW1H2JkJ/T1mVIecv lsBEGugr/9+5E/QLFe7oS+hRZUqlEFvkdHZgzq92665iceODLioZNT3tfS7YuTLTI5e9jLSHW aHpHZe6WkviUSd+y56dwCrj4LECvsCIB24gag/Qgq2Rq565lVoYj1KY7yxPskC+cQexSGRJIN V9XhAiMKxgAUBNTGvEgi7ufVAVKAJXoqm4TMM9yBwUxRtP6Nf17/vrj7U2cRoeb3yk2133gCb fxx/dUBFL0KDgzszpnt9QHEXW3nlOLVU3u1nNMZdxk4R/EqV7QAGfEvwOmzP69h3EvEEvDOpW eC5faQpJuRXiCFO3q2I55aZWDVynb+F610ZUriol8Zy8zrY6rfxb9MJYDBlV2jEJq1EYB1xbc 7TkdjV3Bk5Dspa+CCtYkg6vDeejc64nEzCN1gpumHqZ+7BM2Zl3gZs0IigXn1Kprp4S5Z4dNx vypKYDH51j04fQQKJCoVyddcyMp1fiulAcmVu5s0gqI3atuXJadiSDMe+D/fOVeHHzFGwMkfZ AWLxtQl1dl9tOltzAlUST3uWJTwfbokxvKA8EgB9NEIod0a9x1IHKOeinu1S0VMxU2Y1vfYnj 1VrjM26kyDxycVa8hE86AE69cP6awrghhkaP2C5QIx+bRCPmuRac084sqRzYWU+UO6e2nnVbH 0S5ma8LMbvWH5Z1KWbSoySF0t7UgXHockF3kVq5qKCUCDiR4KT5evSv9CSrVXZlM829tggn4b 7cjq4q/VIfLdQS2NsqNR/rNDdAQH3furkiP0o8ZudPHuDKYyGJoFoMOejYUi2XkYJ2zAHXsXb yDd+gppsMCr+QrpriPeuFFB0pOTy7wubea9LnORVXFua7Bk/cgnQRxW7zQD+1pVi1mJiYCMD5 hUJ20w== X-Rspamd-Queue-Id: F26E320022 X-Rspam-User: X-Stat-Signature: b7reoba6dzjadihyntuq6f968gpfqxcw X-Rspamd-Server: rspam01 X-HE-Tag: 1703849784-486060 X-HE-Meta: U2FsdGVkX1+LqWdnzJ/+RZtagM/kUl03UzOMaEvC/RLHzDHx6uvsb37467c9asajVg9oc0FkjWYDPjozsgw2CIcfCgPAFkfL/Tgve/CutXAMewe3wIzfILKGb0NsDnxaDfHKEBWpC6L1GS4T6EPPe86SKV/RrWVN425/ohmlKG8ZdgWLzECJh6+IwTJZli7HRYjEL+AukPsR4+6ICD1uLOimHY/CHZLvKX/sSnvKMSGTFnZvi3uF9pD4+LfJPXQ1pE4oUzfI525BvUGOh0uc+uAftVJMMVsjs3+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ity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Markus Elfring Date: Fri, 29 Dec 2023 12:32:12 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (2): Improve a size determination in two functions Improve exception handling in hugetlbfs_fill_super() fs/hugetlbfs/inode.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) --- 2.43.0