Lines Matching defs:depth
531 * depth 0 (there is always a real fs below it). An overlayfs
532 * inode lock will use the lockdep annotaion ovl_i_mutex_key[depth].
537 * [...] &ovl_i_mutex_dir_key[depth] (stack_depth=2)
538 * [...] &ovl_i_mutex_dir_key[depth]#2 (stack_depth=1)
571 int depth = inode->i_sb->s_stack_depth - 1;
573 if (WARN_ON_ONCE(depth < 0 || depth >= OVL_MAX_NESTING))
574 depth = 0;
577 lockdep_set_class(&inode->i_rwsem, &ovl_i_mutex_dir_key[depth]);
579 lockdep_set_class(&inode->i_rwsem, &ovl_i_mutex_key[depth]);
581 lockdep_set_class(&OVL_I(inode)->lock, &ovl_i_lock_key[depth]);