diff options
Diffstat (limited to 'fs/ext2/inode.c')
-rw-r--r-- | fs/ext2/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index fc13cc119aad..5d15442abbd0 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c | |||
@@ -1407,9 +1407,11 @@ static int __ext2_write_inode(struct inode *inode, int do_sync) | |||
1407 | * created, add a flag to the superblock. | 1407 | * created, add a flag to the superblock. |
1408 | */ | 1408 | */ |
1409 | lock_kernel(); | 1409 | lock_kernel(); |
1410 | spin_lock(&EXT2_SB(sb)->s_lock); | ||
1410 | ext2_update_dynamic_rev(sb); | 1411 | ext2_update_dynamic_rev(sb); |
1411 | EXT2_SET_RO_COMPAT_FEATURE(sb, | 1412 | EXT2_SET_RO_COMPAT_FEATURE(sb, |
1412 | EXT2_FEATURE_RO_COMPAT_LARGE_FILE); | 1413 | EXT2_FEATURE_RO_COMPAT_LARGE_FILE); |
1414 | spin_unlock(&EXT2_SB(sb)->s_lock); | ||
1413 | unlock_kernel(); | 1415 | unlock_kernel(); |
1414 | ext2_write_super(sb); | 1416 | ext2_write_super(sb); |
1415 | } | 1417 | } |