diff options
author | kib <kib@FreeBSD.org> | 2014-12-21 13:29:33 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-12-21 13:29:33 +0000 |
commit | 4e541c87563cf7aa973372226a0ae396db98e6b4 (patch) | |
tree | 55c5abcc434cafee85807f8e7fbbaa018d3ec612 /sys/fs/nandfs/nandfs_vnops.c | |
parent | 9031d3b270a85e5be8bf907b88c9c22e07ae31cc (diff) | |
download | FreeBSD-src-4e541c87563cf7aa973372226a0ae396db98e6b4.zip FreeBSD-src-4e541c87563cf7aa973372226a0ae396db98e6b4.tar.gz |
Handle MAKEENTRY cnp flag in the VOP_CREATE(). Curiously, some
fs, e.g. smbfs, already did it.
Tested by: pho (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Diffstat (limited to 'sys/fs/nandfs/nandfs_vnops.c')
-rw-r--r-- | sys/fs/nandfs/nandfs_vnops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/nandfs/nandfs_vnops.c b/sys/fs/nandfs/nandfs_vnops.c index 65dcf64..40dd855 100644 --- a/sys/fs/nandfs/nandfs_vnops.c +++ b/sys/fs/nandfs/nandfs_vnops.c @@ -1411,6 +1411,8 @@ nandfs_create(struct vop_create_args *ap) return (error); } *vpp = NTOV(node); + if ((cnp->cn_flags & MAKEENTRY) != 0) + cache_enter(dvp, *vpp, cnp); DPRINTF(VNCALL, ("created file vp %p nandnode %p ino %jx\n", *vpp, node, (uintmax_t)node->nn_ino)); |