Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2506211rdb; Mon, 5 Feb 2024 08:33:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2taxIeb89BIJN+gN69wxfTA+L/ieOvBkECHXPCjNhg2b5DtzHzIM0E3ieBoqFSqkS6NbU X-Received: by 2002:ac8:4f89:0:b0:42c:3041:3bb7 with SMTP id j9-20020ac84f89000000b0042c30413bb7mr623922qtw.22.1707150807874; Mon, 05 Feb 2024 08:33:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707150807; cv=pass; d=google.com; s=arc-20160816; b=w1uOEFpTPl1LrFUN5zWitPumo2EUmhZmjPHWS+Huiljuam/zoQsD0YmKaAiGj0oRyf 0ESHwr6RRg/+6e2JBhWm2skALtvUW/DVy7uQpApldHfgt10IdUuI2Nujp5cA4/JvWz68 XBpz3L7a8LJgYQ53sPhstNTx36V4I5w7dPTnsy1h0s3d+7qDqykCg0XQ+Y0D0IZKp8NU KMHSv0rIKaejoePmuMd9qCVymPf0FeZS2O8SUrK5FlqWVt6okBA71JjicGDyhDXxcVVC jlJcRJ9DEFbvLItvxTY8SDPsCE+0HSU9ovLDSjlbo8NxyCQGz+6Fg5qNhyQBoqx3z/zR /v/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=a9P4gllJIaKyhZehWwj32p0bctAew6koUJX5fapQ3pQ=; fh=W1M0kEDramJE7GGEb5FriXWYCLnfhZHHp2E/S2SQwCE=; b=hCXYsJyb476NRV4ym+PPthVSVRhlQ/J3A9NtLSCuScOuK9Mj6oKX3ScGoYlYjmX4OG +OTb6r+FaokIgvHSXBBi0mGZ0QoQMrD6eyI/y2NIsNniB/zId8J2mQSoIrt/QKliUwy7 3FkFOOiSRr2cAHjKofiLBaAmBwYAHRRlYWUja6ftrBMDIBdtRsklUa+F3QTVa8TZO6/C rwYOrZk8rZjgCIWK5/X3OLUTKx2iy2rtag8RIkMJtMQGZqeXvfjUGpA+mVXs8kfePwXS 6+2Y+VQS/mB6hHw8ruW9Xr7Hx3Wk4977N3t4KKt0JKLBC2TPD5BLVW4YmgkUvdcRBdJ2 Q9qQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b="nE3v+/WT"; arc=pass (i=1 spf=pass spfdomain=mit.edu dkim=pass dkdomain=mit.edu dmarc=pass fromdomain=mit.edu); spf=pass (google.com: domain of linux-kernel+bounces-53013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu X-Forwarded-Encrypted: i=1; AJvYcCXP4yiiH61QU0L8XOiOKBFyjAXMxHmQV0czwvWIQKg/5lkU6vOF1l4PBzZEYBG45likFETMwKem/O1OUqoSaIozfiMFyJUMC/MYaBiUWQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c9-20020ac85a89000000b0042c296fe23fsi192780qtc.616.2024.02.05.08.33.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:33:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b="nE3v+/WT"; arc=pass (i=1 spf=pass spfdomain=mit.edu dkim=pass dkdomain=mit.edu dmarc=pass fromdomain=mit.edu); spf=pass (google.com: domain of linux-kernel+bounces-53013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9EE401C22081 for ; Mon, 5 Feb 2024 16:33:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDF273B190; Mon, 5 Feb 2024 16:33:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.b="nE3v+/WT" Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (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 7EF3528DD1 for ; Mon, 5 Feb 2024 16:33:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=18.9.28.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707150801; cv=none; b=Z5vcr/1ff1lYkYuvcDoMoG5b0MxRgYr5iGcUOH2n6Umd2lrrJvvJ1L5XWZXqWjowFv9pTxC9EpRgJMJMjlW2UjyGpbcazTwfmT02z6m90GTeg6fW5VmiKmZGlgqxaexpN7VX4sOyN4Ir0+AezwaH7sdNlIthagItHEIvayhEchA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707150801; c=relaxed/simple; bh=2cQXhUPiMEW3Ok85h1EHeLAdBpbDxsZrxdUiLgoGxIQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hyFJsK2gn6CvFwq+6Oeyo8oex7V4i841bjA9jXNv+sMeyGt3aMauhI7VYFIeLitUD00rJw+pWwnIvrylhGmnhSuRkeNRm40nfVIJcAtwiCt4KfRQ0lgDJjtL8aF2JaWHicWdHLR+AFZ1XdyYar16yPE/bTqOYBhKd6XgvPBcmYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu; spf=pass smtp.mailfrom=mit.edu; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.b=nE3v+/WT; arc=none smtp.client-ip=18.9.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mit.edu Received: from cwcc.thunk.org (pool-173-48-82-236.bstnma.fios.verizon.net [173.48.82.236]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 415GWnNj014106 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 5 Feb 2024 11:32:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1707150772; bh=a9P4gllJIaKyhZehWwj32p0bctAew6koUJX5fapQ3pQ=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=nE3v+/WT01Gk5V/Z68qPKmJcM7hU6ejzRJNb5gfCRDRr0HScBgSzNJukgqr/k+WWD rRoJJmzmB3fH1Krx1choGfJD9GfDXIG0u+d4aloWquXQuYOj67M5jEEX7/KDOOM2U8 srGpfV2gk3U51xYuSpkrLmlDojg2+2aHrxoV60sWXTekEc2DjptjmjkkkzbrmjBHO6 YA155/K7Ggk38BKkPTOmRzkfmDAidILGgFd1KOxJCou/DoMyL3vK8/EYWbYvrwVHsK H9RqCdUnL3r/a16CoFcJdL7zQ+AJVeERboPxKV0QgpLH3ukrC1POhSkKpZCxbtNK++ 2LnW75jaVcM6g== Received: by cwcc.thunk.org (Postfix, from userid 15806) id B733815C02FD; Mon, 5 Feb 2024 11:32:49 -0500 (EST) Date: Mon, 5 Feb 2024 11:32:49 -0500 From: "Theodore Ts'o" To: Ojaswin Mujoo Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, jack@suse.cz, ritesh.list@gmail.com, john.g.garry@oracle.com, djwong@kernel.org Subject: Re: Running out of inode flags in ext4 Message-ID: <20240205163249.GE119530@mit.edu> References: 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=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Feb 05, 2024 at 03:38:54PM +0530, Ojaswin Mujoo wrote: > Hi folks, > > I'm trying to rework the ext4 atomic write patchset so we have similar > semantics as discussed here [1], which would look something like: > > 1. we call FS_IOC_FSSETXATTR to enable atomic write on inode > > 2. In the setxattr path, we need to mark the inode with > atomic_write_enabled. XFS does it via an on disk inode flag which is > straightforward enough > > However, on ext4 we are almost out of 32 bits of inode flags and I don't > think it's possible to add any flags2 field or something (iiuc, ondisk > indoe doesn't have scope for expansion). We still have some unused flags. For example, 0x01000000. 0x04000000. and 0x08000000 are still unused. We are starting to get close to full, so we need to be a bit careful since it is very much a limited resource. But we're not yet at the point where we need to worry about trying to reuse flags like EXT4_EOFBLOCKS_FL. Cheers, - Ted