Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cea73ffd authored by Dyneteve's avatar Dyneteve
Browse files

f2fs: squash updates from stable branch



This reverts commit 012cf6b8.

Revert "f2fs: use file pointer for fscrypt_notsupp_process_policy"

This reverts commit baf45860.

Revert "f2fs: fix a missing size change in f2fs_setattr"

This reverts commit 8b6abc86.

Revert "fs/super.c: fix race between freeze_super() and thaw_super()"

This reverts commit 4cc017f9.

Revert "scripts/tags.sh: catch 4.9-rc6"

This reverts commit 63cb2125.

Revert "f2fs: fix to access nullified flush_cmd_control pointer"

This reverts commit 9db8223c.

Revert "f2fs: free meta pages if sanity check for ckpt is failed"

This reverts commit 2fc56dd0.

Revert "f2fs: detect wrong layout"

This reverts commit fbcf2b46.

Revert "f2fs: call sync_fs when f2fs is idle"

This reverts commit 2dce7c6c.

Revert "f2fs: return AOP_WRITEPAGE_ACTIVATE for writepage"

This reverts commit bf268967.

Revert "f2fs: do not activate auto_recovery for fallocated i_size"

This reverts commit 576296cf.

Revert "f2fs: fix to determine start_cp_addr by sbi->cur_cp_pack"

This reverts commit 185c559a.

Revert "f2fs: fix 32-bit build"

This reverts commit 88b0b9ca.

Revert "f2fs: set ->owner for debugfs status file's file_operations"

This reverts commit b2734317.

Revert "f2fs: fix incorrect free inode count in ->statfs"

This reverts commit bfb9851f.

Revert "f2fs: drop duplicate header timer.h"

This reverts commit 5b6d8581.

Revert "f2fs: fix wrong AUTO_RECOVER condition"

This reverts commit c7767afd.

Revert "f2fs: do not recover i_size if it's valid"

This reverts commit 7efcec30.

Revert "f2fs: fix fdatasync"

This reverts commit 6c4f9310.

Revert "f2fs: fix to account total free nid correctly"

This reverts commit 7133ad8c.

Revert "f2fs: fix an infinite loop when flush nodes in cp"

This reverts commit f1e824db.

Revert "f2fs: don't wait writeback for datas during checkpoint"

This reverts commit 1d2b5a99.

Revert "f2fs: fix wrong written_valid_blocks counting"

This reverts commit 81ae85be.

Revert "f2fs: avoid BG_GC in f2fs_balance_fs"

This reverts commit 0bbd4e41.

Revert "f2fs: fix redundant block allocation"

This reverts commit eca617bf.

Revert "f2fs: use err for f2fs_preallocate_blocks"

This reverts commit 7b61b8b6.

Revert "f2fs: support multiple devices"

This reverts commit c55a7f45.

Revert "f2fs: allow dio read for LFS mode"

This reverts commit 052bddc0.

Revert "f2fs: revert segment allocation for direct IO"

This reverts commit 9a196c30.

Revert "f2fs: return directly if block has been removed from the victim"

This reverts commit 062bee93.

Revert "Revert "f2fs: do not recover from previous remained wrong dnodes""

This reverts commit f1681564.

Revert "f2fs: remove checkpoint in f2fs_freeze"

This reverts commit b3092426.

Revert "f2fs: assign segments correctly for direct_io"

This reverts commit ba5586bc.

Revert "f2fs: fix wrong i_atime recovery"

This reverts commit 56093993.

Revert "f2fs: record inode updating status correctly"

This reverts commit 301d21fe.

Revert "f2fs: Trace reset zone events"

This reverts commit a41d2eaa.

Revert "f2fs: Reset sequential zones on zoned block devices"

This reverts commit 553c1e75.

Revert "f2fs: Cache zoned block devices zone type"

This reverts commit bf962adf.

Revert "f2fs: Do not allow adaptive mode for host-managed zoned block devices"

This reverts commit 15e51b3b.

Revert "f2fs: Always enable discard for zoned blocks devices"

This reverts commit c3930969.

Revert "f2fs: Suppress discard warning message for zoned block devices"

This reverts commit ace55de0.

Revert "f2fs: Check zoned block feature for host-managed zoned block devices"

This reverts commit 4b6e30c9.

Revert "f2fs: Use generic zoned block device terminology"

This reverts commit f551b0f1.

Revert "f2fs: Add missing break in switch-case"

This reverts commit 9f1578fd.

Revert "f2fs: avoid infinite loop in the EIO case on recover_orphan_inodes"

This reverts commit 429ee3c4.

Revert "f2fs: report error of f2fs_fill_dentries"

This reverts commit ea8ef7d8.

Revert "fs/crypto: catch up 4.9-rc2"

This reverts commit 558a0f7e.

Revert "f2fs: hide a maybe-uninitialized warning"

This reverts commit 9e67610b.

Revert "f2fs: remove percpu_count due to performance regression"

This reverts commit 4dbcb415.

Revert "f2fs: make clean inodes when flushing inode page"

This reverts commit 42d46750.

Revert "f2fs: keep dirty inodes selectively for checkpoint"

This reverts commit d0c78b7b.

Revert "f2fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps"

This reverts commit 8162ee10.

Revert "f2fs: use BIO_MAX_PAGES for bio allocation"

This reverts commit 175fb343.

Revert "f2fs: declare static function for __build_free_nids"

This reverts commit 7e7d920c.

Revert "f2fs: call f2fs_balance_fs for setattr"

This reverts commit a60d3a2d.

Revert "f2fs: count dirty inodes to flush node pages during checkpoint"

This reverts commit 41ea7c70.

Revert "f2fs: avoid casted negative value as shrink count"

This reverts commit 0643e2de.

Revert "f2fs: don't interrupt free nids building during nid allocation"

This reverts commit 2724aced.

Revert "f2fs: clean up free nid list operations"

This reverts commit e5b5d6e4.

Revert "f2fs: split free nid list"

This reverts commit 90459a25.

Revert "f2fs: clear nlink if fail to add_link"

This reverts commit 86e705b2.

Revert "f2fs: fix sparse warnings"

This reverts commit c50eabf4.

Revert "f2fs: fix error handling in fsync_node_pages"

This reverts commit 7dc73068.

Revert "f2fs: fix to update largest extent under lock"

This reverts commit 97470f51.

Revert "f2fs: be aware of extent beyond EOF in fiemap"

This reverts commit dfdcc52e.

Revert "f2fs: don't miss any f2fs_balance_fs cases"

This reverts commit b29436dc.

Revert "f2fs: add missing f2fs_balance_fs in f2fs_zero_range"

This reverts commit 8c9a6e33.

Revert "f2fs: give a chance to detach from dirty list"

This reverts commit 65448d41.

Revert "f2fs: fix to release discard entries during checkpoint"

This reverts commit 45d3e96e.

Revert "f2fs: exclude free nids building and allocation"

This reverts commit 5475bdbd.

Revert "f2fs: fix wrong sum_page pointer in f2fs_gc"

This reverts commit 6fa8f607.

Revert "f2fs: introduce update_ckpt_flags to clean up"

This reverts commit e2446658.

Revert "f2fs: don't submit irrelevant page"

This reverts commit afc18d8a.

Revert "f2fs: fix to commit bio cache after flushing node pages"

This reverts commit e57172be.

Revert "f2fs: introduce get_checkpoint_version for cleanup"

This reverts commit 15dd4da9.

Revert "f2fs: remove dead variable"

This reverts commit 6c5c209c.

Revert "f2fs: remove redundant io plug"

This reverts commit b3f12c7e.

Revert "f2fs: support checkpoint error injection"

This reverts commit bc60fd12.

Revert "f2fs: fix to recover old fault injection config in ->remount_fs"

This reverts commit 374f0095.

Revert "f2fs: do fault injection initialization in default_options"

This reverts commit ce4bbbc0.

Revert "f2fs: remove redundant value definition"

This reverts commit da8ac963.

Revert "f2fs: support configuring fault injection per superblock"

This reverts commit 7636ec0f.

Revert "f2fs: adjust display format of segment bit"

This reverts commit 89891523.

Revert "f2fs: remove dirty inode pages in error path"

This reverts commit 23907cfe.

Revert "f2fs: do not unnecessarily null-terminate encrypted symlink data"

This reverts commit 737baf6e.

Revert "f2fs: handle errors during recover_orphan_inodes"

This reverts commit 1176061b.

Revert "f2fs: avoid gc in cp_error case"

This reverts commit 5b4a4cf8.

Revert "f2fs: should put_page for summary page"

This reverts commit e2c18732.

Revert "f2fs: assign return value in f2fs_gc"

This reverts commit e77ab74c.

Revert "f2fs: introduce cp_lock to protect updating of ckpt_flags"

This reverts commit 6bf094ed.

Revert "f2fs: fix to avoid race condition when updating sbi flag"

This reverts commit 93f4ca71.

Revert "f2fs: put directory inodes before checkpoint in roll-forward recovery"

This reverts commit 1a5ea097.

Revert "f2fs: use crc and cp version to determine roll-forward recovery"

This reverts commit bae2f1e3.

Revert "f2fs: preallocate blocks for encrypted file"

This reverts commit 51a80a1d.

Revert "f2fs: show dirty inode number"

This reverts commit be50b767.

Revert "f2fs: support IO error injection"

This reverts commit 5b316e21.

Revert "f2fs: fix to return error number of read_all_xattrs correctly"

This reverts commit c9a393f8.

Revert "f2fs: make f2fs_filetype_table static"

This reverts commit 4415adf5.

Revert "f2fs: handle error in recover_orphan_inode"

This reverts commit 7a007820.

Revert "f2fs: remove dead code f2fs_check_acl"

This reverts commit aa9ad31b.

Revert "f2fs: exclude special cases for f2fs_move_file_range"

This reverts commit b8bc37bb.

Revert "f2fs: fix to set PageUptodate in f2fs_write_end correctly"

This reverts commit a65292b9.

Revert "f2fs: fix parameters of __exchange_data_block"

This reverts commit 14a9addc.

Revert "f2fs: avoid ENOMEM during roll-forward recovery"

This reverts commit 75a1ef22.

Revert "f2fs: add common iget in add_fsync_inode"

This reverts commit 16c0f69c.

Revert "f2fs: check free_sections for defragmentation"

This reverts commit d8191d52.

Revert "f2fs: forbid to do fstrim if fs has some error"

This reverts commit 9fd4dc50.

Revert "f2fs: avoid page allocation for truncating partial inline_data"

This reverts commit 1f9d7162.

Revert "f2fs: no need to make zeros beyond i_size"

This reverts commit 002da328.

Revert "f2fs: fix to detect temporary name of multimedia file"

This reverts commit 802ebb7b.

Revert "f2fs: set dentry bits on random location in memory"

This reverts commit 32ac8c96.

Revert "f2fs: fix to set superblock dirty correctly"

This reverts commit b05af279.

Revert "f2fs: add roll-forward recovery process for encrypted dentry"

This reverts commit a7ab6571.

Revert "f2fs: fix lost xattrs of directories"

This reverts commit c0cf4058.

Revert "f2fs: set encryption name flag in add inline entry path"

This reverts commit e2850fe2.

Revert "f2fs crypto: avoid unneeded memory allocation in ->readdir"

This reverts commit f620c81c.

Revert "f2fs: fix to do security initialization of encrypted inode with original filename"

This reverts commit d0ce7595.

Revert "f2fs: do in batch synchronously readahead during GC"

This reverts commit 3070a7d6.

Revert "f2fs: schedule in between two continous batch discards"

This reverts commit b20c7a1c.

Revert "f2fs: enable inline_dentry by default and add noinline_dentry option"

This reverts commit a1f7447c.

Revert "f2fs: fix a bug when using namehash to locate dentry bucket"

This reverts commit 542a1bd8.

Revert "f2fs: fix to preallocate block only aligned to 4K"

This reverts commit e6f722d7.

Revert "f2fs: fix non static symbol warning"

This reverts commit bf199152.

Revert "f2fs: remove unnecessary initialization"

This reverts commit 620f4e3f.

Revert "f2fs: remove redundant judgement condition in available_free_memory"

This reverts commit b13feb10.

Revert "f2fs: check return value of write_checkpoint during fstrim"

This reverts commit 43ed9c9d.

Revert "f2fs: fix to do f2fs_balance_fs in f2fs_map_blocks correctly"

This reverts commit b7ab4d02.

Revert "f2fs: avoid unneeded loop in build_sit_entries"

This reverts commit b61dfb0a.

Revert "f2fs: clean up foreground GC flow"

This reverts commit 77a1c00f.

Revert "f2fs: set dirty state for filesystem only when updating meta data"

This reverts commit 898e15dc.

Revert "f2fs: skip new checkpoint when doing fstrim without fs change"

This reverts commit e4fe89c7.

Revert "f2fs: add discard info to sys entry of f2fs status"

This reverts commit 14e47f06.

Revert "f2fs: reduce batch size of fstrim"

This reverts commit 2cd03202.

Revert "f2fs: do not use discard_map for hard disks"

This reverts commit c57a2450.

Revert "f2fs: not allow to write illegal blkaddr"

This reverts commit 0ada03f6.

Revert "Revert "f2fs: move i_size_write in f2fs_write_end""

This reverts commit 00c217a7.

Revert "f2fs: fix build for v3.10"

This reverts commit 5b571e60.

Revert "f2fs: adjust other changes"

This reverts commit 0f399c5a.

Revert "f2fs: get victim segment again after new cp"

This reverts commit 39668960.

Revert "f2fs: handle error case with f2fs_bug_on"

This reverts commit b0fbba3b.

Revert "f2fs: avoid data race when deciding checkpoin in f2fs_sync_file"

This reverts commit e3999cf1.

Revert "f2fs: support an ioctl to move a range of data blocks"

This reverts commit 7e9c0793.

Revert "f2fs: fix to report error number of f2fs_find_entry"

This reverts commit a911c332.

Revert "f2fs: avoid memory allocation failure due to a long length"

This reverts commit 420f7656.

Revert "f2fs: reset default idle interval value"

This reverts commit a307d909.

Revert "f2fs: use blk_plug in all the possible paths"

This reverts commit 7a2d1ac2.

Revert "f2fs: fix to avoid data update racing between GC and DIO"

This reverts commit 95558867.

Revert "f2fs: add maximum prefree segments"

This reverts commit f91a7054.

Revert "f2fs: disable extent_cache for fcollapse/finsert inodes"

This reverts commit 12b96d7d.

Revert "f2fs: refactor __exchange_data_block for speed up"

This reverts commit 2dde545b.

Revert "f2fs: fix ERR_PTR returned by bio"

This reverts commit e00dc79f.

Revert "f2fs: avoid mark_inode_dirty"

This reverts commit 099ffd29.

Revert "f2fs: move i_size_write in f2fs_write_end"

This reverts commit 577d3a50.

Revert "f2fs: fix to avoid redundant discard during fstrim"

This reverts commit a7a13fd8.

Revert "f2fs: avoid mismatching block range for discard"

This reverts commit f1180b91.

Revert "f2fs: fix incorrect f_bfree calculation in ->statfs"

This reverts commit 1e3a0408.

Revert "f2fs: skip to check the block address of node page"

This reverts commit 7b36d9a1.

Revert "f2fs: shrink critical region in spin_lock"

This reverts commit 535f03ab.

Revert "f2fs: call SetPageUptodate if needed"

This reverts commit e3d6f9a0.

Revert "f2fs: introduce f2fs_set_page_dirty_nobuffer"

This reverts commit f7e965b9.

Revert "f2fs: remove unnecessary goto statement"

This reverts commit a19d3807.

Revert "f2fs: add nodiscard mount option"

This reverts commit 451b55b5.

Revert "f2fs: fix to redirty page if fail to gc data page"

This reverts commit 0366e4a0.

Revert "f2fs: fix to detect truncation prior rather than EIO during read"

This reverts commit 38dce02d.

Revert "f2fs: fix to avoid reading out encrypted data in page cache"

This reverts commit 4a5069bd.

Revert "f2fs: avoid latency-critical readahead of node pages"

This reverts commit b70a0dac.

Revert "f2fs: avoid writing node/metapages during writes"

This reverts commit 59134dc2.

Revert "f2fs: produce more nids and reduce readahead nats"

This reverts commit b0d05378.

Revert "f2fs: detect host-managed SMR by feature flag"

This reverts commit 9f82741a.

Revert "f2fs: call update_inode_page for orphan inodes"

This reverts commit 2781f845.

Revert "f2fs: report error for f2fs_parent_dir"

This reverts commit 19a2f8d0.

Revert "f2fs: find parent dentry correctly"

This reverts commit 9b769c80.

Revert "f2fs: fix deadlock in add_link failure"

This reverts commit 74fb9041.

Revert "f2fs: introduce mode=lfs mount option"

This reverts commit 0d84145b.

Revert "f2fs: skip clean segment for gc"

This reverts commit 4ddb76d8.

Revert "f2fs: drop any block plugging"

This reverts commit e796250f.

Revert "f2fs: avoid reverse IO order for NODE and DATA"

This reverts commit 38bb4aef.

Revert "f2fs: set mapping error for EIO"

This reverts commit a4401ab6.

Revert "f2fs: control not to exceed # of cached nat entries"

This reverts commit ab8eaacf.

Revert "f2fs: fix wrong percentage"

This reverts commit 8124efff.

Revert "f2fs: avoid data race between FI_DIRTY_INODE flag and update_inode"

This reverts commit 7d79e024.

Revert "f2fs: remove obsolete parameter in f2fs_truncate"

This reverts commit 197597df.

Revert "f2fs: avoid wrong count on dirty inodes"

This reverts commit bd98ec1e.

Revert "f2fs: remove deprecated parameter"

This reverts commit 0ee3cb87.

Revert "f2fs: handle writepage correctly"

This reverts commit 82819e91.

Revert "f2fs: return error of f2fs_lookup"

This reverts commit 7f85135f.

Revert "f2fs: return the errno to the caller to avoid using a wrong page"

This reverts commit bac44e9f.

Revert "f2fs: remove two steps to flush dirty data pages"

This reverts commit cde18a73.

Revert "f2fs: do not skip writing data pages"

This reverts commit f29dcced.

Revert "f2fs: inject to produce some orphan inodes"

This reverts commit 4d82d9dd.

Revert "f2fs: propagate error given by f2fs_find_entry"

This reverts commit 56a562e6.

Revert "f2fs: remove writepages lock"

This reverts commit 36ede034.

Revert "f2fs: set flush_merge by default"

This reverts commit 4b7c225a.

Revert "f2fs: detect congestion of flush command issues"

This reverts commit 0b1cde1b.

Revert "f2fs: avoid unnecessary updating inode during fsync"

This reverts commit 29e464ef.

Revert "f2fs: remove syncing inode page in all the cases"

This reverts commit 056114a5.

Revert "f2fs: flush inode metadata when checkpoint is doing"

This reverts commit efb833b3.

Revert "f2fs: call mark_inode_dirty_sync for i_field changes"

This reverts commit 5d249148.

Revert "f2fs: introduce f2fs_i_links_write with mark_inode_dirty_sync"

This reverts commit 50e41197.

Revert "f2fs: introduce f2fs_i_blocks_write with mark_inode_dirty_sync"

This reverts commit e7c436c8.

Revert "f2fs: introduce f2fs_i_size_write with mark_inode_dirty_sync"

This reverts commit 3b7fba20.

Revert "f2fs: use inode pointer for {set, clear}_inode_flag"

This reverts commit 6e649a16.

Revert "Revert "f2fs: no need inc dirty pages under inode lock""

This reverts commit c9633c95.

Revert "fs: Import f2fs & crypto"

This reverts commit 636cbc2c.

Revert "fs: Remove F2FS"

This reverts commit 79971333.

Merge remote-tracking branch 'f2fs-stable/linux-3.10.y' into cm-14.1-caf-8916

Last commit: 497842998b07f411103f96759680f971285eb7c3
Author: Jaegeuk Kim <jaegeuk@kernel.org>
Date:   Tue Mar 7 14:11:06 2017 -0800

    f2fs: use __set{__clear}_bit_le

    This patch uses __set{__clear}_bit_le for highter speed.

Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>

Merge remote-tracking branch 'f2fs-stable/linux-3.10.y' into cm-14.1-caf-8916

Last commit 3256173b5c5cda02c527c77d2284351ec6181cfc
Author: Eric Biggers <ebiggers@google.com>
Date:   Mon Apr 24 10:00:12 2017 -0700

    f2fs: switch to using fscrypt_match_name()

    Switch f2fs directory searches to use the fscrypt_match_name() helper
    function.  There should be no functional change.

Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Acked-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 5643f7bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment