fs/9p: fix inode nlink accounting
I was running some regressions and noticed a (race-y) kernel warning
that happens when nlink becomes less than zero. Looking through the
code it looks like we aren't good about protecting the inode lock when
manipulating nlink and some code that was added several years ago to
protect against bugs in underlying file systems nlink handling didn't
look quite right either. I took a look at what NFS was doing and tried
to follow similar approaches in the 9p code.
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
3 files changed