Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5218937rdb; Wed, 13 Dec 2023 02:24:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1n4DuN4pg/k1eCls6buJAdoO2JQNb63RYwm9H6qsgzT7wUez60BM3avVkrZ++zyH26xOK X-Received: by 2002:a05:6e02:12cc:b0:35d:6fb4:b2fb with SMTP id i12-20020a056e0212cc00b0035d6fb4b2fbmr12086516ilm.113.1702463054677; Wed, 13 Dec 2023 02:24:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702463054; cv=none; d=google.com; s=arc-20160816; b=IwP5ThCsgej/DPzIEEqt84zErfUF1lXZhGOVVDm7z+A1pHkaf/w75VL69UjxyczyWT R8BrkD6NSUiZ3xLJRDKo3QvCvoRfGJmROrEo3AnuU5ifpFH8YmM9kQ70I5VpgFW9+Mgy N8G8w4okOVUAB5ngC+LGfj7MduZkcWrYH+PObG+hP75Op4KTzyeaP677WxMLleKMH+Mc BE4nn95PHvMDcL0S4xZTSihA5iDLIA/G8rlk/7x971kETwePEYz2kSNOqMAvBE0r0dRv 866x2tDM1hoESsijF5uy2dFknnCeNJaYzGH7CRY3p+eXFTGkrRH3cmmvgcx4ir8mNB1A eZUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=YFJ3A25nYfF7sKdr5SLQblvtW35pp9rQh+LbkrjDHEc=; fh=nLa73nrHlGcnNX2Q2K9oKp0gEwzUyr12tAzYANH8/vQ=; b=QbbA4K+WpJdqfsQf5yZkaREiojjNaU30i8sWwI+h8l19KlBbJn6sZoPV7CZ1/MUZDd sxskd88bFx2On6JKZBXYKQUh6iF3WBGLK5oK0d7NQk2GxlpJ6+qLFz7rwSwkskD3I84P KXfpXiI3UdCN3ljSPtSgk7vOflDDQLNzrWmQYdQkvQFLNvJNTD/xFj04FxbnBSxpqhpJ k6TlRFQIH+z85wpY8+jcbe0LAX0unaXSBrdTyhPO5ds+L01JtNbD9G8ox6Zp4YYR/cVN iERYvo0ie81f6aRiCHnVB7eb42xaAOSUdLOEK3y1mx6dZy0Pb+JyycIVGKxVC4KvPNrD SCGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=CWeXgfMl; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Ax1gwWUV; dkim=neutral (no key) header.i=@suse.cz header.b=XSuX6j5+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id l8-20020a170902f68800b001d1e31980cesi9441326plg.306.2023.12.13.02.24.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 02:24:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=CWeXgfMl; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Ax1gwWUV; dkim=neutral (no key) header.i=@suse.cz header.b=XSuX6j5+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 35CB080BB515; Wed, 13 Dec 2023 02:24:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235321AbjLMKX7 (ORCPT + 99 others); Wed, 13 Dec 2023 05:23:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235202AbjLMKX6 (ORCPT ); Wed, 13 Dec 2023 05:23:58 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CA0DAF; Wed, 13 Dec 2023 02:24:05 -0800 (PST) Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 75A591F38C; Wed, 13 Dec 2023 10:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1702463043; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YFJ3A25nYfF7sKdr5SLQblvtW35pp9rQh+LbkrjDHEc=; b=CWeXgfMlyj7ewzSjRqOXCA8cD5phO6tf++t4XQJrNRFQXaXktffT2jkSuOrhdbk7wAPmdA dLP+Ot9mClmy/z74Yqru33RhwaOmvUbbc61X9youRWUdaAFfO1ibA6UofGLRDU0KkQVwIs pAfuUzpUeY39v+yNumME2DFruzCouPA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1702463043; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YFJ3A25nYfF7sKdr5SLQblvtW35pp9rQh+LbkrjDHEc=; b=FXJlljIqzm7cs9hQix5t8A7U2+jtPIagqmYVpCmNaM4DFMlr5Q6Z2qWBxAvbeusap8Y7Ra w/Z0vjPuBqJsVBBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1702463042; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YFJ3A25nYfF7sKdr5SLQblvtW35pp9rQh+LbkrjDHEc=; b=Ax1gwWUVycOHB/yQUkrU60Qn0tf8irN8tIBjt8ZmrKtwsY2XgLOMf3jaU13Ih+kNpEKmcN X+kNIRNKZ6pB28G6sdp8Glo1q2lT8vb+MdgXnllGrspKQfn5b0hEvfnQl1F+A/tyi8lfa2 vaQl0W3NKur1ybKZz//1pILrorUbPS4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1702463042; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YFJ3A25nYfF7sKdr5SLQblvtW35pp9rQh+LbkrjDHEc=; b=XSuX6j5+x76Kb/Ot/VdVeA6G21m6Bhy6XjAfYEKRH73ky+n7TrZxPhiEdRkKWwafXsqlpM MqpnG2Q02d2mfaDQ== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 592D21391D; Wed, 13 Dec 2023 10:24:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id TgOBFUKGeWXbcgAAn2gu4w (envelope-from ); Wed, 13 Dec 2023 10:24:02 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id BED2AA07E0; Wed, 13 Dec 2023 11:24:01 +0100 (CET) Date: Wed, 13 Dec 2023 11:24:01 +0100 From: Jan Kara To: John Garry Cc: axboe@kernel.dk, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jack@suse.cz, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, linux-scsi@vger.kernel.org, ming.lei@redhat.com, jaswin@linux.ibm.com, bvanassche@acm.org, Prasad Singamsetty Subject: Re: [PATCH v2 03/16] fs/bdev: Add atomic write support info to statx Message-ID: <20231213102401.epkxytqq7e5lskw2@quack3> References: <20231212110844.19698-1-john.g.garry@oracle.com> <20231212110844.19698-4-john.g.garry@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231212110844.19698-4-john.g.garry@oracle.com> X-Spam-Level: X-Spam-Score: -0.81 Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -0.80 X-Spamd-Result: default: False [-0.80 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_TWELVE(0.00)[24]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,oracle.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[43.37%] X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 13 Dec 2023 02:24:12 -0800 (PST) On Tue 12-12-23 11:08:31, John Garry wrote: > From: Prasad Singamsetty > > Extend statx system call to return additional info for atomic write support > support if the specified file is a block device. > > Add initial support for a block device. > > Signed-off-by: Prasad Singamsetty > Signed-off-by: John Garry Just some nits below. > +#define BDEV_STATX_SUPPORTED_MSK (STATX_DIOALIGN | STATX_WRITE_ATOMIC) ^^^ I believe saving one letter here is not really beneficial so just spell out MASK here... > /* > - * Handle STATX_DIOALIGN for block devices. > - * > - * Note that the inode passed to this is the inode of a block device node file, > - * not the block device's internal inode. Therefore it is *not* valid to use > - * I_BDEV() here; the block device has to be looked up by i_rdev instead. > + * Handle STATX_{DIOALIGN, WRITE_ATOMIC} for block devices. > */ Please keep "Note ..." from the above comment (or you can move the note in front of blkdev_get_no_open() if you want). Honza -- Jan Kara SUSE Labs, CR