PERFORCE change 171107 for review
Aditya Sarawgi
truncs at FreeBSD.org
Fri Nov 27 20:39:47 UTC 2009
http://p4web.freebsd.org/chv.cgi?CH=171107
Change 171107 by truncs at aditya on 2009/11/27 20:39:35
Call the correct itimes function when it is already under a lock.
Affected files ...
.. //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/ext2_vnops.c#5 edit
Differences ...
==== //depot/projects/soc2009/soc_ext2fs/src/sys/fs/ext2fs/ext2_vnops.c#5 (text+ko) ====
@@ -82,6 +82,7 @@
#include <fs/ext2fs/ext2_dir.h>
static int ext2_makeinode(int mode, struct vnode *, struct vnode **, struct componentname *);
+static void ext2_itimes_locked(struct vnode *);
static vop_access_t ext2_access;
static int ext2_chmod(struct vnode *, int, struct ucred *, struct thread *);
@@ -285,7 +286,7 @@
VI_LOCK(vp);
if (vp->v_usecount > 1)
- ext2_itimes(vp);
+ ext2_itimes_locked(vp);
VI_UNLOCK(vp);
return (0);
}
@@ -1477,7 +1478,7 @@
VI_LOCK(vp);
if (vp->v_usecount > 1)
- ext2_itimes(vp);
+ ext2_itimes_locked(vp);
VI_UNLOCK(vp);
return (fifo_specops.vop_close(ap));
}
More information about the p4-projects
mailing list