On Wed, 2020-11-11 at 09:34 +0000, Luis Henriques wrote: > Jeff Layton <jlayton@xxxxxxxxxx> writes: > > > The link count for a directory is defined as inode->i_subdirs + 2, > > (for "." and ".."). i_subdirs is only populated when Fs caps are held. > > Ensure we grab Fs caps when fetching the link count for a directory. > > > > Maybe this would be worth a stable@ tag too...? > > Cheers, Usually I reserve stable tags for "real problems" (oopses, etc), that we want to send to mainline immediately. This is just a subtle case where the link count in a stat() call ends up looking wrong. If someone wants to make a case for stable, I'm willing to listen, but this one doesn't seem worth it. -- Jeff Layton <jlayton@xxxxxxxxxx>