Skip to content

Add FITRIM ioctl support for exFAT filesystem

Hyeongseok Kim linux-fsdevel lkml 4 versions – Applied

Status from this message: Applied. Thanks for your patches!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 3 repliesApplied
  2. v31 patch 1 replySuperseded
  3. v22 patches 8 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches2 repliesSuperseded

Changes in v4 from the cover letter

- Introduce bitmap_lock mutex to narrow the lock range for bitmap access and change to use bitmap_lock instead of s_lock in FITRIM handler to prevent read stall while ongoing fstrim.
- Minor code style fix

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2exfat: introduce bitmap_lock for cluster bitmap accessfs/exfat/exfat_fs.h fs/exfat/fatent.c fs/exfat/super.c+31 -81 reply
2/2exfat: add support ioctl and FITRIM functionfs/exfat/balloc.c fs/exfat/dir.c fs/exfat/exfat_fs.h +1 more+142 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChaitanya KulkarniSungjong Seo
1/2A-b
2/2R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] Add FITRIM ioctl support for exFAT filesystem

This is for adding FITRIM ioctl functionality to exFAT filesystem. Firstly, because the fstrim is long operation, introduce bitmap_lock to narrow the lock range to prevent read operation stall. After that, add generic ioctl function and FITRIM handler.

Changelog
=========
v3->v4:
- Introduce bitmap_lock mutex to narrow the lock range for bitmap access and change to use bitmap_lock instead of s_lock in FITRIM handler to prevent read stall while ongoing fstrim.
- Minor code style fix

v2->v3:
- Remove unnecessary local variable
- Merge all changes to a single patch

v1->v2:
- Change variable declaration order as reverse tree style.
- Return -EOPNOTSUPP from sb_issue_discard() just as it is.
- Remove cond_resched() in while loop.
- Move ioctl related code into it's helper function.

Hyeongseok Kim (2):
exfat: introduce bitmap_lock for cluster bitmap access
exfat: add support ioctl and FITRIM function

 fs/exfat/balloc.c   | 80 +++++++++++++++++++++++++++++++++++++++++++++
 fs/exfat/dir.c      |  5 +++
 fs/exfat/exfat_fs.h |  5 +++
 fs/exfat/fatent.c   | 37 ++++++++++++++++-----
 fs/exfat/file.c     | 53 ++++++++++++++++++++++++++++++
 fs/exfat/super.c    |  1 +
 6 files changed, 173 insertions(+), 8 deletions(-)
Signature · 1 line
2.27.0.83.g0313f36