summaryrefslogtreecommitdiff
path: root/include/linux/ext2_fs_sb.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-01-19 05:07:14 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-01-19 05:07:14 -0800
commit6283f86ec40c482d69acb720451cf69098009b9d (patch)
tree4903885c0244ae51156c28cc66700003da237944 /include/linux/ext2_fs_sb.h
parent70d4c9f258a2d99d8dfe7f7274967872573b0f63 (diff)
[PATCH] ext2: s_next_generation locking
There is no locking around the increment of this per-filesystem counter. Create a new lock, just for this.
Diffstat (limited to 'include/linux/ext2_fs_sb.h')
-rw-r--r--include/linux/ext2_fs_sb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ext2_fs_sb.h b/include/linux/ext2_fs_sb.h
index 13178c16c7ea..4eda0ed76a48 100644
--- a/include/linux/ext2_fs_sb.h
+++ b/include/linux/ext2_fs_sb.h
@@ -45,6 +45,7 @@ struct ext2_sb_info {
int s_desc_per_block_bits;
int s_inode_size;
int s_first_ino;
+ spinlock_t s_next_gen_lock;
u32 s_next_generation;
unsigned long s_dir_count;
u8 *s_debts;