Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e5ab85d authored by Eric Biggers's avatar Eric Biggers Committed by Theodore Ts'o
Browse files

blockgroup_lock.h: remove debris from bgl_lock_ptr() conversion



An obsolete comment and extra parentheses were left over from when the
sb_bgl_lock() macro was replaced with the bgl_lock_ptr() function.

Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Reviewed-by: default avatarAndreas Dilger <adilger@dilger.ca>
parent ef1eb3aa
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -49,14 +49,10 @@ static inline void bgl_lock_init(struct blockgroup_lock *bgl)
		spin_lock_init(&bgl->locks[i].lock);
		spin_lock_init(&bgl->locks[i].lock);
}
}


/*
 * The accessor is a macro so we can embed a blockgroup_lock into different
 * superblock types
 */
static inline spinlock_t *
static inline spinlock_t *
bgl_lock_ptr(struct blockgroup_lock *bgl, unsigned int block_group)
bgl_lock_ptr(struct blockgroup_lock *bgl, unsigned int block_group)
{
{
	return &bgl->locks[(block_group) & (NR_BG_LOCKS-1)].lock;
	return &bgl->locks[block_group & (NR_BG_LOCKS-1)].lock;
}
}


#endif
#endif