Re: [PATCH] autofs: add per dentry expire timeout

Ian Kent <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.kernel.autofs,gmane.linux.file-systems
Message-ID <[email protected]>
On 14/8/24 13:45, Al Viro wrote:
> On Wed, Aug 14, 2024 at 11:50:37AM +0800, Ian Kent wrote:
>
>> +		inode_lock_shared(inode);
>> +		dentry = try_lookup_one_len(param->path, base, path_len);
>> +		inode_unlock_shared(inode);
>> +		if (!dentry)
>> +			return -ENOENT;
>> +		ino = autofs_dentry_ino(dentry);
> Why can't we get ERR_PTR(...) from try_lookup_one_len() here?

Oops!

Thanks Al, I'll post a v2.


Ian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.