fs/ntfs3: Fix ntfs_look_for_free_space() does only report -ENOSPC
authorKari Argillander <kari.argillander@gmail.com>
Tue, 7 Sep 2021 14:28:39 +0000 (17:28 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 16 Sep 2021 14:01:36 +0000 (17:01 +0300)
commitedb853ff3dc01c22577ea5d0383d067b68a6d663
tree7f08d2f943a61a0661aca14fe932ef6c75d2b5dc
parentcffb5152eea82de890dd418a90612aede96068d6
fs/ntfs3: Fix ntfs_look_for_free_space() does only report -ENOSPC

If ntfs_refresh_zone() returns error it will be changed to -ENOSPC. It
is not right. Also caller of this functions also check other errors.

Fixes: 78ab59fee07f ("fs/ntfs3: Rework file operations")
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/fsntfs.c