From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 5345527E045 for ; Wed, 20 May 2026 17:01:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779296518; cv=none; b=AKBn6Zx76BIHP/EXwjOhI5MjbrYUCODNDB1BnJwM+i6Vz3P1o6r4o0/l/FyjLp6FhehKKdkC5QKC44t9Uio6wMfARavNBKgeKUKRNt1caeZJOLH5wNI8ntjG38m0xOZL1yQguDH0f434YVpo0sDU+dA9FOJPILiNGFwiD8SNRq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779296518; c=relaxed/simple; bh=0uWX7BrhR8lyTmN8swbIV475LYsBo3E8Z7VRB2i+bvU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nBk06SW/SJduO7hlU9xTGN/k9qfHoxBOI5san4sfWzJ/fKpALxcRWBeOZTkjA3xisrj8maSIKjaiAfAatBK39d+swyYdt3rX7jhXX8tSZRndK0sIqow9z6lNiwEiSUZ6isv4p9D9ED+5tK5ruy08gF+sR6xBeuaLcp4jwPBH174= 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=rECNGLYR; arc=none smtp.client-ip=209.85.210.179 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.b="rECNGLYR" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-835378dc7cdso207101b3a.1 for ; Wed, 20 May 2026 10:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779296517; x=1779901317; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9S0q1fXPQGKCNPYBpd55OELJCxoFX0UBX1J/3iB/9UI=; b=rECNGLYR+fsxargJ2lSG++amjIcbpDYRugNTUWhaSFjMJCHnlItyaoTIn5BHmXTh6F l0i/33Hbe/NSwl3fRORu8vu1GIi6f96waCGqt7ei1Ic/BflmqxR2LR5eTKg+f+1b/aKY /2C/t4pBGuoC7KzPK5FBvdoeaPhaHGUWvUGlI9j/tjG5jXSVvkvNK1e3r57Wgle2oX3n THq48gxNbUykX3U+9fRMy4WG//R6+mjwdfyA7Z9o63qR5BcVmDJMysO0O+f+diC0WTKJ FtYaYn9xYDAj6xFzQ2jU6jev27kOy8NkET9HSuiU4YfD/p/DkzZTjGzvpirAR7zcrK4O KJFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779296517; x=1779901317; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9S0q1fXPQGKCNPYBpd55OELJCxoFX0UBX1J/3iB/9UI=; b=fGCxEvooC3wWw83+SCa6vw+TjAAJkBHoxGdS4wr9e44tbubBrbWrHm3TlU3iZWewjr xVkm69Dnro0JlENt84wKIvIoW78frm2KL2VZFOOFT1VAvjKDEz3ek2302+cKQaDwah27 1hHsTqyYWYA8S17Ij1f8Ie7H2TzAcgx75WrI2EOvFtEe5+exHgDZvFGO8skvmYlzu5b0 xPjhktHb4krxs8b/SRrmhpSGvnwi2O4yvH3SV3WxYlnWywR8pcpB+sPrh9nZH9BZvMci qYUKkEZQ60wqoo3zeAnAMrIOgLfTE3zkCmx8DTuF6BxwZlYOD7Vb9G45zGg0FDhIuL/1 ErIw== X-Forwarded-Encrypted: i=1; AFNElJ+s+JNdMgwhM4xy6zvDMJlEnGH9UwoKy9sySXnPGUXAb8U4ckTSmLHMmK/AQ9x0S0+oNIJl33FjHwkjDzg=@vger.kernel.org X-Gm-Message-State: AOJu0YwEM3gQnF2LvTRxQ2WcJK0RPIP5KGfEp8l5ArDwOmjBA1q/dGXY HlU3GYPRiGWNZImK8xL3t7DqPKcFu57BlrTU8LxgYNc4xV/E8Ea0hsV5 X-Gm-Gg: Acq92OG9mLHGYnHYB/xeHhSafliIEHtTQhE5/TiRA2ol9IB+yFiheLicDPmiK6lZtYy a+MJB17bXPR3m2q5dBRBA/AI79zOGM+F+6ikws7BbVgX70Ut8NYNpsVJ2MFzGxbMgi3i3dLpJys 7akwhBVxpe1Q8Z+5atqNbyraWTMXqoq18bBonB7+k+L4NN8UnseQP00N4zHmIBa8PK7kYbyLkjy ErIHIe0ibLvs0cH5NxrboTj9YRfZLtEB6cW9PKk/o2nNnv6KW+Uk0PjGQBtvFe9IEUilPVbPg/w uIlxJp3KoNslLEcezkqKdJiFcdVV8YqA9ucw5fKAsDT+aonZYl303FZrXB2KgpIVpbKo11+kEk/ XqcongHX6AshAI8PqiNOqBEbpjmG7dE9ZWl9DuwWx2uDHSn10J4J+oqZNQJkqYOxbHKiwr3IzMT XjntxoPhQSyQlAi59lAlkpRFICinY= X-Received: by 2002:a05:6a00:e16:b0:82f:1da:9781 with SMTP id d2e1a72fcca58-83f339b4397mr13360803b3a.0.1779296516256; Wed, 20 May 2026 10:01:56 -0700 (PDT) Received: from ser8.. ([221.156.231.192]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-83f1942a83fsm22125954b3a.0.2026.05.20.10.01.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2026 10:01:55 -0700 (PDT) From: DaeMyung Kang To: Namjae Jeon Cc: Hyunchul Lee , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, DaeMyung Kang Subject: [PATCH 0/3] ntfs: fix mount failure cleanup and free-count setup Date: Thu, 21 May 2026 02:01:48 +0900 Message-ID: <20260520170151.4115308-1-charsyam@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Namjae, This small series is based on current ntfs-next commit d8756162c6ca ("ntfs: remove unsupported quota handling"). The previous quota_ino reference leak fix is intentionally dropped because that commit removes load_and_init_quota(), the $Quota/$Q state, and the quota out-of-date marker path. The remaining fixes cover mount failure cleanup, a free-cluster precalc OOM path that can otherwise leave waiters blocked forever, and the $UpCase default-table alias check. The free-cluster patch also clears the per-bitmap-page free counters on the conservative zero-free-count path so later allocation heuristics stay conservative after the known flag is published. Testing: - For patch 1, I built a DEBUG_KMEMLEAK/DEBUG_FS kernel and injected an ntfs_fill_super() failure immediately after load_system_files(). Before the fix, kmemleak reported the leaked volume label allocated from ntfs_ucstonls(); after the fix, the same failure path produced no kmemleak report. - For patch 2, I used QEMU with a debug injection that forces the initial precalc readahead-state allocation to fail. Before the fix, statfs remained blocked in D state in ntfs_statfs(); after the fix, the waiter woke up and statfs returned with the conservative zero free-cluster count. DaeMyung Kang (3): ntfs: free volume-wide resources on fill_super failure ntfs: wake free-cluster waiters when precalc allocation fails ntfs: only alias volume $UpCase to default on exact match super.c | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) base-commit: d8756162c6cab1ad4478539d33da6cab413af1ee -- 2.43.0