- Remove PDIRUNLOCK, it will soon be unused in every filesystems. The only

case where filesystems legitimately need to unlock the directory vp is
   in the DOTDOT case, which we can explicitly check for in lookup().
   Furthermore, allowing filesystems to unlock dvp can lead to lock order
   reversals in lookup() when we vrele the dvp while the child is still
   locked.

Sponsored by:	Isilon Systems, Inc.
This commit is contained in:
Jeff Roberson 2005-03-28 09:20:45 +00:00
parent c97dc39f02
commit b6a11b769b

View File

@ -134,7 +134,6 @@ struct nameidata {
#define DOWHITEOUT 0x0040000 /* do whiteouts */
#define WILLBEDIR 0x0080000 /* new files will be dirs; allow trailing / */
#define ISUNICODE 0x0100000 /* current component name is unicode*/
#define PDIRUNLOCK 0x0200000 /* filesystem lookup() unlocked parent dir */
#define NOCROSSMOUNT 0x0400000 /* do not cross mount points */
#define NOMACCHECK 0x0800000 /* do not perform MAC checks */
#define MPSAFE 0x1000000 /* namei() must acquire Giant if needed. */