Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp26127pxb; Tue, 17 Aug 2021 18:10:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4Z7XwYHkXUOlCc7Ymi6Gy5fKauv7amsZKDL9A/YJe3gkZmbvnUuErnfaFiSEmx57Meu7M X-Received: by 2002:aa7:c145:: with SMTP id r5mr7032793edp.253.1629249046314; Tue, 17 Aug 2021 18:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629249046; cv=none; d=google.com; s=arc-20160816; b=n2ugqXKwdsg0I6cMO2EblScHKPYiO3eYr7EH0REe3G8QPgTcwxMrtvjpMZUs4ZGiaK 9npj2wXukkdsOUldGlyosa251n8Wl3wz2BydIskVerFEn68ARa9keg4XPCvIrQHuTTsv ZRT2TZ67TYgSiorJyO+H32Xy6aeNPMxghPjuSF12/W5O+ENyHs2x7tuaDTRL4QppJ79m D++NjyIA8l5nHz6wdXhjFgryBEQhbmYxbZvWU8IaL43yosvNN7VlossRuFmEpXkTejBm an8uRJGyUsOfeIs452nywVM6J22J6H29+8Y0ausdD5NiEagw+VBMANwKTQK/LdLLuFGR vqbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=No1ueEPq13uKyGqP0e28JzryE/lBIDaao/VGD9U1Tfo=; b=rX4psDoVvJZnGH90UIF4jqGBw3M/v0UUgOJNJ1DFmnAkPblWY4xnYyJpQZMj6W//D+ aApUSXanhjmXqYZTmy/GVdsBWd1juspDyC+BMnc5qbZSBeT4SudLW7qoFlSVUlpqAkcT UJ+Lrtnr37WtRXh6RpBBrJZFkt9GVqMwDgqvU5xHffd3VlpuUVcnL3JXPY4s9iIuqahe gAiMjbY5Su4Cf5QAtJak7az9iUtjuWehm3vOz+XFYyCEV3tjl3H3yLB4THnjUNzXGS+N CxAWjPIhODIhaJ5aIJI7L1+nxgcWyFHkB1u6TTKhqOFBIktPDjTiQZMvxH84xWHkIUMH ShJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OlTYb1XQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id um28si4083572ejb.255.2021.08.17.18.09.45; Tue, 17 Aug 2021 18:10:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OlTYb1XQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237330AbhHRBHw (ORCPT + 99 others); Tue, 17 Aug 2021 21:07:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234706AbhHRBHo (ORCPT ); Tue, 17 Aug 2021 21:07:44 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCB11C061764 for ; Tue, 17 Aug 2021 18:07:09 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id s3so1898785ljp.11 for ; Tue, 17 Aug 2021 18:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=No1ueEPq13uKyGqP0e28JzryE/lBIDaao/VGD9U1Tfo=; b=OlTYb1XQwh15N2yA6ZBIWwIiJIx/kZhBbsbCc5iPCB8+u2SuLEIf4xSrwIKojocvoO HrAdE3RumNFOC8DeVNFaiTn/elj5yD9O+Gl2fo3NAVKyKm02KvxlDxf+YpY23+WQyymE EoLQ+GGhuR+BFEMYD+MBznfi0+t/pKrCdStTmNL63owb9IVTXNW5CiYdWlwKr3ErjxsT os9uZ4XmFFSaDLgt9zsfJMVDPFH6VvYXYRO4pfWPeyY14kTW2J+dneAH0Ap4I/HR0pYJ WIDLTnhB3DHMZkRqnniznKZhLGX3omLdLZ8hNzervtwE7ypr+wT992ebHBgLUDVbDsml eNhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=No1ueEPq13uKyGqP0e28JzryE/lBIDaao/VGD9U1Tfo=; b=Y4sUmqMUHhlK3JP/+1k0LIuILhsRUvxpuzOjQHPgZz3ehhj7S1+lEOgOsgaQgilp5i tCc+1+NRMUTiA0RFFazcTEIbVWi2ovM+y2lg2hPjUa3Gvxz4v7JA+ZOO5qk9YT1baRy5 F0nd+X1ElIstDknTG4PGRiTHccHqNiM6Dufo9EE7R8gatkwO2yzwKlfZt5RCtGMmoDbw sRh/2lJRnf6yiK3Qev+avmluMwu57ywbndyHoSyy0JoHlhdyeO/I0mmhRTA/Z4d4V81k jXb8ITrKcYGRuiE3TmjV80ua0i+w3xi5W7T7tqj7qx34ql/L0h2+vyAkvYF7UxLfZ9ef 3Saw== X-Gm-Message-State: AOAM530MdM41tB5RMC0iDgaTkO6wLGzLuX3KqLB+j0sjeMkLC77C0Vfv 78Uj4SdkatLCuLqs0lar2b8= X-Received: by 2002:a2e:a4ba:: with SMTP id g26mr5505544ljm.254.1629248828068; Tue, 17 Aug 2021 18:07:08 -0700 (PDT) Received: from kari-VirtualBox.telewell.oy (85-23-89-224.bb.dnainternet.fi. [85.23.89.224]) by smtp.gmail.com with ESMTPSA id j4sm400245ljh.120.2021.08.17.18.07.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 18:07:07 -0700 (PDT) From: Kari Argillander To: Konstantin Komarov , ntfs3@lists.linux.dev, Christoph Hellwig Cc: Kari Argillander , linux-kernel@vger.kernel.org, Joe Perches Subject: [PATCH v3 0/3] fs/ntfs3: Use kernel alloc wrappers and fix warnings Date: Wed, 18 Aug 2021 04:06:46 +0300 Message-Id: <20210818010649.412912-1-kari.argillander@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In ntfs3 driver there is allocation made like this ntfs_malloc(). Patch 2/3 will converter these to kernel ones like kmalloc(). After I did this then checkpatch raise warnings about array allocations so I fix these in patch 3/3. I also notice when I made patch that there is broken utf8 char so I wanted first fix that because it raised some warning in my editor and did not want to "break" patch 2/3. So patch 1/3 address that. I did try to apply this and it seem to work without issues. v2: - Add patch 1/3 because I found broken utf8 char in source file - Add another patch 3/3 which will fix allocation warnings - Rewrite some of commit message from first patch v3: - Patch series didn't have X/X numbers - Cover letter didn't have fs/ntfs3 in it - One kmalloc was converted to kcalloc insted of kmalloc_array Thanks Joe Perches Kari Argillander (3): fs/ntfs3: Fix one none utf8 char in source file fs/ntfs3: Do not use driver own alloc wrappers fs/ntfs3: Use kcalloc/kmalloc_array over kzalloc/kmalloc fs/ntfs3/attrib.c | 6 +- fs/ntfs3/attrlist.c | 10 +-- fs/ntfs3/bitmap.c | 8 +-- fs/ntfs3/debug.h | 7 -- fs/ntfs3/file.c | 4 +- fs/ntfs3/frecord.c | 28 ++++---- fs/ntfs3/fslog.c | 172 ++++++++++++++++++++++---------------------- fs/ntfs3/fsntfs.c | 8 +-- fs/ntfs3/index.c | 54 +++++++------- fs/ntfs3/inode.c | 10 +-- fs/ntfs3/lznt.c | 4 +- fs/ntfs3/ntfs_fs.h | 18 ++--- fs/ntfs3/record.c | 8 +-- fs/ntfs3/run.c | 8 +-- fs/ntfs3/super.c | 20 +++--- fs/ntfs3/xattr.c | 18 ++--- 16 files changed, 188 insertions(+), 195 deletions(-) -- 2.25.1