Unverified Commit b3d8ff06 authored by Christian Brauner's avatar Christian Brauner
Browse files

nsfs: port to ns_ref_*() helpers



Stop accessing ns.count directly.

Reviewed-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 99d33ce1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}