On Fri, Sep 26, 2025 at 10:21:50AM +0800, Youling Tang wrote: > From: Youling Tang <tangyoul...@kylinos.cn> > > Currently bcachefs only performs link count checks during link operations, > during rename and mkdir operations, the link count should also be checked. > > This patch moves the checks to the vfs_{link,rename,mkdir} functions when > sb->s_max_links is set, eliminating the need for filesystem-specific checks. > > Signed-off-by: Youling Tang <tangyoul...@kylinos.cn>
I applied the other two patches, but not this one. We can't rely on the VFS for checks like this, there's lots of routes to modifying the filesystem that don't go through the VFS.