Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
struct ext4_sb_info *sbi = EXT4_SB(sb);
struct ext4_li_request *elr;
ext4_group_t ngroups = EXT4_SB(sb)->s_groups_count;
struct ext4_sb_info *sbi = EXT4_SB(sb);
struct ext4_li_request *elr;
ext4_group_t ngroups = EXT4_SB(sb)->s_groups_count;
if (sbi->s_li_request != NULL)
if (sbi->s_li_request != NULL)
if (first_not_zeroed == ngroups ||
(sb->s_flags & MS_RDONLY) ||
!test_opt(sb, INIT_INODE_TABLE)) {
sbi->s_li_request = NULL;
if (first_not_zeroed == ngroups ||
(sb->s_flags & MS_RDONLY) ||
!test_opt(sb, INIT_INODE_TABLE)) {
sbi->s_li_request = NULL;
}
if (first_not_zeroed == ngroups) {
sbi->s_li_request = NULL;
}
if (first_not_zeroed == ngroups) {
sbi->s_li_request = NULL;
}
elr = ext4_li_request_new(sb, first_not_zeroed);
}
elr = ext4_li_request_new(sb, first_not_zeroed);
- if (!elr) {
- ret = -ENOMEM;
- goto out;
- }
+ if (!elr)
+ return -ENOMEM;
mutex_lock(&ext4_li_mtx);
mutex_lock(&ext4_li_mtx);
-
- mutex_unlock(&ext4_li_mtx);
-
- if (ret) {
- mutex_unlock(&ext4_li_mtx);
+ mutex_unlock(&ext4_li_mtx);
+ if (ret)