ext2: convert to mbcache2
The conversion is generally straightforward. We convert filesystem from a global cache to per-fs one. Similarly to ext4 the tricky part is that xattr block corresponding to found mbcache entry can get freed before we get buffer lock for that block. So we have to check whether the entry is still valid after getting the buffer lock. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
@@ -61,6 +61,8 @@ struct ext2_block_alloc_info {
|
||||
#define rsv_start rsv_window._rsv_start
|
||||
#define rsv_end rsv_window._rsv_end
|
||||
|
||||
struct mb2_cache;
|
||||
|
||||
/*
|
||||
* second extended-fs super-block data in memory
|
||||
*/
|
||||
@@ -111,6 +113,7 @@ struct ext2_sb_info {
|
||||
* of the mount options.
|
||||
*/
|
||||
spinlock_t s_lock;
|
||||
struct mb2_cache *s_mb_cache;
|
||||
};
|
||||
|
||||
static inline spinlock_t *
|
||||
|
Reference in New Issue
Block a user