include/linux/blockgroup_lock.h
changeset 2 d1f6d8b6f81c
parent 0 aa628870c1d3
--- a/include/linux/blockgroup_lock.h	Thu Apr 09 12:06:38 2009 +0200
+++ b/include/linux/blockgroup_lock.h	Thu Apr 09 12:07:21 2009 +0200
@@ -53,7 +53,10 @@
  * The accessor is a macro so we can embed a blockgroup_lock into different
  * superblock types
  */
-#define sb_bgl_lock(sb, block_group) \
-	(&(sb)->s_blockgroup_lock.locks[(block_group) & (NR_BG_LOCKS-1)].lock)
+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;
+}
 
 #endif