blockgroup_lock.h: remove debris from bgl_lock_ptr() conversion
authorEric Biggers <ebiggers@google.com>
Thu, 15 Sep 2016 22:25:07 +0000 (18:25 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Sep 2016 22:25:07 +0000 (18:25 -0400)
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>
include/linux/blockgroup_lock.h

index e44b88ba552b87c45ffc947c3afa9364b10afc7c..61b583d7519a9aea329b6cd5192de7a05ea63574 100644 (file)
@@ -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