diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2014-12-21 13:29:33 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2014-12-21 13:29:33 +0000 |
commit | 789bdfdbc6343343efa7ad1e4c643c8ff405dd3b (patch) | |
tree | 55c5abcc434cafee85807f8e7fbbaa018d3ec612 /sys/fs/ext2fs/ext2_vnops.c | |
parent | 0aee91e1fb311f4f92779bb2c7ef0c1fe10d8d35 (diff) | |
download | src-789bdfdbc6343343efa7ad1e4c643c8ff405dd3b.tar.gz src-789bdfdbc6343343efa7ad1e4c643c8ff405dd3b.zip |
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
Notes
Notes:
svn path=/head/; revision=276007
Diffstat (limited to 'sys/fs/ext2fs/ext2_vnops.c')
-rw-r--r-- | sys/fs/ext2fs/ext2_vnops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_vnops.c b/sys/fs/ext2fs/ext2_vnops.c index 899ae7970d68..5baca5aacbad 100644 --- a/sys/fs/ext2fs/ext2_vnops.c +++ b/sys/fs/ext2fs/ext2_vnops.c @@ -239,8 +239,10 @@ ext2_create(struct vop_create_args *ap) error = ext2_makeinode(MAKEIMODE(ap->a_vap->va_type, ap->a_vap->va_mode), ap->a_dvp, ap->a_vpp, ap->a_cnp); - if (error) + if (error != 0) return (error); + if ((ap->a_cnp->cn_flags & MAKEENTRY) != 0) + cache_enter(ap->a_dvp, *ap->a_vpp, ap->a_cnp); return (0); } |