add patch create-function-to-read-journal-inode
[ext4-patch-queue.git] / remove-debris-from-bgl_lock_ptr-conversion
blob97d744aa2ad5f2ab476ce885f83736d335431859
1 blockgroup_lock.h: remove debris from bgl_lock_ptr() conversion
3 From: Eric Biggers <ebiggers@google.com>
5 An obsolete comment and extra parentheses were left over from when the
6 sb_bgl_lock() macro was replaced with the bgl_lock_ptr() function.
8 Signed-off-by: Eric Biggers <ebiggers@google.com>
9 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 Reviewed-by: Andreas Dilger <adilger@dilger.ca>
11 ---
12  include/linux/blockgroup_lock.h | 6 +-----
13  1 file changed, 1 insertion(+), 5 deletions(-)
15 diff --git a/include/linux/blockgroup_lock.h b/include/linux/blockgroup_lock.h
16 index e44b88b..61b583d 100644
17 --- a/include/linux/blockgroup_lock.h
18 +++ b/include/linux/blockgroup_lock.h
19 @@ -49,14 +49,10 @@ static inline void bgl_lock_init(struct blockgroup_lock *bgl)
20                 spin_lock_init(&bgl->locks[i].lock);
21  }
23 -/*
24 - * The accessor is a macro so we can embed a blockgroup_lock into different
25 - * superblock types
26 - */
27  static inline spinlock_t *
28  bgl_lock_ptr(struct blockgroup_lock *bgl, unsigned int block_group)
29  {
30 -       return &bgl->locks[(block_group) & (NR_BG_LOCKS-1)].lock;
31 +       return &bgl->locks[block_group & (NR_BG_LOCKS-1)].lock;
32  }
34  #endif
35 -- 
36 2.8.0.rc3.226.g39d4020