]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: ->d_compare() must not block
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 19 Nov 2025 21:15:04 +0000 (16:15 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 13 Jan 2026 20:16:44 +0000 (15:16 -0500)
commitca2a04e84af79596e5cd9cfe697d5122ec39c8ce
treeb0a66a0ef6fccebf5f8c32e24f87b12c1fcd7958
parent41670a5900a8866b8cab52ab5936b5e9ef06fe91
ntfs: ->d_compare() must not block

... so don't use __getname() there.  Switch it (and ntfs_d_hash(), while
we are at it) to kmalloc(PATH_MAX, GFP_NOWAIT).  Yes, ntfs_d_hash()
almost certainly can do with smaller allocations, but let ntfs folks
deal with that - keep the allocation size as-is for now.

Stop abusing names_cachep in ntfs, period - various uses of that thing
in there have nothing to do with pathnames; just use k[mz]alloc() and
be done with that.  For now let's keep sizes as-in, but AFAICS none of
the users actually want PATH_MAX.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ntfs3/dir.c
fs/ntfs3/fsntfs.c
fs/ntfs3/inode.c
fs/ntfs3/namei.c
fs/ntfs3/xattr.c