From patchwork Sat Apr 12 16:39:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Gruenbacher X-Patchwork-Id: 14049057 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 21968194AD5 for ; Sat, 12 Apr 2025 16:39:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744475965; cv=none; b=u2RnZZ8Z6RPnryrK2lNDLTHBLgIUculI0s+kCRGG6lyLBdjXeQhmx9zR2Ed84iTzB+7eW/2pI0VbG7rHert2PHcO/S/i2l8fAcZ/7/jvMa3ZXaHOnKG/g51UNjlb0aYEMQw2jX4UBriB29Tvb1fiELfbJVGl20TY/sJhfHXBRfo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744475965; c=relaxed/simple; bh=cAYjYmg/8ZZYOSl8b8gmXQEJDJBxhAHQZbq/FDisBkU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tRHJpJcXLi7lzPaRemMhnw8UHrKh9V1NeS/TZLANMf6BcRPp/6QK4CitZojW2kgh6OEXtRN0Si4ZWFaUhXn96kH9MKHzRokIpH5jZZ1xrwvyhJsXwVHMwtCM06ARTLDpsByDETtexm75PaG6mx7vWmDBCQbZr5+xzAZc3ntakpA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=e4I6jHoK; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="e4I6jHoK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1744475963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=thwrXWsigQIHOOK62OCYGRdqJW2zd1UKDeXMI+2fu5s=; b=e4I6jHoKEUb1UtK4gQjMidfD3mz/YLEGXieH726HGlzZWjgOyq2KtZvvABPfBDPOUM7dPK lK8l42NNsPHEvheSqSbD8UxVkaVctjM1BQFnuzV+YcSIZZvw2UZIGVdXEUo0qK/oNkYHCn CVs5wWLARpzV4r4DFzyz+ZYCPETllzs= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-619-dK-z1vZhO72GiNUCGCT7BA-1; Sat, 12 Apr 2025 12:39:20 -0400 X-MC-Unique: dK-z1vZhO72GiNUCGCT7BA-1 X-Mimecast-MFC-AGG-ID: dK-z1vZhO72GiNUCGCT7BA_1744475959 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4E88818007E1; Sat, 12 Apr 2025 16:39:19 +0000 (UTC) Received: from pasta.fast.eng.rdu2.dc.redhat.com (unknown [10.45.224.37]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D4139180174E; Sat, 12 Apr 2025 16:39:15 +0000 (UTC) From: Andreas Gruenbacher To: cgroups@vger.kernel.org Cc: Andreas Gruenbacher , Tetsuo Handa , Jan Kara , Rafael Aquini , gfs2@lists.linux.dev, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] Fix false warning in inode_to_wb Date: Sat, 12 Apr 2025 18:39:10 +0200 Message-ID: <20250412163914.3773459-1-agruenba@redhat.com> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Changes in v3: - In gfs2_fill_super(), initialize sdp->sd_inode after initializing ->s_blocksize_bits so that ->i_blkbits will be set correctly. - inode_to_wb(const struct inode *inode) no longer calls inode_cgwb_enabled(struct inode *inode), so its argument can remain const. Changes in v2: - In inode_to_wb(), only check if the SB_I_CGROUPWB flag is set so that the consistency checks remain active even when cgroup writeback isn't actively used. - When new_inode() fails in gfs2_fill_super(), clean up correctly. - Improve the description of "gfs2: replace sd_aspace with sd_inode". Andreas Gruenbacher (1): gfs2: replace sd_aspace with sd_inode Jan Kara (1): writeback: Fix false warning in inode_to_wb() fs/gfs2/glock.c | 3 +-- fs/gfs2/glops.c | 4 ++-- fs/gfs2/incore.h | 9 ++++++++- fs/gfs2/meta_io.c | 2 +- fs/gfs2/meta_io.h | 4 +--- fs/gfs2/ops_fstype.c | 31 ++++++++++++++++++------------- fs/gfs2/super.c | 2 +- include/linux/backing-dev.h | 1 + 8 files changed, 33 insertions(+), 23 deletions(-)