]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Only set i_offset in the parent directory's i-node during a lookup for
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 16 Sep 2008 16:18:36 +0000 (16:18 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 16 Sep 2008 16:18:36 +0000 (16:18 +0000)
commit5316d529ec09a044134be419395daea7cccfa190
treeafd2b9a883055b9c631bd5eaf59d6734446a7f43
parent1b7cf11b00dfb0020e322e0e912c38b0c857425a
- Only set i_offset in the parent directory's i-node during a lookup for
  non-LOOKUP operations.
- Relax a VOP assertion for a DELETE lookup.  rename() uses WANTPARENT
  instead of LOCKPARENT when looking up the source pathname.  ufs_rename()
  uses a relookup() to lock the parent directory when it decides to finally
  remove the source path.  Thus, it is ok for a DELETE with WANTPARENT set
  instead of LOCKPARENT to use a shared vnode lock rather than an exclusive
  vnode lock.

Reported by: kris (2)
Reviewed by: jeff
sys/ufs/ufs/ufs_lookup.c