Blame SOURCES/0060-fs-ntfs3-Remove-always-false-condition-check.patch
|
Kmods SIG |
8b815c |
From f162f7b8dbc29742896f8a7e678bb31192716ae0 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
8b815c |
From: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
8b815c |
Date: Tue, 7 Sep 2021 17:28:40 +0300
|
|
Kmods SIG |
8b815c |
Subject: [Backport f162f7b8dbc2] src: Remove always false condition check
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
We do not need this check as this is same thing as
|
|
Kmods SIG |
8b815c |
NTFS_MIN_MFT_ZONE > zlen. We already check NTFS_MIN_MFT_ZONE <= zlen and
|
|
Kmods SIG |
8b815c |
exit because is too big request. Remove it so code is cleaner.
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
8b815c |
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
|
|
Kmods SIG |
8b815c |
---
|
|
Kmods SIG |
8b815c |
src/fsntfs.c | 5 +----
|
|
Kmods SIG |
8b815c |
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
diff --git a/src/fsntfs.c b/src/fsntfs.c
|
|
Kmods SIG |
8b815c |
index e77fad89eaed372cbb972cab51d904fe99b3d565..4cd24e4e58ff26b3ddce5f891783a36cca6170a7 100644
|
|
Kmods SIG |
8b815c |
--- a/src/fsntfs.c
|
|
Kmods SIG |
8b815c |
+++ b/src/fsntfs.c
|
|
Kmods SIG |
8b815c |
@@ -422,11 +422,8 @@ int ntfs_look_for_free_space(struct ntfs_sb_info *sbi, CLST lcn, CLST len,
|
|
Kmods SIG |
8b815c |
ztrim = len > zlen ? zlen : (len > zlen2 ? len : zlen2);
|
|
Kmods SIG |
8b815c |
new_zlen = zlen - ztrim;
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
- if (new_zlen < NTFS_MIN_MFT_ZONE) {
|
|
Kmods SIG |
8b815c |
+ if (new_zlen < NTFS_MIN_MFT_ZONE)
|
|
Kmods SIG |
8b815c |
new_zlen = NTFS_MIN_MFT_ZONE;
|
|
Kmods SIG |
8b815c |
- if (new_zlen > zlen)
|
|
Kmods SIG |
8b815c |
- new_zlen = zlen;
|
|
Kmods SIG |
8b815c |
- }
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
wnd_zone_set(wnd, zlcn, new_zlen);
|
|
Kmods SIG |
8b815c |
|
|
Kmods SIG |
8b815c |
--
|
|
Kmods SIG |
8b815c |
2.31.1
|
|
Kmods SIG |
8b815c |
|