ext4: fix return value of ext4_do_update_inode
When ext4_do_update_inode() gets error from ext4_inode_blocks_set(), error number should be returned. Signed-off-by: Li Xi <lixi@ddn.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Jan Kara <jack@suse.cz>
This commit is contained in:
Родитель
d6320cbfc9
Коммит
bce92d566a
|
@ -4204,7 +4204,8 @@ static int ext4_do_update_inode(handle_t *handle,
|
||||||
EXT4_INODE_SET_XTIME(i_atime, inode, raw_inode);
|
EXT4_INODE_SET_XTIME(i_atime, inode, raw_inode);
|
||||||
EXT4_EINODE_SET_XTIME(i_crtime, ei, raw_inode);
|
EXT4_EINODE_SET_XTIME(i_crtime, ei, raw_inode);
|
||||||
|
|
||||||
if (ext4_inode_blocks_set(handle, raw_inode, ei)) {
|
err = ext4_inode_blocks_set(handle, raw_inode, ei);
|
||||||
|
if (err) {
|
||||||
spin_unlock(&ei->i_raw_lock);
|
spin_unlock(&ei->i_raw_lock);
|
||||||
goto out_brelse;
|
goto out_brelse;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче