Skip to content

Fix error path and use kernel macros for min/max/calmp

Kari Argillander lkml ntfs3 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fs/ntfs3: Fix ntfs_look_for_free_space() does only report -ENOSPCfs/ntfs3/fsntfs.c+27 -240 replies
2/4fs/ntfs3: Remove always false condition checkfs/ntfs3/fsntfs.c+1 -40 replies
3/4fs/ntfs3: Use clamp/max macros instead of comparisonsfs/ntfs3/fsntfs.c+3 -50 replies
4/4fs/ntfs3: Use min/max macros instated of ternary operatorsfs/ntfs3/attrib.c fs/ntfs3/bitmap.c fs/ntfs3/fsntfs.c+11 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Fix error path and use kernel macros for min/max/calmp

First fix some error path fault which I found during when I did this. It should go to 5.15.

For better code readability we can use kernel defined macros. Patch 2/4 also removes some dead code so that it would be more clear why do we do what we do in patch 3/4.

Series is tested with xfs-tests. No recression in my tests.

Kari Argillander (4):
fs/ntfs3: Fix ntfs_look_for_free_space() does only report -ENOSPC fs/ntfs3: Remove always false condition check fs/ntfs3: Use clamp/max macros instead of comparisons fs/ntfs3: Use min/max macros instated of ternary operators

 fs/ntfs3/attrib.c |  3 ++-
 fs/ntfs3/bitmap.c | 11 ++++----
 fs/ntfs3/fsntfs.c | 68 +++++++++++++++++++++++------------------------
 3 files changed, 41 insertions(+), 41 deletions(-)

base-commit: 2e3a51b59ea26544303e168de8a0479915f09aa3

Signature · 1 line
2.25.1