Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp749566lqg; Fri, 1 Mar 2024 23:43:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVxllKDQ4YPh+mANOU/4tpqw63eKLXujpR/Nkb3uOx/IrNrZhelEre57LeGPKVwEk64O517kkC+bcJVii73qGUvVKohdU1sG5gXBFXc7g== X-Google-Smtp-Source: AGHT+IEN4GF4pRqMCPvziM8J+/XfpEucTSzcHYDf+oBBVHngZn+tgavNWomuG2tf3oK3+olisKe1 X-Received: by 2002:a17:906:ff53:b0:a43:f9ff:2571 with SMTP id zo19-20020a170906ff5300b00a43f9ff2571mr2597716ejb.45.1709365383297; Fri, 01 Mar 2024 23:43:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709365383; cv=pass; d=google.com; s=arc-20160816; b=UVfmCbZoh2fx0aCCZqfFFxAFyjjVUAVoiXRiBOkDWfTHxVWI3CMzbEUlhlkGbod2HP xyBLv6OJWyoWmiX7EHB2VOeC6KFmP5Fkp/aHujdZgNq+AqplivaJdhF00Lzxe3OghzdR CmvGojCGUvUTmVdiv/gUFnh+FlRIh5E6/GUYWN9mG24H7dlrQ4q9H7qS1zacbnsbqU+w e+267oJm94GiheaZQM0wjk9+J3Idm9Vqvcpyzwb/Wkq2Y9TuTPSuxzUWdzWc7WtBt3Ij 37J7EWEgb9g417P/Hq8YOEADmOpRrtaoR53R9RCZ9ce6FN157d5Onuw5UQ8co1iSPxWx 3Trw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=oUtRlA4LTpnrKeik+etCM2Hf0A7iESJvM3SgKuLTazM=; fh=gKN9pGI1SC9+tW1qrTYa0T5BSm1slB5BIqgCGalz01c=; b=FrzWBwAMhqHXlskJyGXgM2Z68uzwbNs2AneXfboftixO+R5eRdeEVV3kDvhyvPGjko ekt9iJ7iuEuysjcr8v6qHt0wLWpLtQskFx3HCcaB7cgeNr1vNAVsoD+ONkWGmWV2qV2S 02rylMJoPy7gb+bn/dj3lvWuthAhPhLEjf2QawsElWbCZCz714c4L74dYMOhOSko3lj4 JWEjvnT8Uyw4Z8XppXyHJGeo2eRL9zTYNA7GHiQEgi0ocNHXBOmoteW3f6SUBawdPPdf aLHzLesYDvrTk/Jf4g6In22LYO3CXxrPdoYUv4lXv7A53AN7qqmC6sT57j5oz5TInhqT SMwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T6o04TDQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-89345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a4-20020a170906684400b00a4320892ccfsi2226260ejs.964.2024.03.01.23.43.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 23:43:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T6o04TDQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-89345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 066241F23477 for ; Sat, 2 Mar 2024 07:43:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BD0B154B1; Sat, 2 Mar 2024 07:42:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="T6o04TDQ" Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) (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 54BA313FF1; Sat, 2 Mar 2024 07:42:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709365352; cv=none; b=kCBqBlLHI4JChR8JiGHAx8ycZcUoDqbAUVnpGd2OxCnfcGGJ28gjXJfJLV/M2qPWBrwzlqphIs85IUelWCkxb0Tantyl8S/f5B5feLuojPTMGWo17eydBbeTHgUHJLBTc3LzDe+0TOKJSYkRU7VjLsXIAYEnTdh2dSkRxR/S29Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709365352; c=relaxed/simple; bh=Lxf86wsgMeVIjl0s92RhlwZEQt9iGDE8hAGXnMOeIA8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=q83OcIPnqGv/InsR75FQx5S0Cd+7i96QrYaqKdROUJx0DVtdaH04rPO8B7TeONE1NLn49RvP9KHUOV3quljhTAuf932BRFb0FUKpyTGcf2MQ5+LI82RCuqFgVBPayP63hSmKDs3+mNUNd/W/LA8KUAcb6ALTyu5CtavUR0y6iNs= 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=T6o04TDQ; arc=none smtp.client-ip=209.85.160.51 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 Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-214def5da12so1575020fac.2; Fri, 01 Mar 2024 23:42:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709365349; x=1709970149; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oUtRlA4LTpnrKeik+etCM2Hf0A7iESJvM3SgKuLTazM=; b=T6o04TDQfLvmXf/8g0jijtB7KlwW3OmkCac/MdAoxuqnRgKVnq43r9+hbyVrcpvMkz mJjdp1jzYGwCW4YHjtl+grWJyM2Tf1VsnOA8G7RksT879D+xaB56m0iNhitvZYH4xPTf mCOcobto02pHFdOs6kxqDE0P5GielGFJDxD2qaj715ToBF/bBBJtZUemG47V4gxlzE8b HaQ2VgNK40TvD42gfbjfAgv0C9cVlBeX2SpJQtWlu9GCPVwluAUeyubwLei/jWzt7E22 dHSUu6T6e0tDKc/YT8Rli781UFKcodUtx5F9YKc1fYBmtGtXoQJ+UlFfhwRFSAehpgAA Cxcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709365349; x=1709970149; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oUtRlA4LTpnrKeik+etCM2Hf0A7iESJvM3SgKuLTazM=; b=amnoNPFnEQYafUQTRb1rJLnaI3ubzsp9PjCdC31SMr022GBkEhS8IWOPgsTwcCLZNk MVTeKlDRiShv7tv9oU9i1Y4+knWUX/0tvpo/V3JtKBw34VMMyMJyvQri6krlUEU38a7U cpm6F0zuDjFDvv+/Hd5ng6HiywUdX+Qnzy1ckwuuuZ/xpcHfZdgD3kiPq6EOylmbhMSu seOwSg4z7JOLcSAU0PzUPcR7aOKXuj/ppgU6nG3rmuErhMuD1ZsXgmvtfBnv2cJN7CSX OM9PUleYO2+iH4hGvQJes9secC1taqbjOsX/NCgfJ76Vy65UwQ+EPytKVCa+k3two9a0 SwRQ== X-Forwarded-Encrypted: i=1; AJvYcCWCRWb6S2mgBYzYKx7RB/RleTs7eFC0iM+OOtXB9J7EXmT5d5pUTzoN+4qBeEEwJhcUsEAKSVCuygS6aerwB4i1m2gB4eI4rcSu3o+Uow7PzgAki23Vx1NwRtCBMDROtitRNDe7TrUhPw== X-Gm-Message-State: AOJu0YzyVmsjBpj1lXvC0Ki8IC0QEfoRu2cYsB/zMyEkjiXivb4cP72+ 927ykD+sCoiaHSN8EuPYlyLhw3L33Pga0jjU9RqkfCbNn3B/xYTdy6ve/6Ss X-Received: by 2002:a05:6870:230b:b0:21e:d763:f5f1 with SMTP id w11-20020a056870230b00b0021ed763f5f1mr4114232oao.42.1709365348656; Fri, 01 Mar 2024 23:42:28 -0800 (PST) Received: from dw-tp.. ([49.205.218.89]) by smtp.gmail.com with ESMTPSA id x11-20020aa784cb000000b006e45c5d7720sm4138206pfn.93.2024.03.01.23.42.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 23:42:28 -0800 (PST) From: "Ritesh Harjani (IBM)" To: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Cc: Ojaswin Mujoo , Jan Kara , Theodore Ts'o , Matthew Wilcox , "Darrick J . Wong" , Luis Chamberlain , John Garry , linux-kernel@vger.kernel.org, Ritesh Harjani Subject: [RFC 1/8] fs: Add FS_XFLAG_ATOMICWRITES flag Date: Sat, 2 Mar 2024 13:11:58 +0530 Message-ID: <555cc3e262efa77ee5648196362f415a1efc018d.1709361537.git.ritesh.list@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: John Garry Add a flag indicating that a regular file is enabled for atomic writes. Signed-off-by: John Garry Signed-off-by: Ritesh Harjani (IBM) --- include/uapi/linux/fs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/fs.h b/include/uapi/linux/fs.h index a0975ae81e64..b5b4e1db9576 100644 --- a/include/uapi/linux/fs.h +++ b/include/uapi/linux/fs.h @@ -140,6 +140,7 @@ struct fsxattr { #define FS_XFLAG_FILESTREAM 0x00004000 /* use filestream allocator */ #define FS_XFLAG_DAX 0x00008000 /* use DAX for IO */ #define FS_XFLAG_COWEXTSIZE 0x00010000 /* CoW extent size allocator hint */ +#define FS_XFLAG_ATOMICWRITES 0x00020000 /* atomic writes enabled */ #define FS_XFLAG_HASATTR 0x80000000 /* no DIFLAG for this */ /* the read-only stuff doesn't really belong here, but any other place is -- 2.43.0