forked from analogdevicesinc/linux
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
f2fs: support soft block reservation
It supports to extend reserved_blocks sysfs interface to be soft threshold, which allows user configure it exceeding current available user space. This patch also introduces a new sysfs interface called current_reserved_blocks, which shows the current blocks that have already been reserved. Signed-off-by: Yunlong Song <[email protected]> Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
- Loading branch information
Yunlong Song
authored and
Jaegeuk Kim
committed
Nov 6, 2017
1 parent
bf9c142
commit 80d4214
Showing
4 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,7 +138,18 @@ What: /sys/fs/f2fs/<disk>/reserved_blocks | |
Date: June 2017 | ||
Contact: "Chao Yu" <[email protected]> | ||
Description: | ||
Controls current reserved blocks in system. | ||
Controls target reserved blocks in system, the threshold | ||
is soft, it could exceed current available user space. | ||
|
||
What: /sys/fs/f2fs/<disk>/current_reserved_blocks | ||
Date: October 2017 | ||
Contact: "Yunlong Song" <[email protected]> | ||
Contact: "Chao Yu" <[email protected]> | ||
Description: | ||
Shows current reserved blocks in system, it may be temporarily | ||
smaller than target_reserved_blocks, but will gradually | ||
increase to target_reserved_blocks when more free blocks are | ||
freed by user later. | ||
|
||
What: /sys/fs/f2fs/<disk>/gc_urgent | ||
Date: August 2017 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters