diff options
author | attilio <attilio@FreeBSD.org> | 2012-11-19 22:43:45 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2012-11-19 22:43:45 +0000 |
commit | b9a061c88d92d734df24193d90dc1a6fb80dca38 (patch) | |
tree | 74991dff07f38b2ff87b7e8e75d2f6d55750135d /sys/fs/nfsclient | |
parent | eaa145b16d702000da7dbb52940d892080e82144 (diff) | |
download | FreeBSD-src-b9a061c88d92d734df24193d90dc1a6fb80dca38.zip FreeBSD-src-b9a061c88d92d734df24193d90dc1a6fb80dca38.tar.gz |
r16312 is not any longer real since many years (likely since when VFS
received granular locking) but the comment present in UFS has been
copied all over other filesystems code incorrectly for several times.
Removes comments that makes no sense now.
Reviewed by: kib
MFC after: 3 days
Diffstat (limited to 'sys/fs/nfsclient')
-rw-r--r-- | sys/fs/nfsclient/nfs_clnode.c | 6 | ||||
-rw-r--r-- | sys/fs/nfsclient/nfs_clport.c | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/sys/fs/nfsclient/nfs_clnode.c b/sys/fs/nfsclient/nfs_clnode.c index d721931..eaaec9c 100644 --- a/sys/fs/nfsclient/nfs_clnode.c +++ b/sys/fs/nfsclient/nfs_clnode.c @@ -122,12 +122,6 @@ ncl_nget(struct mount *mntp, u_int8_t *fhp, int fhsize, struct nfsnode **npp, *npp = VTONFS(nvp); return (0); } - - /* - * Allocate before getnewvnode since doing so afterward - * might cause a bogus v_data pointer to get dereferenced - * elsewhere if zalloc should block. - */ np = uma_zalloc(newnfsnode_zone, M_WAITOK | M_ZERO); error = getnewvnode("newnfs", mntp, &newnfs_vnodeops, &nvp); diff --git a/sys/fs/nfsclient/nfs_clport.c b/sys/fs/nfsclient/nfs_clport.c index 0257a4c..1cbf325 100644 --- a/sys/fs/nfsclient/nfs_clport.c +++ b/sys/fs/nfsclient/nfs_clport.c @@ -197,12 +197,6 @@ nfscl_nget(struct mount *mntp, struct vnode *dvp, struct nfsfh *nfhp, FREE((caddr_t)nfhp, M_NFSFH); return (0); } - - /* - * Allocate before getnewvnode since doing so afterward - * might cause a bogus v_data pointer to get dereferenced - * elsewhere if zalloc should block. - */ np = uma_zalloc(newnfsnode_zone, M_WAITOK | M_ZERO); error = getnewvnode("newnfs", mntp, &newnfs_vnodeops, &nvp); |