From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795470309; b=yLKxGQnBx9Bm7f9cD+pN3iyE6nWhjKVqHry9Sp0/0qREKTLw5BJyE0dBVfvU/rXRa9Ik aSS/glDjGR0KxrlTLvrVbCldja/fG5O7zJuG5I27ZHCNaKFsNa+4hqh09YwKTWSkBdxPI c9O7fgd6aGGN4mbuDNGGOR9M8XESfGx3pHFiMGrlz89lTEwxlRzdu15TJovMv1gctUmPG 2MibqA2vQKGQIjUjtRecZ2SfWadc1DTGsyDDCZM1vPl2FtmghKnJAz/IXK3J6BABwsX73 k5o6HGdQypYaiHQZ6ikmXpD9R4lW3r4nuwSDwpotPkPP+Pd+1GohkSyj4dbmAdqotdQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795470309; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To:X-Mailer: References:In-Reply-To; bh=LkpmMbGmbwOY5rWgpls3HX12a8MYucO7aG0St1F+2Jo=; b=bsfq8N/g1JzgwrjOdN5JhD9SKUxhlU60bnGY2L9Y6RwRJmBnZ7yubNTJqDZuGoOyjWDq l7ISsD2YNAzuKZF1Dz5FRQvIzXguOJl06x0x6sMr6yc9uBEEPwoGABqL4SoRjlCN0DNqm uyWEFbqPkEqQCPXZydBMTomsBpH/55WYU8gCEP68zIAuU6edmf2r1/wzqofgd76zcbmSH 9ZH5sGGGHDUrTrClZLKTvIsLU0hiyP7KaCDcSiP6dfDsLzwJts8q5mWhuyXNfX7UhbtJh 1FnC0xyB/8MrjZ+d5q1UCtq4V/svfs88tTJHSRO2vfvWf6sMj2VG/O4vmAkh/FSVarw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=VZ0qknZT; arc=none smtp.remote-ip=209.85.128.46 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60D1D606A32E for ; Mon, 23 Nov 2026 21:45:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 60D1D606A32E 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.a=rsa-sha256 header.s=20260707 header.b=VZ0qknZT Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4bb64ef5a00so30323695e9.3 for ; Mon, 23 Nov 2026 13:45:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795470308; x=1796075108; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:mime-version:from:to:cc:subject:date:message-id :reply-to:content-type; bh=LkpmMbGmbwOY5rWgpls3HX12a8MYucO7aG0St1F+2Jo=; b=VZ0qknZT6G8jiDP7QwV1V0pKiCHfdpHhv+ble/Qqp2dsIvFkJZWZEQo9bOyiSNJfxd S62RlIDUJbUvN3ioWmiGkyqYIloVbEYSHTae7xvHfTYjToSl0gWsie7uEe66mU9suH3p OVMHRCvIk0WsbVuDVgcLSNPF7Ec0HXwEKBtOuom5CsvElRQA+M09E4cfcpO+i6PBdryb ntAhjU6XZ90W6FYquDYaWxhvbvTHEcYGCuWP5AiwluJI8NENSfLLy/pk0lrjhY0kyvi0 bgVXn3+C6HgJDHqY72JeJyuVhniaC40uz87cw3lEvo4xKYC0niCxsDe90FBOCsZpGKYq 0TKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795470308; x=1796075108; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=LkpmMbGmbwOY5rWgpls3HX12a8MYucO7aG0St1F+2Jo=; b=DjCDpfuxrSHZtwNy2OItu6lElMMUNvyJ5D/L/lQVDpvtO0ujYFFaN12l39/gKqps7n gN+QJftilaFBxugdA/MNPpAalloS1mbVz4lnwIVoFenhGN2vJHE6wM/+qvjZQCUybP0U EaXvfD12EOtlSMr1fojRHXbylzLyzcGFqzpcuLcpW/fwHAVZiD0W3MEo/5Dq7d7bdsev dca3l6CsJebZN8Xeqb6b4md6nlhOZobsj42DEj3TIdSYre79xZwtLKk7Br5WtNelezoj bmwSdx4M+Wu4QlMKsnfJ6FVDHISDJoWobZRr+P/0kfwWf2AZqcab4wj9lwHEEb06tIZe JG6w== X-Forwarded-Encrypted: i=1; AL+hErEraTX9HMIvveUED4t2IRa89Ipx1r3Iq658QoswMCB1dKGLGadfugFbHzMpaaG1Ie9myKPkoQxs6wl6gbc=@vger.kernel.org X-Gm-Message-State: APuU4Z/LR1LYkltVRR3Des0ff3mBh+tN5cGwnPvUXXrUNO2T+7jbWSdH M61lWXrRlbBW0QY4j7bWXzek/orGhwS9SvCGtgfGRSvU4e6CAT99W9xz X-Gm-Gg: AZFdTZemP3n3mQjHnrDub3n6WB53TjFysInfeI+4Z9PdUK44nlxHkAoGVTZNtKUZ2WB xDHAP9yz92tiGGr0Lj6BlSzBuLHpOOHlSmto6b0MYnU39Ms443q6+KVJru0xbQMCgwRP22GPs97 29S42h0BrwWVPSWPCx0qGJgj0k3ZiLoT3PTjwcLnu6ffADbdBKEJmsD0P6qtaIYaTNS2eHSCUOS rw4NQ3uCQL2TGtJaPmF1946+GhjkO4nZinhF5fVWg3OnME25SLJ70x3OHvPkGgDnCDs3MMv8yzA jR8qhs9kd5dC8ojTFMcmtfHByVmz5O/SEWUte8AS95unYbU6GVy1dVQN3X2lw56dSPeh8arfWUB N3jRaPCYIlXjiXKVtT2jp34Ze2LU5cvTkKI6adKknaXjwB7TQsKplH5h/6TDZSwusa5IgzXOA3/ Hr8htQPpMKR4Q9yFRdpQwE1ENEHUjt5qOsqUjF3r5iZ1yZbe8eRvG9ObYjJ4iUT4xbw+4XyE5P5 Wuaj6t5nVtKHSVgazs1L7Pic0MlPC36qWgvoLGvIKCgAWSkjbwQWLISHejiREERrP8rpij/xKZ8 1PXlSppZ3sCb3jB0RcChxi5rPOQKcP3mt/CmNLf/sJ++SoE= X-Received: by 2002:a05:600c:a08b:b0:4a5:87b3:ddc1 with SMTP id 5b1f17b1804b1-4bb88922c52mr247479825e9.13.1795470307434; Mon, 23 Nov 2026 13:45:07 -0800 (PST) Received: from localhost ([2001:b07:5d26:7a6a:365a:60ff:fe0d:cfc6]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb88442995sm390803475e9.2.2026.11.23.13.45.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Nov 2026 13:45:06 -0800 (PST) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Type: multipart/signed; boundary=f93e91cd8129c4ef5a6623f4aac998269e771b61eaa5f43d069bef622e5a; micalg=pgp-sha512; protocol="application/pgp-signature" Date: Mon, 23 Nov 2026 22:45:05 +0100 Message-Id: Cc: "Namjae Jeon" , "Hyunchul Lee" , "Alexander Viro" , "Christian Brauner" , "Chuck Lever" , "Jeff Layton" , "Jan Kara" , "Darrick J . Wong" , "Andrey Albershteyn" , =?utf-8?q?Pali_Roh=C3=A1r?= , "Lauri Gates" , "Christoph Hellwig" , "Dave Chinner" , , , , , , , Subject: Re: [PATCH 0/3] Add f*_xflags_{rw,ro}_mask flags to the fileattr API From: "koraynilay" To: "Amir Goldstein" , "koraynilay" X-Mailer: aerc 0.22.0-0-gc2f86b7abde3 References: <20261122000856.536902-1-koray.fra@gmail.com> In-Reply-To: --f93e91cd8129c4ef5a6623f4aac998269e771b61eaa5f43d069bef622e5a Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Mon Nov 23, 2026 at 2:35 PM CET, Amir Goldstein wrote: > On Sun, Nov 22, 2026 at 1:09=E2=80=AFAM koraynilay = wrote: >> >> This is a follow up patch series stemmed from [1] and [2], splitting the >> _mask change for the fileattr API into its own separate patch. >> >> The first patch is a preparatory patch so that the code in the patch >> after can be formatted better. >> >> The second patch is the actual implementation, which introduces: >> - fa_xflags_{rw,ro}_mask fields to struct file_attr >> - fsx_xflags_{rw,ro}_mask fields and has_masks selector to struct file_k= attr >> >> These masks have the following semantics: >> - rw_mask: >> * for filesystems: advertise which xflags they support changing >> * for userspace: specify which xflags it wants to modify >> - ro_mask: >> * for filesystems: advertise which xflags they support only reading >> * for userspace: ignored > > Nice! > I think this API description is very clear and coherent By the way, should I use this description in the commit message (and integrate it with missing information before/after the bullet points), or should I keep the current one? (current one:) > This lets filesystems advertise their support for specific xflags, like > statx.stx_attributes_mask does, and userspace can specify only which > xflags it wants to change without needing a RMW cycle: > - on GET: each filesystem that wants to support this new API fills the > masks according to its supported and read-only xflags, then: > * for boolean xflags: it fills fsx_xflags with the current on-disk valu= e > * for value xflags: it sets the xflag bit to 1 in fsx_xflags and the > xflag value in the struct field; > - on SET: userspace fills the rw_mask with the bits of the xflags it > wants to change, then: > * for boolean xflags: it provides the xflag value as a bit in fa_xflags > * for value xflags: it sets the xflag bit to 1 in fa_xflags and then > provides the value in the struct field; if the xflag bit is set to 0 > instead, this informs the kernel to unset/clear that value. Thanks, koraynilay --f93e91cd8129c4ef5a6623f4aac998269e771b61eaa5f43d069bef622e5a Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSgVimKafU5DQMcjcDmj22qf5IGXAUCawSz4QAKCRDmj22qf5IG XFP0AQDoHuI0GUaYOoQkPYkvkC952uJ2NGRvnCWrDXc2mGNcRgD8D3IvRyNkeRF4 hY+IdbU3Ldb+X7gx8ejbGnOW7iQXcAM= =P1l+ -----END PGP SIGNATURE----- --f93e91cd8129c4ef5a6623f4aac998269e771b61eaa5f43d069bef622e5a--