]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/ext3_fs_sb.h
Merge branch 'fix/asoc' into for-linus
[linux-2.6-omap-h63xx.git] / include / linux / ext3_fs_sb.h
index b65f0288b842202866b878e5bae6889d2b763576..f07f34de2f0ecb7ed987c49c604ce3efce4690e6 100644 (file)
@@ -57,10 +57,11 @@ struct ext3_sb_info {
        u32 s_next_generation;
        u32 s_hash_seed[4];
        int s_def_hash_version;
+       int s_hash_unsigned;    /* 3 if hash should be signed, 0 if not */
        struct percpu_counter s_freeblocks_counter;
        struct percpu_counter s_freeinodes_counter;
        struct percpu_counter s_dirs_counter;
-       struct blockgroup_lock s_blockgroup_lock;
+       struct blockgroup_lock *s_blockgroup_lock;
 
        /* root of the per fs reservation window tree */
        spinlock_t s_rsv_window_lock;
@@ -83,4 +84,10 @@ struct ext3_sb_info {
 #endif
 };
 
+static inline spinlock_t *
+sb_bgl_lock(struct ext3_sb_info *sbi, unsigned int block_group)
+{
+       return bgl_lock_ptr(sbi->s_blockgroup_lock, block_group);
+}
+
 #endif /* _LINUX_EXT3_FS_SB */