> what lock protects ip->i_flag? it's current the VOP_LOCK(), > but we can't acquire that lock in VOP_GETPAGES() due to > lock-ordering constraints. > > -Chuck i_flag is protected by kernel_lock. VOP_LOCK is not always held eg. when GOP_ALLOC -> ffs_balloc updates i_flag. YAMAMOTO Takashi