Lines Matching defs:depth
909 * depth 0 (there is always a real fs below it). An overlayfs
910 * inode lock will use the lockdep annotation ovl_i_mutex_key[depth].
915 * [...] &ovl_i_mutex_dir_key[depth] (stack_depth=2)
916 * [...] &ovl_i_mutex_dir_key[depth]#2 (stack_depth=1)
949 int depth = inode->i_sb->s_stack_depth - 1;
951 if (WARN_ON_ONCE(depth < 0 || depth >= OVL_MAX_NESTING))
952 depth = 0;
955 lockdep_set_class(&inode->i_rwsem, &ovl_i_mutex_dir_key[depth]);
957 lockdep_set_class(&inode->i_rwsem, &ovl_i_mutex_key[depth]);
959 lockdep_set_class(&OVL_I(inode)->lock, &ovl_i_lock_key[depth]);