Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 56a07b0 f2fs: deny accessing encryption policy if encryption is off c394842 f2fs: inject fault in inc_valid_node_count 9262922 f2fs: fix to clear FI_NO_PREALLOC e6cfc5d f2fs: expose quota information in debugfs c4cd2ef f2fs: separate nat entry mem alloc from nat_tree_lock 48c72b4 f2fs: validate before set/clear free nat bitmap baf9275 f2fs: avoid opened loop codes in __add_ino_entry 47af6c7 f2fs: apply write hints to select the type of segments for buffered write ac98191 f2fs: introduce scan_curseg_cache for cleanup ca28e96 f2fs: optimize the way of traversing free_nid_bitmap 460688b f2fs: keep scanning until enough free nids are acquired 0186182 f2fs: trace checkpoint reason in fsync() 5d4b6ef f2fs: keep isize once block is reserved cross EOF 3c8f767 f2fs: avoid race in between GC and block exchange 4423778 f2fs: save a multiplication for last_nid calculation 3e3b405 f2fs: fix summary info corruption 44889e4 f2fs: remove dead code in update_meta_page 55c7b95 f2fs: remove unneeded semicolon 8b92814 f2fs: don't bother with inode->i_version 42c7c71 f2fs: check curseg space before foreground GC c547049 f2fs: use rw_semaphore to protect SIT cache 82750d3 f2fs: support quota sys files 26dfec4 f2fs: add quota_ino feature infra ddb8e2a f2fs: optimize __update_nat_bits f46ae95 f2fs: modify for accurate fggc node io stat c713fdb Revert "f2fs: handle dirty segments inside refresh_sit_entry" 873ec50 f2fs: add a function to move nid ae66786 f2fs: export SSR allocation threshold 90c28a1 f2fs: give correct trimmed blocks in fstrim 5612922 f2fs: support bio allocation error injection 583b7a2 f2fs: support get_page error injection 09a073c f2fs: add missing sysfs description e945474 f2fs: support soft block reservation b7b2e62 f2fs: handle error case when adding xattr entry 7368e30 f2fs: support flexible inline xattr size ada4061 f2fs: show current cp state 5b8ff13 f2fs: add missing quota_initialize 46d4a69 f2fs: show # of dirty segments via sysfs fc13f9d f2fs: stop all the operations by cp_error flag 91bea0c f2fs: remove several redundant assignments 807486c f2fs: avoid using timespec 03b1cb0 f2fs: fix to correct no_fggc_candidate 5c15033 Revert "f2fs: return wrong error number on f2fs_quota_write" 5f5f593 f2fs: remove obsolete pointer for truncate_xattr_node 032a690 f2fs: retry ENOMEM for quota_read|write 171b638 f2fs: limit # of inmemory pages 83ed7a6 f2fs: update ctx->pos correctly when hitting hole in directory 4d6e68b f2fs: relocate readahead codes in readdir() c8be47b f2fs: allow readdir() to be interrupted 2b903fe f2fs: trace f2fs_readdir bb0db66 f2fs: trace f2fs_lookup 40d6250 f2fs: skip searching non-exist range in truncate_hole 8e84f37 f2fs: expose some sectors to user in inline data or dentry case cb98f70 f2fs: avoid stale fi->gdirty_list pointer 5562a3c f2fs/crypto: drop crypto key at evict_inode only 85853e7 f2fs: fix to avoid race when accessing last_disk_size 0c47a89 f2fs: Fix bool initialization/comparison 68e801a f2fs: give up CP_TRIMMED_FLAG if it drops discards df74eac f2fs: trace f2fs_remove_discard bd502c6 f2fs: reduce cmd_lock coverage in __issue_discard_cmd a34ab5c f2fs: split discard policy 1e65afd f2fs: wrap discard policy 684447d f2fs: support issuing/waiting discard in range 27eaad0 f2fs: fix to flush multiple device in checkpoint 08bb9d6 f2fs: enhance multiple device flush 9c2526a f2fs: fix to show ino management cache size correctly 814b463 f2fs: drop FI_UPDATE_WRITE tag after f2fs_issue_flush f555b0a f2fs: obsolete ALLOC_NID_LIST list 75d3164 f2fs: convert inline data for direct I/O & FI_NO_PREALLOC 4de0ceb f2fs: allow readpages with NULL file pointer 322a45d f2fs: show flush list status in sysfs 6d625a9 f2fs: introduce read_xattr_block 8ea6e1c f2fs: introduce read_inline_xattr dbce11e Revert "f2fs: reuse nids more aggressively" 131bc9f Revert "f2fs: node segment is prior to data segment selected victim" Change-Id: I93b9cd867b859a667a448b39299ff44a2b841b8c Signed-off-by: Jaegeuk Kim <[email protected]>
- Loading branch information