+3
−0
+49
−15
+27
−11
+23
−8
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Pull f2fs updates from Jaegeuk Kim:
"In this round, we introduce sysfile-based quota support which is
required for Android by default. In addition, we allow that users are
able to reserve some blocks in runtime to mitigate performance drops
in low free space.
Enhancements:
- assign proper data segments according to write_hints given by user
- issue cache_flush on dirty devices only among multiple devices
- exploit cp_error flag and add more faults to enhance fault
injection test
- conduct more readaheads during f2fs_readdir
- add a range for discard commands
Bug fixes:
- fix zero stat->st_blocks when inline_data is set
- drop crypto key and free stale memory pointer while evict_inode is
failing
- fix some corner cases in free space and segment management
- fix wrong last_disk_size
This series includes lots of clean-ups and code enhancement in terms
of xattr operations, discard/flush command control. In addition, it
adds versatile debugfs entries to monitor f2fs status"
Cherry-picked from origin/upstream-f2fs-stable-linux-4.4.y:
56a07b07 f2fs: deny accessing encryption policy if encryption is off
c394842e f2fs: inject fault in inc_valid_node_count
92629225 f2fs: fix to clear FI_NO_PREALLOC
e6cfc5de f2fs: expose quota information in debugfs
c4cd2efe f2fs: separate nat entry mem alloc from nat_tree_lock
48c72b4c f2fs: validate before set/clear free nat bitmap
baf9275a f2fs: avoid opened loop codes in __add_ino_entry
47af6c72 f2fs: apply write hints to select the type of segments for buffered write
ac981916 f2fs: introduce scan_curseg_cache for cleanup
ca28e967 f2fs: optimize the way of traversing free_nid_bitmap
460688b5 f2fs: keep scanning until enough free nids are acquired
0186182c f2fs: trace checkpoint reason in fsync()
5d4b6efc f2fs: keep isize once block is reserved cross EOF
3c8f767e f2fs: avoid race in between GC and block exchange
4423778a f2fs: save a multiplication for last_nid calculation
3e3b4055 f2fs: fix summary info corruption
44889e48 f2fs: remove dead code in update_meta_page
55c7b959 f2fs: remove unneeded semicolon
8b928141 f2fs: don't bother with inode->i_version
42c7c718 f2fs: check curseg space before foreground GC
c5470498 f2fs: use rw_semaphore to protect SIT cache
82750d34 f2fs: support quota sys files
26dfec49 f2fs: add quota_ino feature infra
ddb8e2ae f2fs: optimize __update_nat_bits
f46ae958 f2fs: modify for accurate fggc node io stat
c713fdb5 Revert "f2fs: handle dirty segments inside refresh_sit_entry"
873ec505 f2fs: add a function to move nid
ae667862 f2fs: export SSR allocation threshold
90c28a18 f2fs: give correct trimmed blocks in fstrim
5612922f f2fs: support bio allocation error injection
583b7a27 f2fs: support get_page error injection
09a073cc f2fs: add missing sysfs description
e945474a f2fs: support soft block reservation
b7b2e629 f2fs: handle error case when adding xattr entry
7368e304 f2fs: support flexible inline xattr size
ada4061e f2fs: show current cp state
5b8ff130 f2fs: add missing quota_initialize
46d4a691 f2fs: show # of dirty segments via sysfs
fc13f9d7 f2fs: stop all the operations by cp_error flag
91bea0c3 f2fs: remove several redundant assignments
807486c7 f2fs: avoid using timespec
03b1cb0b f2fs: fix to correct no_fggc_candidate
5c15033c Revert "f2fs: return wrong error number on f2fs_quota_write"
5f5f5932 f2fs: remove obsolete pointer for truncate_xattr_node
032a6906 f2fs: retry ENOMEM for quota_read|write
171b638f f2fs: limit # of inmemory pages
83ed7a61 f2fs: update ctx->pos correctly when hitting hole in directory
4d6e68be f2fs: relocate readahead codes in readdir()
c8be47b5 f2fs: allow readdir() to be interrupted
2b903fe9 f2fs: trace f2fs_readdir
bb0db666 f2fs: trace f2fs_lookup
40d6250f f2fs: skip searching non-exist range in truncate_hole
8e84f379 f2fs: expose some sectors to user in inline data or dentry case
cb98f70d f2fs: avoid stale fi->gdirty_list pointer
5562a3c5 f2fs/crypto: drop crypto key at evict_inode only
85853e7e f2fs: fix to avoid race when accessing last_disk_size
0c47a892 f2fs: Fix bool initialization/comparison
68e801ab f2fs: give up CP_TRIMMED_FLAG if it drops discards
df74eacb f2fs: trace f2fs_remove_discard
bd502c6e f2fs: reduce cmd_lock coverage in __issue_discard_cmd
a34ab5ca f2fs: split discard policy
1e65afd1 f2fs: wrap discard policy
684447da f2fs: support issuing/waiting discard in range
27eaad09 f2fs: fix to flush multiple device in checkpoint
08bb9d68 f2fs: enhance multiple device flush
9c2526ac f2fs: fix to show ino management cache size correctly
814b463d f2fs: drop FI_UPDATE_WRITE tag after f2fs_issue_flush
f555b0a1 f2fs: obsolete ALLOC_NID_LIST list
75d3164a f2fs: convert inline data for direct I/O & FI_NO_PREALLOC
4de0ceb6 f2fs: allow readpages with NULL file pointer
322a45d1 f2fs: show flush list status in sysfs
6d625a93 f2fs: introduce read_xattr_block
8ea6e1c3 f2fs: introduce read_inline_xattr
dbce11e9 Revert "f2fs: reuse nids more aggressively"
131bc9f6 Revert "f2fs: node segment is prior to data segment selected victim"
Change-Id: I93b9cd867b859a667a448b39299ff44a2b841b8c
Signed-off-by:
Jaegeuk Kim <jaegeuk@google.com>