mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
nsfs: port to ns_ref_*() helpers
Stop accessing ns.count directly. Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
99d33ce100
commit
b3d8ff0679
1 changed files with 1 additions and 1 deletions
|
|
@ -492,7 +492,7 @@ static struct dentry *nsfs_fh_to_dentry(struct super_block *sb, struct fid *fh,
|
|||
VFS_WARN_ON_ONCE(ns->ops->type != fid->ns_type);
|
||||
VFS_WARN_ON_ONCE(ns->inum != fid->ns_inum);
|
||||
|
||||
if (!refcount_inc_not_zero(&ns->count))
|
||||
if (!__ns_ref_get(ns))
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue