diff options
author | Eric Biggers <ebiggers@google.com> | 2016-09-15 18:25:07 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-09-15 18:25:07 -0400 |
commit | 9e5ab85deb2c80f9707be39cd0a2c5f90c89dd97 (patch) | |
tree | 64975544cb856d1b62b9f4042e2c838b3e8b28dc /include/linux/blockgroup_lock.h | |
parent | ef1eb3aa50930f026135085cd160b1212cdfe817 (diff) | |
download | linux-stable-9e5ab85deb2c80f9707be39cd0a2c5f90c89dd97.tar.gz linux-stable-9e5ab85deb2c80f9707be39cd0a2c5f90c89dd97.tar.bz2 linux-stable-9e5ab85deb2c80f9707be39cd0a2c5f90c89dd97.zip |
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: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Diffstat (limited to 'include/linux/blockgroup_lock.h')
-rw-r--r-- | include/linux/blockgroup_lock.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/blockgroup_lock.h b/include/linux/blockgroup_lock.h index e44b88ba552b..61b583d7519a 100644 --- a/include/linux/blockgroup_lock.h +++ b/include/linux/blockgroup_lock.h @@ -49,14 +49,10 @@ static inline void bgl_lock_init(struct blockgroup_lock *bgl) 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 * 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 |