From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C65BF427A06 for ; Fri, 10 Jul 2026 13:23:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783689819; cv=none; b=Z7JCvUUt+QrKxYuiwM53QKJXD1Z6/Hz2/JpoReilVAJvO3ec8PqRcDcrn7HtXE38XqwXTINjB2+bpzuqrB3wDpT1obrzS/asGDGd4pFHOCnU0IaXRcfAEzSNtkuacgKcki6+Frsy9A4I6D1jE0Na7D9YstZxEjjyAEMsuxSKEpk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783689819; c=relaxed/simple; bh=BfLl/q18W5yYQeIQBruV/e9ZpSEUmlct7luvOzIpmgw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lDKSRBj3GJ5SB8AFopoqlHaWiNb54UnuCs/ydqGjvwuJovWr9M+uOC1Gu/9t6066v2sYSUnT2TsgOIuQBABfpCfVWxHnzSYeivXyYK84aoU4qtSP9er9IZwlMG8UcrKelMILgx84Irq3xW9MlzVD3WgT9aBjevCt/8XN0vwHZVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=qtnHLtb8; arc=none smtp.client-ip=209.85.216.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qtnHLtb8" Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-385ea3ce80dso1110522a91.2 for ; Fri, 10 Jul 2026 06:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783689814; x=1784294614; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=3/61ccPKf9iIkSXbLxMl3TYnG/v8KEzCfxESbxzxiVk=; b=qtnHLtb8chlKKl7AryktL5YkPTtK54DmAbFF2X90K0yha7ykXNIz7RXiUayY98QNsZ RC6m5uiwS/jCIUwtq0ldxgOqr2kSXXfTUpvu2p0Call2pvcWUYfKfW7GIOKX7KFRji5a i0AM6afPXGEx18pJeyFNRZ+jI/khX6Pp/FmOm3C2pBXPQbvcaW+mhnfMBM+GkoU9JU2Z wF4CIRyQUVNaDp1Bw37BJB18+HVywoQmTDO/cZ+qFTKwz22hszx5FuK3HfwDF+erwRrn Tlfimh6Ows0EYU29N0z9vPB2ihMhFU5qD5O1LesOmddXDy3yiSkgoo6wL5Wjy6CFvend 2yhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783689814; x=1784294614; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=3/61ccPKf9iIkSXbLxMl3TYnG/v8KEzCfxESbxzxiVk=; b=Ad09s8p6iS+3tDpylXQu1PDkMDYh2Ja6CG/v3omlOlLYi+Dv5mc+C/qyOuFZUzHIUV DYtwguCfKq3G3nbHxa969xFPHJ/km7tq6gWYlVpam/y0tuF4hJYUxSFRWGBH6rUL3zSA lU5cFCkJKQqgqozEvSGx8Tkp04YUTXFZKyq3GHSac9KRdBaW6FgfgJiHcRzdV1LV0Tw9 D5EenX0TP2xMJTfmGIxbj8epjnXRBKHhZmSLbPjE8NJ4qJdtejmpKchkkwa2yujOmHFX vqtA0/lba/Q2G1bNej9vHAXIUx3/8f2o3SLNUbY/Vx3NP0CMa+/Vd66VO8Zc58XqiL93 NItQ== X-Forwarded-Encrypted: i=1; AHgh+RpjR4QDxMt9e3dC9x+khQnFPlQEy+IMGWMsHUsiPo1e5PGQPe34LlNFh8cbKeBbziiFaI7RgiU88cbzkDI=@vger.kernel.org X-Gm-Message-State: AOJu0YziSLi5wTNNgJHecQmJHglMwxqZUtIR/aKWSosLSOsXiXYFyves 9ck2Luxv81c3C9pdQH0N/MdiszS9PFxg8IvdhK/6U4seWSiNWpe4Lo7K X-Gm-Gg: AfdE7clN5D5wX7WmejsPOOrrm2QxgyWtpzVcUZUSpVYRaB4r6UP/Qfizo+BOddEna+r 7enJVnma4xEmaw4llzMFsOo5JvvUon5SYmYrU+W/6uKBfCWHi78BeL9LJaLtT7XQzW0XoGzrGdc 6NDgf2BpaT9F6na6p5dlsSsbzRjdAeZHKGseNueLYLbHCBAB6uHGpWxq/1twYJkw+9r5/9r1qRc y4KWE0lzez5uoRAPfLooNW+mXo9iCYnELIxd0Mt5189hW2H3i3EFbQmFppWFfpyyquWikLCNnPR CzFM5ZKOJm9Dk/TiDs53YG3VbNQ0jKtlDR3ue7p54Idm2HM4A4wczRjMflmSDRnpxT1ivBCtYGp g5HmqRJXnSgoBogYuGVOol9s7s3Ls0VStHsGJXQvTuvXiEY6RLGQSlpb7tbxoCPooJch8VlnPzH xQoPOJAkXxE9129arOTS9ge6ySqbfyLFJSftl7EKv0GGGGenfneA0hp9CKvknESCbniH6sBD0qr umuRZc= X-Received: by 2002:a17:90b:3b8d:b0:387:e0cb:7f3 with SMTP id 98e67ed59e1d1-389428905bfmr10738596a91.39.1783689813878; Fri, 10 Jul 2026 06:23:33 -0700 (PDT) Received: from research02.. ([2601:1c1:8700:f5b:fe34:97ff:fea3:c147]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-38a55b413e6sm2710798a91.8.2026.07.10.06.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2026 06:23:33 -0700 (PDT) From: Hiroshi Nishida To: Song Liu , Yu Kuai Cc: Li Nan , Xiao Ni , linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, Hiroshi Nishida Subject: [PATCH 0/2] md: widen size/count types for large arrays Date: Fri, 10 Jul 2026 06:23:27 -0700 Message-ID: <20260710132329.7273-1-nishidafmly@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Two small type-widening fixes for large arrays. Neither changes behaviour or memory use on any current configuration. 1/2 changes chunk_sectors and the stripe-cache count fields to unsigned int, matching how they are used and avoiding implicit sign extension in the cache shrinker's subtraction. 2/2 widens the badblocks sector parameters from int to sector_t so the helpers do not narrow a sector_t argument on very large devices. These are independent of the other md/raid5 patches I'm sending and can be applied on their own. Hiroshi Nishida (2): md: change chunk_sectors and stripe cache counts to unsigned int md: widen badblock sectors param from int to sector_t drivers/md/md.c | 4 ++-- drivers/md/md.h | 10 +++++----- drivers/md/raid5.c | 14 +++++++------- drivers/md/raid5.h | 8 ++++---- 4 files changed, 18 insertions(+), 18 deletions(-) base-commit: 55b77337bdd088c77461588e5ec094421b89911b -- 2.43.0