Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp713326lqp; Thu, 21 Mar 2024 13:13:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbfDnGPCuiiOzFyQwUosj5ggxKh9C0eliUgsCFRXMKIoxj59vLVHaeg5aW+Gh5Dnjio0aKqYG/IB6R02KCq5i6rZx4vUHKo9xldB2/uA== X-Google-Smtp-Source: AGHT+IEJP0tgPXICA6Rtp/u4SNovnI47mamdnMhQMRDCKDYkhCl//fSexQTca1QlEdgYvtpnQVsY X-Received: by 2002:a17:90a:c7d6:b0:29d:d96f:3294 with SMTP id gf22-20020a17090ac7d600b0029dd96f3294mr364962pjb.44.1711052022025; Thu, 21 Mar 2024 13:13:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711052022; cv=pass; d=google.com; s=arc-20160816; b=Gxhrl+p5GgB+cqQg1uefKFLYoZcSneRmip8+lu2OD63ECqsskeI/2TLmrkRfEwz2Kt H1ggIIgFl9N1eTveha+MhBg6h5mRZc5BmVFqfJ5srw0FHuFufG6KmZ2d/NvULJtFNSYN XfA9P38wD0RCHG48Qw4OiHOueOrc2yusw1kDztVlzSUX/btepf5SPP4U8kn0DbssEalk 0ir7yxcIKpF7sU1nYUeWWUbeB1Pq14XblW0zjPYSV9zPy6DhlhY41gg8M3SDYiL9YTKc Pyq1lDrnnx1K90RHnWZEwL5gtsgrRAXJ3OzG0MAuQI/6gyRy9jxbrhNC6gUfrRVzIG6+ kSiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=thread-topic:thread-index:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject :message-id:cc:to:from:date; bh=WTlaRAnuVYc5EwsUj8tCSWvgiu/zYr9OtnkHy1FUqFY=; fh=bxFzCp/E9cubu1hDGLmTODg1d4zhuZ8rBUUo0PD7pkI=; b=DqxLsfK5oE5D4RXtk6X0gMG1RNut+2wH2bjwGtfZqwMdHEY+OIfWDbtXSzaG3Ek8+7 mLlR83VFBaZjHhz2n6+/jwl6YbdyivFeu3YqVie6u3HLR7M+WiO/BX1W127ch9GZJ+Ww ciLjCHjjp9d/ORyujFj4K/UMFBsmDINQSgZSr7DI7kH/n9TeuzKEmttpgCy+jFENAgYN 4AVgdzgniUW8qCKLA0fPlON/Ft0J7PkxB//EGB6XzAPbDXHe0laZZfe5JFuFK8fZRjP5 4MQnLzYdL5abpTF8pBALbw9gKeFzQ4ZOtX86gk5mIkkpH/6Fl4aQlLR4mngmuq/roUSt 1MyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-110632-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110632-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o2-20020a17090ad24200b0029ffc44f5basi512419pjw.62.2024.03.21.13.13.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 13:13:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110632-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-110632-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110632-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B0BAE284CB1 for ; Thu, 21 Mar 2024 20:13:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5ADE134738; Thu, 21 Mar 2024 20:13:37 +0000 (UTC) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) (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 6DA3E56B98 for ; Thu, 21 Mar 2024 20:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.201.40.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711052017; cv=none; b=tmnB860Lo0mavEBMkgfZFW+xwh2UVtT6B5KNOIP/oSrubZTzJupmipbVFaP6cWrwT8L1ZdmwOzXocb/aebEByFV2tVDWEsCxhXbuVpZcf+5cnRESpG+2FHDhetqfEN63vKVyXEWHKv0EXDm3mbcDcxcT85aXs/Wnf5gnqeX+J6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711052017; c=relaxed/simple; bh=xPK6KriN8FJ64fJxKuCKJrirRN9FLJBqVqo7UzTaMYg=; h=Date:From:To:Cc:Message-ID:Subject:MIME-Version:Content-Type; b=Bl8wmwr8HLy6gquUltUbz2VxS7KYPwik95pMpnSxMLIXy/WFgwfjEFrKbYv7E4xZ2mZ7PwDGQpqDvTlsxdNORqVrYEk+lpPiWgcnifNTBGE7i7HfGOAr4EMQ/X2Wn+flgVSLhbqP2t8P0SeNpdE+mDoMxdzyLRrlFF+2ZjJCy6c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nod.at; spf=fail smtp.mailfrom=nod.at; arc=none smtp.client-ip=195.201.40.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nod.at Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nod.at Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 1A06F626FAE8; Thu, 21 Mar 2024 21:13:25 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id JxriTs8HOKul; Thu, 21 Mar 2024 21:13:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 7576C645094A; Thu, 21 Mar 2024 21:13:24 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Vfu0TxaASbAW; Thu, 21 Mar 2024 21:13:24 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 55840626FAE8; Thu, 21 Mar 2024 21:13:24 +0100 (CET) Date: Thu, 21 Mar 2024 21:13:24 +0100 (CET) From: Richard Weinberger To: torvalds Cc: linux-mtd , linux-kernel Message-ID: <1722992374.86554.1711052004278.JavaMail.zimbra@nod.at> Subject: [GIT PULL] UBI and UBIFS updates for v6.9-rc1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Index: VyzumXf1JtEN0irCPs3T+5iw33+zvQ== Thread-Topic: UBI and UBIFS updates for v6.9-rc1 Linus, The following changes since commit b401b621758e46812da61fa58a67c3fd8d91de0d: Linux 6.8-rc5 (2024-02-18 12:56:25 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs.git tags/ubifs-for-linus-6.9-rc1 for you to fetch changes up to b8a77b9a5f9c2ba313f2beef8440b6f9f69768e7: mtd: ubi: fix NVMEM over UBI volumes on 32-bit systems (2024-03-10 22:14:28 +0100) ---------------------------------------------------------------- This pull request contains updates for UBI and UBIFS: UBI: - Add Zhihao Cheng as reviewer - Attach via device tree - Add NVMEM layer - Various fastmap related fixes UBIFS: - Add Zhihao Cheng as reviewer - Convert to folios - Various fixes (memory leaks in error paths, function prototypes) ---------------------------------------------------------------- Arnd Bergmann (2): ubifs: fix sort function prototype ubifs: fix function pointer cast warnings Daniel Golle (8): dt-bindings: mtd: add basic bindings for UBI dt-bindings: mtd: ubi-volume: allow UBI volumes to provide NVMEM mtd: ubi: block: use notifier to create ubiblock from parameter mtd: ubi: attach from device tree mtd: ubi: introduce pre-removal notification for UBI volumes mtd: ubi: populate ubi volume fwnode mtd: ubi: provide NVMEM layer over UBI volumes mtd: ubi: fix NVMEM over UBI volumes on 32-bit systems Guo Xuenan (1): ubi: fix slab-out-of-bounds in ubi_eba_get_ldesc+0xfb/0x130 Kunwu Chan (1): ubifs: Remove unreachable code in dbg_check_ltab_lnum Matthew Wilcox (Oracle) (15): ubifs: Set page uptodate in the correct place ubifs: Convert from writepage to writepages ubifs: Convert ubifs_writepage to use a folio ubifs: Use a folio in do_truncation() ubifs: Convert do_writepage() to take a folio ubifs: Convert ubifs_vm_page_mkwrite() to use a folio ubifs: Convert write_begin_slow() to use a folio ubifs: Convert ubifs_write_begin() to use a folio ubifs: Convert ubifs_write_end() to use a folio ubifs: Convert do_readpage() to take a folio ubifs: Convert allocate_budget() to work on a folio ubifs: Convert cancel_budget() to take a folio ubifs: Pass a folio into ubifs_bulk_read() and ubifs_do_bulk_read() ubifs: Use a folio in ubifs_do_bulk_read() ubifs: Convert populate_page() to take a folio Richard Weinberger (2): MAINTAINERS: Add Zhihao Cheng as UBI/UBIFS reviewer ubi: Check for too small LEB size in VTBL code Zhang Yi (1): ubi: correct the calculation of fastmap size ZhaoLong Wang (1): ubi: Correct the number of PEBs after a volume resize failure Zhihao Cheng (3): ubifs: dbg_check_idx_size: Fix kmemleak if loading znode failed ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path ubifs: Queue up space reservation tasks if retrying many times .../bindings/mtd/partitions/linux,ubi.yaml | 75 ++++ .../bindings/mtd/partitions/ubi-volume.yaml | 40 ++ Documentation/mm/page_cache.rst | 10 + MAINTAINERS | 2 + drivers/mtd/ubi/Kconfig | 13 + drivers/mtd/ubi/Makefile | 1 + drivers/mtd/ubi/block.c | 136 +++---- drivers/mtd/ubi/build.c | 154 +++++-- drivers/mtd/ubi/eba.c | 7 + drivers/mtd/ubi/fastmap.c | 7 +- drivers/mtd/ubi/kapi.c | 56 ++- drivers/mtd/ubi/nvmem.c | 191 +++++++++ drivers/mtd/ubi/ubi.h | 3 + drivers/mtd/ubi/vmt.c | 75 +++- drivers/mtd/ubi/vtbl.c | 6 + fs/ubifs/debug.c | 9 +- fs/ubifs/dir.c | 2 + fs/ubifs/file.c | 443 ++++++++++----------- fs/ubifs/find.c | 32 +- fs/ubifs/journal.c | 171 +++++++- fs/ubifs/lprops.c | 6 +- fs/ubifs/lpt_commit.c | 1 - fs/ubifs/super.c | 2 + fs/ubifs/tnc.c | 9 +- fs/ubifs/tnc_misc.c | 22 + fs/ubifs/ubifs.h | 5 + include/linux/mtd/ubi.h | 2 + 27 files changed, 1060 insertions(+), 420 deletions(-) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml create mode 100644 Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml create mode 100644 drivers/mtd/ubi/nvmem.c