From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.137.202.133 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796046335; b=gdTHu17a9KvjGL904nDNW8B2dBpwDxAIv9S6/fZflcvbTw0LwzvjLQtED0Tkd7F1ZrD1 daQ/V2WgUgTv1hDURV8+ezG7ssuU9r74D9nUYehPKhcbcDagkvWvocWiqZfhmFHk7PwAs CeM2RDV/XkPittpmpfA6z9uRFs8xsfrX2TD6qaQD98nB0VxxdARA4N0/GZgU3WplAwLZu Sx8v1yZq3IMGBEvUvPI62CTwiNHL5U+fzVqQjxzOAL5y1ot8fOvUqQOOK1iZKBmL72Uk5 d+rI9Sos7Pg8Hlsa4CjXvspIICmb07ADDQN4Z5xmgUh+kaQ7l/a42fV5z26s0oQTvNg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796046335; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:X-SRS-Rewrite; bh=xaNlpF26AXvucBM9YKCBRkQG6nuAhYm1KOG8yjvoqu8=; b=xgiG/BHjXVgAqrucieTnJyDNEqRqAlKZx4Q4dyi6V6rPrWyMLYV4IT5NZrZrzn21kPiK 8RSNqKWFQITy6HQmfyY0QCNPgPVxkyjDwbZjgC7kyQWvdhcuAV5inZCLxkb66V5OE86bw g9yOk9ELIOi3jU9hxGQdLvXaISpEaPfG1Wxq+4fkFv42f16oYwmAmBJd0DOzNF1gsCnTn UUYjM3ZvojO0N8QVeHWsuiv5TWF86KpU70b2oB7j8fekWRRBTg/f7+PD0MLaOVn3BIzOC 32dypZKqrXBF88cKfHyaBFWlxUwoRvIBOG/agIfH6CX0k2V/7nmqh6qIYhFx00S4HtA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=uRwwPFbx; arc=none smtp.remote-ip=198.137.202.133 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C654606A339; Mon, 30 Nov 2026 13:45:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3C654606A339 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=uRwwPFbx DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xaNlpF26AXvucBM9YKCBRkQG6nuAhYm1KOG8yjvoqu8=; b=uRwwPFbxJLvMPn8e/qc0iXu7Y8 uXl7jd4zfj103ttJK9xKGkRylaCAFRwShHhgnmFLRdb2k9g4PMXnvlFY/688o5ZpyRNhAgUodpvj4 jWmjKV8rdfLBhQzwpDjuFsUaDX0v1go6ThXKg+ylSGSna7WwLfLc8l9DOpk17em5pExP5cf8oJki6 cs/DSScPDEksbk1lOy5BRNjaBOtQ5OutvTbAbO5oVH+KqwfCPkYIa1/4J+Kx22uLsrCXyYspCLxrW w3hJUanIRH4M1a8tDatEw/mGy1JLU/+s41lXJQH98Z9EAEkon1wqqDyL0Zro7xs9kC+qnvWKoyRSk Fdm88kSA==; Received: from hch by bombadil.infradead.org with local (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY1hF-00000004lKA-0wRN; Mon, 30 Nov 2026 13:45:33 +0000 Date: Mon, 30 Nov 2026 05:45:33 -0800 From: Christoph Hellwig To: Yifan Feng Cc: Carlos Maiolino , Ian Kent , Christian Brauner , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] xfs: don't drop inode32 on a remount without inode32 or inode64 Message-ID: References: <20261130001917.56901-1-evanfengff@gmail.com> 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261130001917.56901-1-evanfengff@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Sun, Nov 29, 2026 at 04:19:17PM -0800, Yifan Feng wrote: > xfs_fs_reconfigure() compares the mounted state with the options of > the remount, and those start out as inode64. So a remount that names > neither inode32 nor inode64 switches an inode32 mount to inode64, and > new inodes get numbers above 32 bits: > > # mount -o inode32 /dev/vda /mnt > # mount -o remount,noatime /dev/vda /mnt > # grep /mnt /proc/mounts > /dev/vda /mnt xfs rw,noatime,inode64,logbufs=8,logbsize=32k,noquota 0 0 > > mount(8) hides this when it is given the mount point only, because it > then passes the current options again. Before the conversion to the > mount API the setting changed only when one of the two options was > given. > > Start the options of a remount from the setting in use. Looks good: Reviewed-by: Christoph Hellwig Can you add an xfstests test for this? I also wonder if we might have similar issues for other mount options. Do you have spare cycles to look over that?