Lines Matching refs:sb_i
24 struct reiserfs_sb_info *sb_i = REISERFS_SB(s); in reiserfs_write_lock() local
26 if (sb_i->lock_owner != current) { in reiserfs_write_lock()
27 mutex_lock(&sb_i->lock); in reiserfs_write_lock()
28 sb_i->lock_owner = current; in reiserfs_write_lock()
32 sb_i->lock_depth++; in reiserfs_write_lock()
37 struct reiserfs_sb_info *sb_i = REISERFS_SB(s); in reiserfs_write_unlock() local
44 BUG_ON(sb_i->lock_owner != current); in reiserfs_write_unlock()
46 if (--sb_i->lock_depth == -1) { in reiserfs_write_unlock()
47 sb_i->lock_owner = NULL; in reiserfs_write_unlock()
48 mutex_unlock(&sb_i->lock); in reiserfs_write_unlock()
54 struct reiserfs_sb_info *sb_i = REISERFS_SB(s); in reiserfs_write_unlock_nested() local
58 if (sb_i->lock_owner != current) in reiserfs_write_unlock_nested()
61 depth = sb_i->lock_depth; in reiserfs_write_unlock_nested()
63 sb_i->lock_depth = -1; in reiserfs_write_unlock_nested()
64 sb_i->lock_owner = NULL; in reiserfs_write_unlock_nested()
65 mutex_unlock(&sb_i->lock); in reiserfs_write_unlock_nested()
72 struct reiserfs_sb_info *sb_i = REISERFS_SB(s); in reiserfs_write_lock_nested() local
78 mutex_lock(&sb_i->lock); in reiserfs_write_lock_nested()
79 sb_i->lock_owner = current; in reiserfs_write_lock_nested()
80 sb_i->lock_depth = depth; in reiserfs_write_lock_nested()
89 struct reiserfs_sb_info *sb_i = REISERFS_SB(sb); in reiserfs_check_lock_depth() local
91 WARN_ON(sb_i->lock_depth < 0); in reiserfs_check_lock_depth()
97 struct reiserfs_sb_info *sb_i = REISERFS_SB(sb); in reiserfs_lock_check_recursive() local
99 WARN_ONCE((sb_i->lock_depth > 0), "Unwanted recursive reiserfs lock!\n"); in reiserfs_lock_check_recursive()