writeback: fix occasional slow sync(1)

In case when system contains no dirty pages, wakeup_flusher_threads() will
submit WB_SYNC_NONE writeback for 0 pages so wb_writeback() exits
immediately without doing anything, even though there are dirty inodes in
the system.  Thus sync(1) will write all the dirty inodes from a
WB_SYNC_ALL writeback pass which is slow.

Fix the problem by using get_nr_dirty_pages() in wakeup_flusher_threads()
instead of calculating number of dirty pages manually.  That function also
takes number of dirty inodes into account.

Signed-off-by: Jan Kara <jack@suse.cz>
Reported-by: Paul Taysom <taysom@chromium.org>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tuna: sharper ram timings according to specs

Samsung K3PE7E700M RAM chips are CL5. Set it accordingly.
Also, set tRCD and tRP to what's still stable.
Adjust tWR, tCAS and tRAS to reflect sane values. Lower does
not necessarily mean better in these cases.

Information sources:
http://en.wikipedia.org/wiki/SDRAM_latency
http://forums.legitreviews.com/about20065.html
net: wireless: bcmdhd: Disable OOB interrupt when WLAN is off

boype: hand-picked necessary functions to make this work.
The actual fucntionality is part of a whole kernel 3.4 bcmdhd
update.
Remove previous f2fs implementation
Revert "block: separate priority boosting from REQ_META"

This reverts commit ce1ea7480676d4eb232c8c9ea90818097582fca2.

Revert "Move some REQ flags to the common bio/request area"

This reverts commit 87e1c50f4628b4f0a872d03b20bea9feeaae69ed.

Revert "defconfig: enable f2fs"

This reverts commit 4c2f7728ee7c1d032f5237bce8e04ac81b72271e.

Revert "more build fixes"

This reverts commit 774f4ebd0ffc829aed118f57dfce59f44a4244af.

Revert "Revert "f2fs: fix recursive lock by f2fs_setxattr""

This reverts commit b22c9e9c593e625001baa131c7d339c1f09ec290.

Revert "build fixes"

This reverts commit d368c045e7d0acfcfba767ef991e446e6daecf5e.

Revert "Revert "f2fs: introduce f2fs_seek_block to support SEEK_{DATA, HOLE} in llseek""

This reverts commit 20eadd7dc34cff7c2ea899b6e3f8e95274c649b5.

Revert "Revert "f2fs: return i_size if the hole is outside of i_size""

This reverts commit a8c603d0e41881d5a76094bbb9dbc806137a8b1f.

Revert "Revert "f2fs: consider fallocated space for SEEK_DATA""

This reverts commit 8ceb52866ba704dff86d7d25d6ad0c9f6aa1a9a8.

Revert "f2fs: support f2fs_fiemap"

This reverts commit 3c44b99a6b960a502826b5ecbc7428b866bba755.

Revert "f2fs: avoid not to call remove_dirty_inode"

This reverts commit 8f06d2fd7024b4969cb9ad28d6c688b33df27357.

Revert "f2fs: recover fallocated space"

This reverts commit 0ebd88fa3bc52db6420731ce12de3988f558a238.

Revert "f2fs: fix to recover data written by dio"

This reverts commit 6d1f32551fe295e12efb4ac6a48bb53286059b9e.

Revert "f2fs: large volume support"

This reverts commit d0374e247278d7a6b08a0d8e21e0971dd2d1d0e2.

Revert "f2fs: avoid crash when trace f2fs_submit_page_mbio event in ra_sum_pages"

This reverts commit 60396554cc8a39fc3e788fba243458090240d06f.

Revert "f2fs: avoid overflow when large directory feathure is enabled"

This reverts commit fc131ad95c44679339f265436f35409d7505ea09.

Revert "f2fs: fix recursive lock by f2fs_setxattr"

This reverts commit b4461a5696d95c5a5e281e7d86efc333b16b00ae.

Revert "MAINTAINERS: add a co-maintainer from samsung for F2FS"

This reverts commit 223ecec6bf7d7c045c8d3b96782395337676e314.

Revert "MAINTAINERS: change the email address for f2fs"

This reverts commit 17eadeff887418cb20c7577b3d7bf4f3f66a80dc.

Revert "f2fs: use inode_init_owner() to simplify codes"

This reverts commit 796636681637a3b1cf7aafa2d0ab606f73c05460.

Revert "f2fs: avoid to use slab memory in f2fs_issue_flush for efficiency"

This reverts commit ab663dbcefa6134d6164051e8ca7c148ddc90b54.

Revert "f2fs: add a tracepoint for f2fs_read_data_page"

This reverts commit 8e01bde4335e59afd1a8adc0419c5b86ea20d48a.

Revert "f2fs: add a tracepoint for f2fs_write_{meta,node,data}_pages"

This reverts commit 48b15e1db45aa8f165f78d982e8e6ad8b98b35c6.

Revert "f2fs: add a tracepoint for f2fs_write_{meta,node,data}_page"

This reverts commit 21dfbc0f051dbf9c5164fcfb0aa48ad5200ef4e2.

Revert "f2fs: add a tracepoint for f2fs_write_end"

This reverts commit c765be9537c26da6175483dcf401f96ab9b98679.

Revert "f2fs: add a tracepoint for f2fs_write_begin"

This reverts commit 5e4cbc116b991a2a7ffb071f94c202a14b7f584e.

Revert "f2fs: fix checkpatch warning"

This reverts commit 9626b7a66667c9c98827466a30194f55af5fdcc0.

Revert "f2fs: deactivate inode page if the inode is evicted"

This reverts commit fb95394ad330b9c15f2a35c886471ba2a52e0f80.

Revert "f2fs: decrease the lock granularity during write_begin"

This reverts commit 2542c6c593a0fd026d0be0b25df3ca90a1fcd8f1.

Revert "f2fs: no need to wait on page writebck to meta pages"

This reverts commit 9a838ccc07285d2f1379dab8f383d0ddea2562b4.

Revert "f2fs: avoid grab_cache_page_write_begin for data pages"

This reverts commit 893df0635829deeaf9ac6741ed339093038c3e70.

Revert "f2fs: split grab_cache_page and wait_on_page_writeback for node pages"

This reverts commit fb2148004bc78ec4a9a186c283cf9035cf7a4148.

Revert "f2fs: fix to truncate inline data in inode page when setattr"

This reverts commit b16f8e0a4a58b4b1adaf5177b960fd77e3387d14.

Revert "f2fs: readahead multi pages of directory for performance"

This reverts commit d15a88b5fd9ff028534bf1a73e4cd1c6fc947bd2.

Revert "f2fs: set errno when f2fs_iget failed in recover_dentry"

This reverts commit 3dc4e7df10acfa6323bb476840bc9ed69c40c43e.

Revert "f2fs: consider fallocated space for SEEK_DATA"

This reverts commit 266e069e9b13530962c9d5d414d3d0bbae6e7ac1.

Revert "f2fs: return i_size if the hole is outside of i_size"

This reverts commit 443a046a760b2cb7fc1fd9a15474f24af45ee263.

Revert "f2fs: introduce f2fs_seek_block to support SEEK_{DATA, HOLE} in llseek"

This reverts commit ce3152196ab67dee32ca66f789e8179c2f3b90c8.

Revert "f2fs: introduce help function {create,destroy}_flush_cmd_control"

This reverts commit 9ead70072eb77f9661ce0cced5fe307d94062d08.

Revert "f2fs: introduce struct flush_cmd_control to wrap the flush_merge fields"

This reverts commit b7631a0bde0d50bc98b867038e6db6148824d67e.

Revert "f2fs: introduce help macro ADDRS_PER_PAGE()"

This reverts commit 2a57452f5ef27ca3f9ed61a7cf3ef8428d2e0611.

Revert "f2fs: submit bio at the reclaim path"

This reverts commit 60e7d099d7d50d8bf26f4a4dc9449ed38e437b31.

Revert "f2fs: return errors right after checking them"

This reverts commit 2466ac985e9a1cee43b24d5e894df475697e6753.

Revert "f2fs: pass flags field to setxattr functions"

This reverts commit 53de693d3d49c720b101f09c95f1558699aac332.

Revert "f2fs: clean up long variable names"

This reverts commit be8d238b456319d441fca443e33e081d38eb70fb.

Revert "f2fs: handle inline data independently in f2fs_bmap"

This reverts commit a8256d4812b0d551896823600799f5eaac7571c4.

Revert "f2fs: adjust free mem size to flush dentry blocks"

This reverts commit 72b03b1ee29cc5fd24647ae4dd615319abf3d368.

Revert "f2fs: avoid BUG_ON when mouting corrupted image having garbage blocks"

This reverts commit 1786597c8c9eef8ab2af0fd48384e98aa0b8fd27.

Revert "f2fs: add available_nids to fix handling max_nid correctly"

This reverts commit 3b1b152a3ce505cd093b029713af39bcc90157e2.

Revert "f2fs: add static to get_max_meta_blks"

This reverts commit 4dbe9b9d63f46b1c807dfbac0dcb708590fa4e6b.

Revert "f2fs: introduce raw_nat_from_node_info() to simplfy codes"

This reverts commit 13dda0c372a79e1e9083d2d78b4f13ee65700759.

Revert "f2fs: add the flush_merge handle in the remount flow"

This reverts commit 859e9f68825549d78f4ea036ce970ad836bc8506.

Revert "f2fs: atomically set inode->i_flags in f2fs_set_inode_flags()"

This reverts commit c1022893cca49028d7e7b7bec0d7f7bd2b9813d7.

Revert "f2fs: make recover_inline_xattr() static"

This reverts commit 7e6f0bfcff5eab4850234755faa5f1da621656ae.

Revert "f2fs: remove costly dirty_dir_inode operations"

This reverts commit a4262d7c6c8409d943fb3ce3469e215be3d0c198.

Revert "f2fs: fix to unlock f2fs_lock at the omitted error case"

This reverts commit 8391e2c6381d6bb5ef0189065ee8bee11cbd8a8f.

Revert "f2fs: avoid to conduct roll-forward due to the remained garbage blocks"

This reverts commit 1468dabc3bc46ea77f5e67397bac4733ee07ec54.

Revert "f2fs: enable flush_merge only in f2fs is not read-only"

This reverts commit bd8f4d648996283aecf29218ced71f39d50c80a5.

Revert "f2fs: use __GFP_ZERO to avoid appending set-NULL"

This reverts commit 7b8c63c5a15b45e93025db6d66c59e2da7ac3372.

Revert "f2fs: put the bio when issue_flush completed"

This reverts commit 70a4a23fdcaf1a6d62dbc614a4ad61fd65bf56e7.

Revert "f2fs: fix wrong statistics of inline data"

This reverts commit 888cfb8230556f95df75e23770dae571bec36ed5.

Revert "f2fs: introduce f2fs_issue_flush to avoid redundant flush issue"

This reverts commit 4eb885ec81e461e3f73b9476db69f8e5c86df1ce.

Revert "let it build"

This reverts commit 155767cef0c544ff71a7bb441d0a5697810839f0.

Revert "fix fix commit"

This reverts commit 292e7ebe1c0961bc797ca564a7e53de4fde37c32.

Revert "fix commit"

This reverts commit 6057a0d5ef9c1bff0667597383c9de9b71c4267c.

Revert "f2fs: fix to cover io->bio with io_rwsem"

This reverts commit 4a4978fc1e7df8cabdd6d8fe4a1ea089c3d6e6aa.

Revert "f2fs: fix error path when fail to read inline data"

This reverts commit 270a90e4f71f2a19a2cb0bfc2f8d2788dd96c5fc.

Revert "f2fs: use list_for_each_entry{_safe} for simplyfying code"

This reverts commit 151278996fe5267fcccc008c30e3b5d0b71fc3d6.

Revert "f2fs: avoid free slab cache under spinlock"

This reverts commit 501895065d8e7830a59f4b11dc74513ebfbaab03.

Revert "f2fs: avoid unneeded lookup when xattr name length is too long"

This reverts commit 866c608e2ebe4ea2ded7dd4ad0acc85a7fa1b03c.

Revert "f2fs: avoid unnecessary bio submit when wait page writeback"

This reverts commit a7002e8ed7b084412c9e9aeb754ea680e88eed72.

Revert "f2fs: return -EIO when node id is not matched"

This reverts commit 8bfa7e20b6350b879e54fd18a74de1ca180b06c1.

Revert "f2fs: avoid RECLAIM_FS-ON-W warning"

This reverts commit 850ad8500cca5880811cc680ef16785afe86d9b0.

Revert "f2fs: skip unnecessary node writes during fsync"

This reverts commit 440d7bc6a9cae6ffa91600617e4377904844458f.

Revert "f2fs: introduce fi->i_sem to protect fi's info"

This reverts commit 79c9c19a2e842260738a901979da045d36771a3d.

Revert "f2fs: change reclaim rate in percentage"

This reverts commit f21c918425e06a9c8145c53251c9789e19d78d4d.

Revert "f2fs: remove unnecessary threshold"

This reverts commit 19f4d2f7e1109d994e4c246a814d3ae534c2d21c.

Revert "f2fs: throttle the memory footprint with a sysfs entry"

This reverts commit 9587f4ebe58ea87c0e7dbfe2107f0f131a015b3b.

Revert "f2fs: avoid to drop nat entries due to the negative nr_shrink"

This reverts commit 834974021b4138de17e604e51a6eb7b6f651a583.

Revert "f2fs: call f2fs_wait_on_page_writeback instead of native function"

This reverts commit 65f117e9a452a4cbf157846c8005b31e736a853c.

Revert "f2fs: introduce nr_pages_to_write for segment alignment"

This reverts commit 1c4d70a62f938a15d11f36e51a147f648f36de98.

Revert "f2fs: increase pages_skipped when skipping writepages"

This reverts commit 5837b100c85131c738041d7f68c390a85fcd297e.

Revert "f2fs: avoid small data writes by skipping writepages"

This reverts commit c873e33ea9d4d4fa9e57a0a01719425851067b85.

Revert "f2fs: introduce get_dirty_dents for readability"

This reverts commit def83ebeb6e9377d7d6d2e3a3610801764e4ad4e.

Revert "f2fs: fix incorrect parsing with option string"

This reverts commit c8f93b37f46dea7f0b96d2239318c6c7b9bfe8f4.

Revert "f2fs: avoid to return incorrect errno of read_normal_summaries"

This reverts commit 3c44e858f43a62cbda6926bb70363ab442fb37a0.

Revert "f2fs: introduce f2fs_has_xattr_block for better readability"

This reverts commit 2217e82dc6e0910644869faa5777d2cbcb300347.

Revert "f2fs: print type for each segment in segment_info's show"

This reverts commit e6fe49b3c04bcd029ae55681eb6d2e9dabebd0d6.

Revert "f2fs: check upper bound of ino value in f2fs_nfs_get_inode"

This reverts commit c0d9b5afec28029a99c9f4f5600d595231530ea4.

Revert "f2fs: introduce f2fs_has_inline_xattr for better readability"

This reverts commit 06afeda43181127a5f6f3bbbf7fe1519115f69ca.

Revert "f2fs: recover inline xattr data in roll-forward process"

This reverts commit 99e2cc79ea29f2e7e9ee64e0d8d3ec53b8cef4a7.

Revert "f2fs: optimize restore_node_summary slightly"

This reverts commit 7545b11d62c5a0a4f1833f4f2b08488fdd4106f5.

Revert "f2fs: format segment_info's show for better legibility"

This reverts commit a6f5f815262fecdd00d874e67b4506d2619f96fd.

Revert "f2fs: remove the unused ctor argument of f2fs_kmem_cache_create()"

This reverts commit db3f9bf2577a741d34b5834af9521f9ca78b066d.

Revert "f2fs: update start nid only once each circle"

This reverts commit 95b24cdf85e21d21a850928169978bf767e2c0a9.

Revert "f2fs: fix wrong kernel coding style"

This reverts commit 37086fdde894e3937d1ee6f10836e2d9b13181c5.

Revert "f2fs: fix to write node pages with WRITE_SYNC"

This reverts commit 0a16975a11c080ff88660615cbd00efa247995b5.

Revert "f2fs: use existing macro to clean up some codes"

This reverts commit c11f101cd75a4446f35a4434eefc40bb1f03b567.

Revert "f2fs: readahead contiguous SSA blocks for f2fs_gc"

This reverts commit 9410070272f3b40cc905e24013acae37233c561f.

Revert "f2fs: add an sysfs entry to control the directory level"

This reverts commit f190f1b7c6d5e4894e41cff7b82ca36f306449b3.

Revert "f2fs: update documents and a MAINTAINERS entry"

This reverts commit f1d056210720657d45cc00e179e7a369f226af0d.

Revert "f2fs: introduce large directory support"

This reverts commit 4bef5080f4fe389495f12f3463c9f374622113aa.

Revert "f2fs: remove costly bit operations for f2fs_find_entry"

This reverts commit 49bfb88a5b16aed68c67d18cfc569c7df4e78fcd.

Revert "f2fs: implement a lock-free stat_show"

This reverts commit d46285646a27fd495179eb0463c5714afbf5c221.

Revert "f2fs: introduce a radix_tree for the free_nid list"

This reverts commit 03907356ada23492b82bd002cada7c82a20e45a7.

Revert "f2fs: introduce help macro on_build_free_nids()"

This reverts commit acb6c5fd41c13a40296292ae826c7b46c754cb88.

Revert "f2fs: fix to mark the checkpointed nat entry correctly"

This reverts commit 36195a0d6521b884155e2be9b7aa46f2880fbe8f.

Revert "f2fs: fix to do build_stat prior to the recovery procedure"

This reverts commit 6c2826eeaa694cce297730d21506848e4039ff07.

Revert "f2fs: fix not to write data pages on the page reclaiming path"

This reverts commit 9184e10c9a8719b1c9aca4877f5cab9181434370.

Revert "f2fs: fix the calculation of max_nids"

This reverts commit 841bf7c614ad85d9c88ca8f9442006707de6504d.

Revert "f2fs: show counts of checkpoint in status"

This reverts commit 2e83c9a57f172a4d5b952cbf1370dee82e8b0fcd.

Revert "f2fs: introduce ra_meta_pages to readahead CP/NAT/SIT pages"

This reverts commit dab778b54e4855791c646295afe7986397d0bb8c.

Revert "f2fs: use inode mutex to keep atomicity of f2fs_falloc"

This reverts commit cea581de02bf8e1358d31bfbaedf23ec2ee3b09f.

Revert "f2fs: clean up redundant function call"

This reverts commit ffda99d74d7c7ebf976d538e6bac8698e40e484d.

Revert "f2fs: fix f2fs_write_meta_page at no checkpoint status"

This reverts commit cd11fde6c458f97162db77e3cc5cd4f0d300fbf0.

Revert "f2fs: fix to truncate dentry pages in the error case"

This reverts commit e6e03c74b54f87c9dbadf05497a48831f8befdb0.

Revert "f2fs: fix a build warning"

This reverts commit dc8ef9ba17fe11527f6fac856ad918fe255bc4fe.

Revert "f2fs: clean up with a macro"

This reverts commit 181d4cec14cc9c41afd0e1eaace6b3f535c44ea1.

Revert "f2fs: fix the potential mismatch between dir's i_size and i_blocks"

This reverts commit 7eea00fdb2423da4f033fa095d9251e405f83720.

Revert "f2fs: remove the ugly pointer conversion"

This reverts commit d886d020afd33e3cf06f9a4b6911d8dfb0846d9d.

Revert "f2fs: fix to recover xattr node block"

This reverts commit b25a11b630bf5f8ff296a98da3b45f4c79696904.

Revert "f2fs: handle dirty segments inside refresh_sit_entry"

This reverts commit 9051f279a3464514ddf6142619ade25d9008afa1.

Revert "f2fs: update_inode_page should be done all the time"

This reverts commit 4501755991cd14ab0a12fbbe63c37e3e742a2816.

Revert "f2fs: backport k3.0 re-add start/end params to f2fs_sync_file"

This reverts commit df3b502adf7897d0c4db576591d55d2721ddf853.

Revert "fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlers"

This reverts commit a54f3f08466bb79d0a832d80a3cd2a3b482a26e7.

Revert "f2fs: fix k3.0 merge by removing extra balance_fs and check"

This reverts commit 33a761f6a3f78b6e05920776281894c846f0597f.

Revert "f2fs: drop obsolete node page when it is truncated"

This reverts commit afea9a1838c4e78a1b27106b97ce91388f7b34fa.

Revert "f2fs: introduce NODE_MAPPING for code consistency"

This reverts commit fb8b6acda841da0836232afe50c61521bb5f5cb7.

Revert "f2fs: remove the orphan block page array"

This reverts commit 65e93a62dc7498dbcf2ac62b16cd46f882298f1c.

Revert "f2fs: add help function META_MAPPING"

This reverts commit 93c4ec1209ea4bd552a2211236fd9e1959060988.

Revert "f2fs: move a branch for code redability"

This reverts commit 468b5547e1d01c75315099ac2a0092187803e6e7.

Revert "f2fs: call mark_inode_dirty to flush dirty pages"

This reverts commit 89cca7f1d7674e97ae4be5ea9f8d827d07a91fa5.

Revert "f2fs: clean checkpatch warnings"

This reverts commit e98a4911e6ce9097a75bb565d5e3ad019429dc8f.

Revert "f2fs: missing REQ_META and REQ_PRIO when sync_meta_pages(META_FLUSH)"

This reverts commit f61d45b8732e779163b4e0d1591ed71ff8cb1d91.

Revert "f2fs: avoid f2fs_balance_fs call during pageout"

This reverts commit 46380a03da29006db3c2f5ed4fd689917ed15005.

Revert "f2fs: add delimiter to seperate name and value in debug phrase"

This reverts commit 34384eca14437ae1cc29be637cca7702c400224a.

Revert "f2fs: use spinlock rather than mutex for better speed"

This reverts commit 5b3b28be6db4efd78321e314dbd0b93f925d03c3.

Revert "f2fs: move alloc new orphan node out of lock protection region"

This reverts commit 5efcbd48aea515b12018720b065ed6eb55beb3a4.

Revert "f2fs: move grabing orphan pages out of protection region"

This reverts commit f28bad154553b37189a93eec6cc68f718b40a945.

Revert "f2fs: remove the needless parameter of f2fs_wait_on_page_writeback"

This reverts commit ddb0191f6510eaa849cf4aab39ce266a795142cb.

Revert "f2fs: add a sysfs entry to control max_victim_search"

This reverts commit c7767a5039c7cbb12424e7c73de4c56413a57a89.

Revert "f2fs: improve write performance under frequent fsync calls"

This reverts commit b45fe9241d46d1ecbaa859a915418d2e99dfc870.

Revert "f2fs: avoid to read inline data except first page"

This reverts commit 77c375516f584bae1a493cd2b69823cf4695f495.

Revert "f2fs: avoid to left uninitialized data in page when read inline data"

This reverts commit 4231380ff229a2357340b4885f6832714f0cfc23.

Revert "f2fs: fix truncate_partial_nodes bug"

This reverts commit c5788c62db65d1dcfecf7104d064083251e9db61.

Revert "f2fs: handle errors correctly during f2fs_reserve_block"

This reverts commit b24993d743b55e37d1269a83800043d381f66080.

Revert "f2fs: add inline_data recovery routine"

This reverts commit 6d19adde45b65a0527f396fc462744be8133034f.

Revert "f2fs: add the number of inline_data files to status info"

This reverts commit e233906287a8c05274b2a347f1fbbbe4efb412f7.

Revert "f2fs: refactor f2fs_convert_inline_data"

This reverts commit 64f4593665db87843d57874fb894eba585364cc5.

Revert "f2fs: call f2fs_put_page at the error case"

This reverts commit 20e5562bb354e10dd40943212e81e85bdbfb7e94.

Revert "f2fs: convert inline_data for punch_hole"

This reverts commit bb2bac6443a6ca16649b597f07dfc54269038e8c.

Revert "f2fs: don't need to get f2fs_lock_op for the inline_data test"

This reverts commit 056902e503e73ccaed7d44b1c2ca1be45c4ebb81.

Revert "f2fs: handle inline data operations"

This reverts commit 902b7e8ee2eafd62aefc0b1bc04c8bb6e7b2de1e.

Revert "f2fs: key functions to handle inline data"

This reverts commit 9cd3611a89ec5c11e43ff69ea2dfefa7538118aa.

Revert "f2fs: convert max_orphans to a field of f2fs_sb_info"

This reverts commit 48cb47c68501cdb2ed6972824948d3f129ca01c4.

Revert "f2fs: check the blocksize before calling generic_direct_IO path"

This reverts commit b162b7c3024343df0c4a8a093200081e4fbda738.

Revert "f2fs: should put the dnode when NEW_ADDR is detected"

This reverts commit be007b4e103b5edd2efdb3ae1f352f25cb42c992.

Revert "f2fs: introduce F2FS_INODE macro to get f2fs_inode"

This reverts commit b033ccc2ed2a525bb0ac840b3c704706accf5fee.

Revert "f2fs: check filename length in recover_dentry"

This reverts commit db38f1a1f9c638c370b3b640c2df538669462722.

Revert "f2fs: avoid to set wrong pino of inode when rename dir"

This reverts commit f1f997dd99151475370718e678f707dd93704bfb.

Revert "f2fs: update several comments"

This reverts commit a2d2b3cbd7c8940f50e34063c2adaf7b6e457805.

Revert "f2fs: remove the rw_flag domain from f2fs_io_info"

This reverts commit f9493cf07246cbf9571e86e7ca50efff45371ecc.

Revert "f2fs: move all the bio initialization into __bio_alloc"

This reverts commit 83a9d1bb53c983aa8506557bae8a6cea2bebe085.

Revert "f2fs: write dirty meta pages collectively"

This reverts commit 89d651f83b53555790fb0fe6f455ba7f2110b8d3.

Revert "block: separate priority boosting from REQ_META"

This reverts commit 48e4c7ed7006d4a3e398bcd9e61d550d58c80f1b.

Revert "block: remove READ_META and WRITE_META"

This reverts commit a9d2cb4f73beb06f179f8e48b7e3ca3be8d2390a.

Revert "f2fs: introduce a new direct_IO write path"

This reverts commit a6beceba8c7351ee7dd7d05f0107fc1f6d4c7bc3.

Revert "f2fs: introduce sysfs entry to control in-place-update policy"

This reverts commit d1de59d7deb4464863ed719006a46034b6357dc3.

Revert "f2fs: missing kmem_cache_destroy for discard_entry"

This reverts commit b93ef2b33d25c99a11603edd5d2f771528e0e8d0.

Revert "f2fs: fix the location of tracepoint"

This reverts commit 47169844cf570f7df39b6dd4b92e91974822ba89.

Revert "f2fs: refactor bio->rw handling"

This reverts commit 85fbc1797cfceb4fb61b8d3d47d9924044f16727.

Revert "f2fs: merge pages with the same sync_mode flag"

This reverts commit 93665b0404188808aa212bca6e2b4555ed9681d6.

Revert "f2fs: add unlikely() macro for compiler more aggressively"

This reverts commit eb8836e8b6ff4672c772c5d7af217b648dced6e7.

Revert "f2fs: add unlikely() macro for compiler optimization"

This reverts commit da2b4c6540f0960099ed0f88229a3c0ec427b3a4.

Revert "f2fs: avoid unneeded page release for correct _count of page"

This reverts commit 3682f566b59ebdbb12dfa1ce3bb20d4e90f85478.

Revert "f2fs: use inner macro GFP_F2FS_ZERO for simplification"

This reverts commit e2058e3989f70b51850377dcd5401603b9f5a35e.

Revert "f2fs: replace the debugfs_root with f2fs_debugfs_root"

This reverts commit 9b2e976e28e4a7dd44b9ac5ee3fd8c8f5d149322.

Revert "f2fs: remove debufs dir if debugfs_create_file() failed"

This reverts commit cfa9706a7753f71c7ef7adb1445cadbc47ea6179.

Revert "f2fs: readahead contiguous pages for restore_node_summary"

This reverts commit ec1e7356cabaddcd256d96e85dd7f1fbad1dd74b.

Revert "f2fs: refactor bio-related operations"

This reverts commit 187ac3d804fbee0ede73e8fced5d6e25f141547c.

Revert "f2fs: remove the own bi_private allocation"

This reverts commit 9a04530492d8b342a27abfd7be607efdc945ffcd.

Revert "f2fs: convert recover_orphan_inodes to void"

This reverts commit fd7e8af4c0377fabeecfb33b94df09c639da8cd3.

Revert "f2fs: check return value of f2fs_readpage in find_data_page"

This reverts commit d840f3753e3527a0a8ba7925295f43d3fefdb75c.

Revert "f2fs: use true and false for boolean variable"

This reverts commit ae7ea37b1bf96ce665b1d20987bcd03b2e9ba0eb.

Revert "f2fs: correct type of wait in struct bio_private"

This reverts commit cdf064219f4936e2be878bc9eee16f552e6fcf3e.

Revert "f2fs: avoid to calculate incorrect max orphan number"

This reverts commit 0c531bb5bf26cb316e0d1600f3698baa84604e34.

Revert "f2fs: remove unneeded code in punch_hole"

This reverts commit f739139f19dd3ce6606943614e6f49836b142d41.

Revert "f2fs: remove unnecessary condition checks"

This reverts commit 41bf88fbfa3905e6dfeeda4e6e03947f05452648.

Revert "f2fs: bug fix on bit overflow from 32bits to 64bits"

This reverts commit d60b8bf104f838ae8dbea14469934ebc2619342e.

Revert "f2fs: fix a potential out of range issue"

This reverts commit dc50c3760a67d750c115d8fcfef73e61d0f987ee.

Revert "f2fs: remove unnecessary return value"

This reverts commit 952d2ecb2b949fe21199759b234603ff2ab0fd91.

Revert "f2fs: add a new mount option: inline_data"

This reverts commit a0f8d95afc5dbb74a37af42f8dbd312e290fa470.

Revert "f2fs: add flags and helpers to support inline data"

This reverts commit a6c318b542550644bf2ce5ae6e4cf74b52cc2ae9.

Revert "f2fs: send REQ_META or REQ_PRIO when reading meta area"

This reverts commit 83d251e6721e95794b877feba5d390b7597d092f.

Revert "f2fs: add detailed information of bio types in the tracepoints"

This reverts commit 0bc9fd2678837cb34cdb93400dc687c3f14a9684.

Revert "f2fs: add a new function: f2fs_reserve_block()"

This reverts commit 9238d8fbc91d1fe51eeb59ad479bbe2569459381.

Revert "f2fs: avoid lock debugging overhead"

This reverts commit 30aee397d101b0ba49fb07a8f8f5bd464dda57b5.

Revert "f2fs: read contiguous sit entry pages by merging for mount performance"

This reverts commit 604715c311a57a86926de73dd6e2af2a7a19bf71.

Revert "f2fs: adds a tracepoint for f2fs_submit_read_bio"

This reverts commit 1ad7158f9a08e8fdb60e85c5d81b659135a65a15.

Revert "f2fs: adds a tracepoint for submit_read_page"

This reverts commit fcb38dd194579679515abd60c8bd51ecf0098272.

Revert "f2fs: simplify IS_DATASEG and IS_NODESEG macro"

This reverts commit ff1b1086f63b18e263d83abd9407baae3cdb0f5b.

Revert "f2fs: merge read IOs at ra_nat_pages()"

This reverts commit 3dab61c4720fca1d7d21c4c804c12bb1f9727a82.

Revert "f2fs: add a new function to support for merging contiguous read"

This reverts commit ef2062f531630bb9d242aacfc9b7b4aa1f1fcd21.

Revert "f2fs: move the list_head initialization into the lock protection region"

This reverts commit 6e57e5e18eb1bba0a00f156745bc0deac5190b95.

Revert "f2fs: simplify write_orphan_inodes for better readable"

This reverts commit 54e666bc0963a342b1aa9a29ac7929a736762dfc.

Revert "f2fs: convert inc/dec_valid_node_count to inc/dec one count"

This reverts commit 82b24491c702e1a3b885e2defe8e853eecdcadb7.

Revert "f2fs: convert dev_valid_block_count to void"

This reverts commit d24fce2d2d546ede3b3077718998324be886fd64.

Revert "f2fs: convert remove_inode_page to void"

This reverts commit 1ba481a7b34d95a00c220b761744ff7651537a4e.

Revert "f2fs: introduce a bio array for per-page write bios"

This reverts commit ee33c0a6e10b485e742957dea6b2917649022f98.

Revert "f2fs: disable the extent cache ops on high fragmented files"

This reverts commit c6273ff891f4a8af7160beb6542e8b1467519f6f.

Revert "f2fs: use sbi->write_mutex for write bios"

This reverts commit aa6a318243d5725e851f99771c592e1bdc0420a0.

Revert "f2fs: clean up the do_submit_bio flow"

This reverts commit 881434388d7b1928f748cace81ce209d3e7e0978.

Revert "f2fs: use f2fs_put_page to release page for uniform style"

This reverts commit d385722533a2b4d881e3ee6a12fc0c497c772440.

Revert "f2fs: add a tracepoint for f2fs_issue_discard"

This reverts commit 312dc408feff5b2b1e2c33c1bad42950889cae0a.

Revert "f2fs: introduce f2fs_issue_discard() to clean up"

This reverts commit 6b85581c527bd80493fa7fb027c6eb8a67da560f.

Revert "f2fs: add a sysfs entry to control max_discards"

This reverts commit 54fb2cff39f17a26ce4a8b7da6cd32de54568a8e.

Revert "f2fs: add key functions for small discards"

This reverts commit 9f2781b5ab4081fcce90349a6633a0bb2ba01556.

Revert "f2fs: add a slab cache entry for small discards"

This reverts commit c05585edae236d8d31c9b32240b78c3bc78e864b.

Revert "f2fs: improve searching speed of __next_free_blkoff"

This reverts commit 3789dcc0043c1e7b3e4bda8b76afec7d937e1d74.

Revert "f2fs: introduce __find_rev_next(_zero)_bit"

This reverts commit a324befb1cf3f4c1a9912c88d10661af7ccd8cdc.

Revert "f2fs: correct i_nlink 16->32 bit conversion"

This reverts commit 59da134b3458eec1e2b128d15839dc9e6bea974a.

Revert "f2fs: issue more large discard command"

This reverts commit ce748f74dafa53e9c6b0dfd6256973426d666f4f.

Revert "f2fs: fix memory leak after kobject init failed in fill_super"

This reverts commit 4b14b2147646df3ae3766f290f64412de44b039c.

Revert "f2fs: cleanup waiting routine for writeback pages in cp"

This reverts commit bedec6f1ee5642e38732ab493947dab9da0ea975.

Revert "f2fs: avoid to use a NULL point in destroy_segment_manager"

This reverts commit d95ecd477c815b1f1b0fdfb01a0c6ba836b92c4e.

Revert "f2fs: remove unnecessary TestClearPageError when wait pages writeback"

This reverts commit 607b16765ad4b7c50355979d820c267d653bd1f7.

Revert "f2fs: update f2fs document"

This reverts commit b8d64d1595269f7af4a97280c4c6e0aea9b0bc21.

Revert "f2fs: avoid to wait all the node blocks during fsync"

This reverts commit 58e623454490fd8288d1b9cd69fb47c067fda899.

Revert "f2fs: check all ones or zeros bitmap with bitops for better mount performance"

This reverts commit d5aaa7002d1eb08be4046ce11949739e1b56d7e5.

Revert "f2fs: change the method of calculating the number summary blocks"

This reverts commit 951d79c249b3248a004f1ffa9c42bb4a9d90b4e9.

Revert "f2fs: fix calculating incorrect free size when update xattr in __f2fs_setxattr"

This reverts commit ba44efc912d32b312ce906f0b74ab08e9505cf73.

Revert "f2fs: add an option to avoid unnecessary BUG_ONs"

This reverts commit 3e1af2debe8b1bbe19c18f5c2dad556ea3a8ff79.

Revert "f2fs: introduce CONFIG_F2FS_CHECK_FS for BUG_ON control"

This reverts commit 52e10acdfc83b4a4765c0f93709d10792591d9c9.

Revert "f2fs: support 3.4"

This reverts commit ebb44dc48297fa46283ba32d13acfb1d8f2566ac.

Revert "f2fs: fix a deadlock during init_acl procedure"

This reverts commit 51bf1bd9ac372c2dc50e18c091ebf24382b98b8c.

Revert "f2fs: clean up acl flow for better readability"

This reverts commit 2ffc4b46ba934f873f80d7aaf40b6916642b75c2.

Revert "f2fs: remove unnecessary segment bitmap updates"

This reverts commit 8c6ffc6f1e0cf8e0ded562f690a34b677f40ec90.

Revert "f2fs: add tracepoint for vm_page_mkwrite"

This reverts commit adce4b859c54a310dd1c3e981d462875132257b6.

Revert "f2fs: add tracepoint for set_page_dirty"

This reverts commit 4ebe60f82a5faa607355199138c3f009218c4730.

Revert "f2fs: remove redundant set_page_dirty from write_compacted_summaries"

This reverts commit d0fbee64a3bf321fa3c2db8c3f5be3f57cfac319.

Revert "f2fs: add reclaiming control by sysfs"

This reverts commit 8b2bcfc6ae5d65cfd45d7156a6e2424385c60a6f.

Revert "f2fs: introduce f2fs_balance_fs_bg for some background jobs"

This reverts commit 6302c09650eff90507738ab99bd8aa8fec3e6e14.

Revert "f2fs: reclaim prefree segments periodically"

This reverts commit 34f8fd1c788ebd95ed41633acfb31b85e75787a7.

Revert "f2fs: use bool for booleans"

This reverts commit bde5bc2656d7e6e26a635870e81969648e763c8c.

Revert "f2fs: clean up several status-related operations"

This reverts commit c1e53b2053abc96b0bca7d92dfedb30f0e2c0f04.

Revert "f2fs: introduce f2fs_kmem_cache_alloc to hide the unfailed, kmem cache allocation"

This reverts commit f805b50163e6024fc6cc363ed139d910897170ef.

Revert "f2fs: no need to check other dirty_segmap when the seg has been found"

This reverts commit 81805161fc7ae37158a0a8d2f2a5900c4cb1c4c9.

Revert "f2fs: use true and false for boolean value"

This reverts commit 23289647ab313c44e41bf4e20159e59330f2a03d.

Revert "f2fs: avoid to write during the recovery"

This reverts commit 9892badcd02ce481bb4f8613fb147dd61d4db939.

Revert "f2fs: avoid wait if IO end up when do_checkpoint for better performance"

This reverts commit 2974d3a7ef54c59b6251f74dfe5d0dd321658029.

Revert "f2fs: introduce function read_raw_super_block()"

This reverts commit 7bf3fa04d1e4e90d5f40e6c80a9c68e781b6777d.

Revert "f2fs: fix the starvation problem on cp_rwsem"

This reverts commit b9c13a7b1b584d15642a4fdbe32106241692b522.

Revert "f2fs: fix to store and retrieve i_rdev correctly"

This reverts commit 37b53c6e2921dd84a0ba9062b4fce5007369be22.

Revert "f2fs: fix writing incorrect orphan blocks"

This reverts commit 20921a637cd7199c2bebb41a472bf716562e1081.

Revert "f2fs: avoid unnecessary checkpoints"

This reverts commit 82ccf0f2be18abe34849c8a6d57a3e617ea6fbaa.

Revert "f2fs: handle remount options correctly"

This reverts commit 8ab1c894f4eeffec27dc24cbf41b46260f3319fb.

Revert "f2fs: use rw_sem instead of fs_lock(locks mutex)"

This reverts commit 47553cd53a7d95aa38ee9503a431269ebf140ed1.

Revert "f2fs: account for orphan inodes during recovery"

This reverts commit 42de61e8638614198cd32566e2ff5742980cd0b2.

Revert "f2fs: don't GC or take an fs_lock from f2fs_initxattrs()"

This reverts commit 7020a412afe6f1e1109c0675a281371944827905.

Revert "f2fs: don't let the orphan inode counter underflow"

This reverts commit 15a3244a3e0480a549063b9d86a460c01a0f9fcb.

Revert "f2fs: remove unneeded write checkpoint in recover_fsync_data"

This reverts commit f34858f70fa6631f3c4823cdd1fedbf45b3a53bb.

Revert "f2fs: avoid allocating failure in bio_alloc"

This reverts commit bd971c208b87ab813029953a4d511bd4dd78a93a.

Revert "f2fs: optimize the victim searching loop slightly"

This reverts commit 6e0cd1201aad509cf4df9d01faf2c9a5f7d03fa3.

Revert "f2fs: optimize fs_lock for better performance"

This reverts commit de01596489517f95ae52d39b9224d4c1095023bb.

Revert "f2fs: optimize gc for better performance"

This reverts commit a50aa8b41fc57b98e6b45aab565905768614d46b.

Revert "f2fs: merge more bios of node block writes"

This reverts commit 7be81d2d82e89748865a5ba490c00786e87a6c13.

Revert "f2fs: avoid an overflow during utilization calculation"

This reverts commit 424edd55447759e2c1ce1bc199b3aa093ea70cf5.

Revert "f2fs: trigger GC when there are prefree segments"

This reverts commit b8134afd1a91a366098ee86d8f1a975af7ca50d7.

Revert "f2fs: Backport k3.0 f2fs_init_security fix"

This reverts commit 3eb5b917f32f3db6825c4586d2e9e7aab52f92b9.

Revert "f2fs: use strncasecmp() simplify the string comparison"

This reverts commit 512938ed12ab42723cfffb8f7910f5cd2d0937dd.

Revert "f2fs: fix omitting to update inode page"

This reverts commit 8c8e6226f255e1c2b973b31d8c3be59394ad59c0.

Revert "f2fs: support the inline xattrs"

This reverts commit f49a667e1d0978eb1ac5f13fd905aca091544639.

Revert "f2fs: should cover i_xattr_nid with its xattr node page lock"

This reverts commit 22b6aca9a9246dd624c4bd9104715e25ed4bd726.

Revert "f2fs: add the truncate_xattr_node function"

This reverts commit c0813e7f918e9f69e802ff04bef33404a081b3c9.

Revert "f2fs: introduce __find_xattr for readability"

This reverts commit ef5af41b75e15cc323c2f318fc4f86762aa484be.

Revert "f2fs: reserve the xattr space dynamically"

This reverts commit c52d4ed74be2224d6e8620244ca6529e9bcef277.

Revert "f2fs: add flags for inline xattrs"

This reverts commit 287bbb9fe44b2384aaafbb7284f2fa903247d03e.

Revert "f2fs: fix error return code in init_f2fs_fs()"

This reverts commit 179e31bd6fab68f7adb06851b79b5c59d270c5b0.

Revert "f2fs: fix wrong BUG_ON condition"

This reverts commit 15413a36a2c8fb86fa475fd0927fe99409ee5fbc.

Revert "f2fs: fix memory leak when init f2fs filesystem fail"

This reverts commit 6760bf44fad6887656b6d8e7c85a22967f635755.

Revert "f2fs: fix a compound statement label error"

This reverts commit 121435f5a9cc807224791100b218d689e4716f9b.

Revert "f2fs: avoid writing inode redundantly when creating a file"

This reverts commit 773735341062b7eef60c8865c8ea4fca6604e937.

Revert "f2fs: alloc_page() doesn't return an ERR_PTR"

This reverts commit 9fee3588194e2c12175ce377cb5fdbfb0ae273e5.

Revert "f2fs: check the free space first in new_node_page"

This reverts commit 019683985e98ba0790587ed84a714376a2bc8509.

Revert "f2fs: clean up the needless end 'return' of void function"

This reverts commit 3ba327f35809a1330ce9be337ce85a3b294fd35e.

Revert "f2fs: introduce cur_cp_version function to reduce code size"

This reverts commit e8f01c5ca22d1854c944ccc1f183386ad1bcc557.

Revert "f2fs: fix inconsistency between xattr node blocks and its inode"

This reverts commit 2870d887a5c8534c0777f2196d72d16b7b25e033.

Revert "f2fs: fix the use of XATTR_NODE_OFFSET"

This reverts commit a6f56efd5ecd6a39c5159a49cc62c2c820e1d574.

Revert "f2fs: fix a build failure due to missing the kobject header"

This reverts commit 7bb204c7a9bd0cc3368c8ef3916b9bead17bf07c.

Revert "f2fs: fix a deadlock in fsync"

This reverts commit 69671df5f70b0a837e4c45228f7a373f5d7c20b3.

Revert "f2fs: remove redundant code from f2fs_write_begin"

This reverts commit 67837d730e953940a881e9479dffb4941f02ddb1.

Revert "f2fs: add sysfs entries to select the gc policy"

This reverts commit 0a334189aae1cb246b91e65a24d44708adf6195b.

Revert "f2fs: add sysfs support for controlling the gc_thread"

This reverts commit a78f03d38dfdbfd89f7fd426d690677c07dce4d0.

Revert "f2fs: k3.0 fix: change PDE_DATA() to PROC_I()->pde->data"

This reverts commit 827cf73240796312373a4bd3ee2eb33b36ab112b.

Revert "f2fs: remove an unneeded kfree(NULL)"

This reverts commit d3f4d9b76652360d896b1fca4b12b92a8c8223fb.

Revert "f2fs: fix handling orphan inodes"

This reverts commit 8611744345da7f0d6461e959955e2d7fdce13b9b.

Revert "f2fs: move bio_private allocation out of f2fs_bio_alloc()"

This reverts commit 7a312bcf35e551369cc888777fb76f9a453d0ef7.

Revert "f2fs: use list_for_each rather than list_for_each_safe, in remove_orphan_inode()"

This reverts commit 7dc63776b2a623e3f96687b39a6dc051b7ca226e.

Revert "f2fs: use seq_puts()/seq_putc() rather than seq_printf() where possible"

This reverts commit 6f2309524c18d85cd9a917632963db7d3cc0bbd6.

Revert "f2fs: fix i_name during f2fs_sync_file"

This reverts commit 2967afcd5c660acd98f14eaa54110c6bba56bc02.

Revert "f2fs: update file name in the inode block during f2fs_rename"

This reverts commit d27b5ff5a1b702b0ab22217d7fdb1116416d0cc1.

Revert "f2fs: introduce help function F2FS_NODE()"

This reverts commit 838a4ab194c69abdea416039ec4608d44a2864e9.

Revert "f2fs: add a help func F2FS_STAT() to get the f2fs_stat_info"

This reverts commit fcfd00ca28b01e59507e3270cd7c77c7cb90429f.

Revert "f2fs: add proc entry to monitor current usage of segments"

This reverts commit 037f233a8016e5dfb993c407aa742791d54fe234.

Revert "f2fs: recover date requested by fdatasync"

This reverts commit fd7bbcd9bace4c63449673658223b20bdfab392c.

Revert "f2fs: fix to recover i_size from roll-forward"

This reverts commit 36379fdf16d24bb061f629e308d55f85ad7125e5.

Revert "f2fs: remove the unused argument "sbi" of func destroy_fsync_dnodes()"

This reverts commit 23250860525ced619a61da3fe827532a60c2db5e.

Revert "f2fs: remove reusing any prefree segments"

This reverts commit 92c8af3773b7071b6c9e783961dd42382a7b506e.

Revert "f2fs: code cleanup and simplify in func {find/add}_gc_inode"

This reverts commit 7b895081b98e1859e18392fcd51bba84945d503d.

Revert "f2fs: optimize the init_dirty_segmap function"

This reverts commit b83ce2d71b42d9153d2ded0600d7a4b25b41ac52.

Revert "f2fs: fix an endian conversion bug detected by sparse"

This reverts commit 6619913cf32db5871047eccd554b8ecf9043f930.

Revert "f2fs: fix crc endian conversion"

This reverts commit 6d247f66aac303882441c87ae66803433207fbe9.

Revert "f2fs: add remount_fs callback support"

This reverts commit 3e44dcb14c60c0d97f8f64d38e211db2819d5211.

Revert "f2fs: recover wrong pino after checkpoint during fsync"

This reverts commit d35c1bd8ccfef38054553b87926b1c78aa67794a.

Revert "f2fs: optimize do_write_data_page()"

This reverts commit 0f0f010c8b58d67d8773ac454b9c8596c602c9d1.

Revert "f2fs: make locate_dirty_segment() as static"

This reverts commit 9f52788e0c58f49619051d8c56b87a4b28ff2214.

Revert "f2fs: remove unnecessary parameter "offset" from __add_sum_entry()"

This reverts commit 309b89d9349b69f5689059261c265115ff8a6baf.

Revert "f2fs: avoid freqeunt write_inode calls"

This reverts commit fbbf4341f336617b863f1caae91b441be54e1918.

Revert "f2fs: optimise the truncate_data_blocks_range() range"

This reverts commit 37b71a95a98e197733315a8859a341894f70a1ba.

Revert "f2fs: use the F2FS specific flags in f2fs_ioctl()"

This reverts commit cf30dd89a60309742863b41b9e3e8c01d96e859d.

Revert "f2fs: sync dir->i_size with its block allocation"

This reverts commit bd0e8fce34ff0956d35dfcb3b35200c37df9cf5b.

Revert "f2fs: fix i_blocks translation on various types of files"

This reverts commit d99a86a260fbc8b03716cf256d0bd9cc7a4f756c.

Revert "f2fs: set sb->s_fs_info before calling parse_options()"

This reverts commit 8db6543c2a99d2c11c0a1f1c2c183fafda7e903d.

Revert "f2fs: support xattr security labels"

This reverts commit ec11c50e32a7db19416ac4132c863a7e7c20b366.

Revert "f2fs: fix iget/iput of dir during recovery"

This reverts commit 885b1329961decc431588430a8e86662d810e83d.

Revert "f2fs: reorganise the function get_victim_by_default"

This reverts commit b415dbe87b91a249a950dda5146446ab254879eb.

Revert "f2fs: handle errors from get_node_page calls"

This reverts commit c90c5071f0611d96b51fab4f838aa43815b55077.

Revert "f2fs: cover cp_file information with ilock"

This reverts commit d0dd3165d47c804cc17639c82f80af4cef02414e.

Revert "f2fs: fix incorrect iputs during the dentry recovery"

This reverts commit 657b485596fec676c6b54e8f18b462403040ef95.

Revert "f2fs: fix dentry recovery routine"

This reverts commit a857bc7e238381d9d27749710c11b16cad4b2ca0.

Revert "f2fs: iput only if whole data blocks are flushed"

This reverts commit b7d1c900f5827e4812ae0135d0c93f5df6df3bc7.

Revert "f2fs: return proper error from start_gc_thread"

This reverts commit 1929767844453a7778aa88bab75953d8f8cea945.

Revert "f2fs: optimize several routines in node.h"

This reverts commit d9de44d68d2c7727fd7af9913d057dc762493c1b.

Revert "f2fs: remove unneeded initializations in f2fs_parent_dir"

This reverts commit cc9154d17d078d86e1d03cd133a84de55d9d4ec6.

Revert "f2fs: push some variables to debug part"

This reverts commit 98d5d7eaae0cf318b40468942af9253e5cfddf5a.

Revert "f2fs: align data types between on-disk and in-memory block addresses"

This reverts commit a404c598341c19ea990576655f696a4e5d6f1550.

Revert "f2fs: dereferencing an ERR_PTR"

This reverts commit 4b5227c345e214222b6cc81f9acd9f3e250de225.

Revert "f2fs: use ihold"

This reverts commit eec1f13910c1c9db58067cb3d897c47d2f53dc88.

Revert "f2fs: should not make_bad_inode on f2fs_link failure"

This reverts commit 050692fa373e1cfbc2dcb0eb9b64fadf38b57e68.

Revert "f2fs: fix to handle do_recover_data errors"

This reverts commit e992d115f90bd6f1e0c0592fde426b52e236f68d.

Revert "f2fs: reuse the locked dnode page and its inode"

This reverts commit 1ec05643de742b38def153942d5e3e5222a04da4.

Revert "f2fs: fix wrong condition check"

This reverts commit f7780cb914fab2398588c417bfba35a19fe26b06.

Revert "vfs: mnt_drop_write_file()"

This reverts commit e8919f23edfa28a4c3a6a391bb9ef982e5e8b1e3.

Revert "switch a bunch of places to mnt_want_write_file()"

This reverts commit 4beb0e9f955d88cec0c89a97ef96b4adf97f3189.

Revert "f2fs: add f2fs_readonly()"

This reverts commit 444308d31aaf59685cb030f1400b963543968729.

Revert "f2fs: avoid RECLAIM_FS-ON-W: deadlock"

This reverts commit 4f1df963b38b10ffcf1eba48350889440287ca53.

Revert "f2fs: don't do checkpoint if error is occurred"

This reverts commit 2fb74fff3fe03b2e3d304d09519150eb650c6ff1.

Revert "f2fs: fix to unlock page before exit"

This reverts commit 32ac275a21887ddc3d867ce8e5f747a19a0a0955.

Revert "f2fs: remove unnecessary kmap/kunmap operations"

This reverts commit 5503253a951923027c8b18f705a43b400d0b1490.

Revert "f2fs: reorganize f2fs_vm_page_mkwrite"

This reverts commit db1cd032a50849fcbd85275ca5de50cb7649028d.

Revert "f2fs: use list_for_each_entry rather than list_for_each_entry_safe"

This reverts commit 781753d93aaa84fb0bb561f527371e03e16a61fb.

Revert "f2fs: remove unecessary variable and code"

This reverts commit de0ddade6c2716528dcddebc8b020567a09a06b5.

Revert "f2fs, lockdep: annotate mutex_lock_all()"

This reverts commit 41b48bcc7de56556fd536a4b7a931e3d09a1444e.

Revert "f2fs: add debug msgs in the recovery routine"

This reverts commit e1fd31a0ae250c3b6a5827f06e8c231454f9e15c.

Revert "f2fs: update inode page after creation"

This reverts commit 0183e972c69354e7a939e891d9d75ee7716c7e6b.

Revert "f2fs: change get_new_data_page to pass a locked node page"

This reverts commit 8a43a3d4ea0d752116619867d9171bad317c987b.

Revert "f2fs: skip get_node_page if locked node page is passed"

This reverts commit 1dc8aae3dbf5c2754649fda299d7bb9706370f8a.

Revert "f2fs: remove unnecessary por_doing check"

This reverts commit e7d8a8d4046201f31a88a06e32edce6d41652f10.

Revert "f2fs: fix BUG_ON during f2fs_evict_inode(dir)"

This reverts commit d765ea08f5a20ef00e30d521bbd364b4cfe56a59.

Revert "f2fs: fix por_doing variable coverage"

This reverts commit 23942588b798f579c84b1ba098fbd11b2c536e2f.

Revert "f2fs: remove redundant assignment"

This reverts commit 7040a4c292f558b410ad2325c90b20cb04ee18c4.

Revert "f2fs: fix the inconsistent state of data pages"

This reverts commit e3c2340bc0b1d8bf110e8f19f695b31834af8aa8.

Revert "f2fs: fix inconsistency of block count during recovery"

This reverts commit 41fadc15e3e5086dc7d848b70fde739226642e2b.

Revert "f2fs: cover free_nid management with spin_lock"

This reverts commit cf460c24addad8e2d7d373b41084c6aee4fe746d.

Revert "f2fs: optimize scan_nat_page()"

This reverts commit d8406ba88fad1e1b23f5998b633a80384dcb94eb.

Revert "f2fs: code cleanup for scan_nat_page() and build_free_nids()"

This reverts commit fe4fdb5f0c1daafae6e6b04f886d5259b49a7894.

Revert "f2fs: bugfix for alloc_nid_failed()"

This reverts commit 2c97ac844ffddff2de6bb786d7a078b6a65f8730.

Revert "f2fs: recover when journal contains deleted files"

This reverts commit ad40f766df7948b6ca84fd64b561f169d33d19b0.

Revert "f2fs: continue to mount after failing recovery"

This reverts commit 475c3b8b1c0faa57a5c436a33f53d23ac1c2dc63.

Revert "f2fs: avoid deadlock during evict after f2fs_gc"

This reverts commit 2a286a52a8975b1217db0e2681c9802cc8872349.

Revert "f2fs: modify the number of issued pages to merge IOs"

This reverts commit 6b5c1c83df0d15089a2437e74eebdfd6ecd3cfba.

Revert "f2fs: remove useless #include <linux/proc_fs.h> as we're now using sysfs as debug entry."

This reverts commit 46589248cd769a114de27d92ee3d5aa413105901.

Revert "f2fs: fix inconsistent using of NM_WOUT_THRESHOLD"

This reverts commit 94375eb180a7d4dafd35739593aa472833b10ce1.

Revert "f2fs: check truncation of mapping after lock_page"

This reverts commit aacbf836beaec529ac7ebbf1e3b1ce202da0f7a6.

Revert "f2fs: enhance alloc_nid and build_free_nids flows"

This reverts commit 5e73460ba1c8644255ebde2828d6bcf5a7f10908.

Revert "f2fs: add a tracepoint on f2fs_new_inode"

This reverts commit 44569696c97bdb868a1e0d14e660bae347813440.

Revert "f2fs: check nid == 0 in add_free_nid"

This reverts commit b14ba87c2de78d6b872df562a51cde9c8fb84681.

Revert "f2fs: add REQ_META about metadata requests for submit"

This reverts commit 295d1c2671e696e7656ee3010febcc18894cd22b.

Revert "f2fs: give a chance to merge IOs by IO scheduler"

This reverts commit 5f94f1b18851d0b0d7f09c74657fa59704bff563.

Revert "f2fs: avoid frequent background GC"

This reverts commit 6fffab91dbfc7844e33c21bb7f2a3f9bb797c43e.

Revert "f2fs: add tracepoints to debug checkpoint request"

This reverts commit 5835eca50cf4e71190dd5a1187bc6710e346ca42.

Revert "f2fs: add tracepoints for write page operations"

This reverts commit 0028f0404d6228fd9674e69b295637d05e515153.

Revert "f2fs: add tracepoints to debug the block allocation"

This reverts commit 6130bd8f854509a7e23e59c7549a4b1e06784cbe.

Revert "f2fs: add tracepoints for GC threads"

This reverts commit a32f01f92872ac615b327b2c923d871e4e16267d.

Revert "f2fs: add tracepoint for tracing the page i/o"

This reverts commit 7453624456565c571bc150762b080910ed45b4af.

Revert "f2fs: add tracepoints for truncate operation"

This reverts commit 529d16ec9722665356649c9e80bcf13193bd0ff7.

Revert "f2fs: add tracepoints for sync & inode operations"

This reverts commit 43eb69283ed26ad0ae207dea210713b3560a930c.

Revert "f2fs: make is_multimedia_file code align with its name"

This reverts commit 7e789f0c3397514fd44f8f16a5a8e966c0d4fe80.

Revert "f2fs: fix error return code in f2fs_fill_super()"

This reverts commit 22637ac5f7750771815215ac9fcb476777fa3ba0.

Revert "f2fs: use mnt_want_write_file() in ioctl"

This reverts commit da77b7c253fbd759004a02655b9d18ae32d9a2d1.

Revert "f2fs: fix typo mistakes"

This reverts commit 380e6835223a221cc074ac908ddcdf116736f0e3.

Revert "f2fs: write checkpoint before starting FG_GC"

This reverts commit bcbe5b8ff12fe03dbae0c9105a11415a02656cdd.

Revert "f2fs: fix the logic of IS_DNODE()"

This reverts commit 9ad4516950358e196f084fc58af412d6c7fdd4bc.

Revert "f2fs: introduce a new global lock scheme"

This reverts commit ac8dd53d2209659bd2b33c0cc058552babb44c67.

Revert "f2fs: move f2fs_balance_fs from truncate to punch_hole"

This reverts commit de738bd18f760be97104fac8c10b0480a230fc17.

Revert "f2fs: reduce redundant spin_lock operations"

This reverts commit 7f8984a20b48f9e824097c4963bc98ee3a999998.

Revert "f2fs: update f2fs.txt related with discard at mkfs"

This reverts commit ffe95bb8228e108676c5faf4d51033d439812df3.

Revert "f2fs: add NULL pointer check"

This reverts commit 2419dcaf094c392b12e2ed8f8790fb0ea65deab8.

Revert "f2fs: fix the bitmap consistency of dirty segments"

This reverts commit 385236da56345199a573df6d68d14b8a85a90c80.

Revert "f2fs: avoid race for summary information"

This reverts commit 31d5e16ca67ff29307d26ee1a90ce9a308c72325.

Revert "f2fs: allocate remained free segments in the LFS mode"

This reverts commit aff1c26ca6b779333066ba42cedcba6bfa349f6c.

Revert "f2fs: check completion of foreground GC"

This reverts commit d173260075cb36d65c25da8b53f6f400e410fef4.

Revert "f2fs: change GC bitmaps to apply the section granularity"

This reverts commit eca99e787f2388bf6e037d48fe20e21c4e43ac15.

Revert "f2fs: allocate new segment aligned with sections"

This reverts commit 3133e35b7e0eddbc35a54a1a44157e55a7098379.

Revert "f2fs: remove redundant lock_page calls"

This reverts commit ebb5e6424ad89c9c9f04c3b48f390e7c3aecf27f.

Revert "f2fs: introduce TOTAL_SECS macro"

This reverts commit 58105693771431633c3ed26f2efb30051a07377d.

Revert "f2fs: do not use duplicate names in a macro"

This reverts commit d63aaabb3c9136033636db6a34f4752e62366e22.

Revert "f2fs: use kmemdup"

This reverts commit 39b8399eabf39d77a7f41fabf357de364d79750a.

Revert "f2fs: fix to give correct parent inode number for roll forward"

This reverts commit 818a4fa60ad98c3f62cb37f7687930d87fb3a07b.

Revert "f2fs: remain nat cache entries for further free nid allocation"

This reverts commit 29942eeb8a396d3f1ac6f99c71115f3892143647.

Revert "f2fs: do not skip writing file meta during fsync"

This reverts commit 927f4f35744c27155fea5f1d6b713cfb03658ede.

Revert "f2fs: fix the recovery flow to handle errors correctly"

This reverts commit 1ff65207c25962224d25f7959f5e091d299cc643.

Revert "f2fs: avoid BUG_ON from check_nid_range and update return path in do_read_inode"

This reverts commit acad17cb042502222ffcde6c057b86ebee87fff5.

Revert "f2fs: fix return values from validate superblock"

This reverts commit 179871cfcf08f729120ee2c39e34177dcab22285.

Revert "f2fs: reorganize f2fs_setxattr"

This reverts commit 3da1f69fbfae47c9ec6e8786bf8f7ef385e87a71.

Revert "f2fs: notify when discard is not supported"

This reverts commit 7f642cf22d61ae5d3f70163715cae36b11603d88.

Revert "f2fs: fix to call WRITE_FLUSH at the end of fsync"

This reverts commit 1fe6a26baa1031a101ea2ea721a6688e9d6d46a1.

Revert "f2fs: fix not to allocate max_nid"

This reverts commit eb135c067958bda8eb6d3ba5e74fb2a825b058b0.

Revert "f2fs: fix return value of releasepage for node and data"

This reverts commit 257c0df4e306266ee2e33aa69dd53e584232dc07.

Revert "f2fs: scan next nat page to reuse free nids in there"

This reverts commit d6c6837e1e428f432ef8acb25f6f5475d166395d.

Revert "f2fs: should check the node page was truncated first"

This reverts commit 882a4bd3c1fb817c36bc6734900c9751d3285046.

Revert "f2fs: reduce unncessary locking pages during read"

This reverts commit 99fd67742e348f94e5c1b1ae5e5b5ee5e70549d6.

Revert "f2fs: Fix typo in comments"

This reverts commit 450c4201fca738d7807b779a8441524403942aa7.

Revert "f2fs: avoid extra ++ while returning from get_node_path"

This reverts commit 50f56599e0d8297b780c2ed6ec239c5629694980.

Revert "f2fs: align f2fs maximum name length to linux based filesystem"

This reverts commit 44b6cd3f81b006a62127d010d0ca121f8ed234d9.

Revert "f2fs: optimize and change return path in lookup_free_nid_list"

This reverts commit b5746dae46810059a557420c209b3336ad411582.

Revert "f2fs: optimize get node page readahead part"

This reverts commit bd3cd5b7f902949ab28199f8cf719067f28bc8c6.

Revert "f2fs: check the level before calling get_nid function"

This reverts commit 43ed5f653926710312feb70439de2adadcfa0668.

Revert "f2fs: introduce readahead mode of node pages"

This reverts commit 31ac681456d8db2129dfa0ea44f595589f5ddf01.

Revert "f2fs: read with READ_SYNC when getting dnode page"

This reverts commit d8e4769791583df67d1230b8d56a3b8f5306bed4.

Revert "f2fs: fix to unlock node page when it was truncated"

This reverts commit cbaf8cdae087d0b2cd1bf5183c0c1b74ab672130.

Revert "f2fs: fix overflow when calculating utilization on 32-bit"

This reverts commit 6ea1ab3edebe8375e7c3d065851c4596061d9945.

Revert "Revert "f2fs: add un/freeze_fs into super_operations""

This reverts commit 036889b667b0c4ed0f59f75d85054e06c5e8b038.

Revert "f2fs: avoid build warning"

This reverts commit c9172379a42eb7fdf58fb1b42aacbf55de568d07.

Revert "f2fs: add compat_ioctl to provide backward compatability"

This reverts commit 19e5f244ec22643fc12c79514b4076e7699c8ff4.

Revert "f2fs: fix calculation of max. gc cost in the SSR case"

This reverts commit 4d21014f61cc53e307acde3c4b7fb04b6808079a.

Revert "f2fs: clarify and enhance the f2fs_gc flow"

This reverts commit ed2666c53b34318456b013f78fe4a6a982e04e7f.

Revert "f2fs: optimize the return condition for has_not_enough_free_secs"

This reverts commit 9063c700283dda5b146954e23b3477c52c2a9720.

Revert "f2fs: make an accessor to get sections for particular block type"

This reverts commit c6a555ee0aa5971a6d29cee72cab17a266a624c6.

Revert "f2fs: mark gc_thread as NULL when thread creation is failed"

This reverts commit 0f3133b82515dbbea891170e5f9d9869aced2924.

Revert "f2fs: name gc task as per the block device"

This reverts commit bf4f7a0fbef0da5400d0ed7545c6bdf22259d758.

Revert "f2fs: remove unnecessary gc option check and balance_fs"

This reverts commit 2321ad42d1bb672e30f2624969a233a302644ae5.

Revert "f2fs: remove repeated F2FS_SET_SB_DIRT call"

This reverts commit 739d656c7cd7380e2d5fc5ea98ea2723ad9df6f0.

Revert "f2fs: when check superblock failed, try to check another superblock"

This reverts commit 80f418d4c145013bed1e1d3378a2eaee90e6da72.

Revert "f2fs: use F2FS_BLKSIZE to judge bloksize and page_cache_size"

This reverts commit a4f271d4f1f88a80d14f3bf662af5d4054cd0b35.

Revert "f2fs: add device name in debugfs"

This reverts commit f0766c279b1e20dd5a75e7d5fdedc4b65dd67def.

Revert "f2fs: stop repeated checking if cp is needed"

This reverts commit 59d406eadaf758359ffa2c20fb493ea08b4161ea.

Revert "f2fs: avoid balanc_fs during evict_inode"

This reverts commit f9f63d8912df0e30015051cdbeae19714d50b346.

Revert "f2fs: remove the use of page_cache_release"

This reverts commit dc23da974a2fa540445e15eb781a28651789dc34.

Revert "f2fs: fix typo mistake for data_version description"

This reverts commit 866d31e2cab4cbe5a6b3cbc1deea290f1c87b229.

Revert "f2fs: reorganize code for ra_node_page"

This reverts commit e9d2f81820becacf8e0acb3136da240b3177e49b.

Revert "f2fs: avoid redundant call to has_not_enough_free_secs in f2fs_gc"

This reverts commit d9eae63f0e5fd22273b199edd3a81d3b00769644.

Revert "f2fs: add un/freeze_fs into super_operations"

This reverts commit a21f7d4a75952f575fb01490640106efac1b0418.

Revert "f2fs: clean up the add_orphan_inode func"

This reverts commit c94a523d876ea819d0e771692911e2c17ae917e8.

Revert "f2fs: fix disable_ext_identify option spelling"

This reverts commit 54e83c0c43c68f04e1a2e45c2c08783e365cdc95.

Revert "f2fs: cover global locks for reserve_new_block"

This reverts commit 369a59d94c557ae92a6aad196f6f6b257344d0c6.

Revert "f2fs: prevent checkpoint once any IO failure is detected"

This reverts commit cf66095593916508b897aa18d8cf602cd3d67d5e.

Revert "f2fs: save device node number into f2fs_inode"

This reverts commit f932cc4626646b38e5d5344bfd3034cf2574d1ee.

Revert "f2fs: get rid of fake on-stack dentries"

This reverts commit b8c4391df900a49b01b752957588977a926df964.

Revert "f2fs: switch init_inode_metadata() to passing parent and name separately"

This reverts commit 66398c3f5ba1e6412c3fe6dc0e4648af5a9ae97c.

Revert "f2fs: switch new_inode_page() from dentry to qstr"

This reverts commit 737b27aabb4a195db3f05cbcd8783321a30b7f43.

Revert "f2fs: init_dent_inode() should take qstr"

This reverts commit 86380fef4bbb752a55b3fe93666140fd33f10fc0.

Revert "Revert "f2fs: add remap_pages as generic_file_remap_pages""

This reverts commit 142408562a6e72184b6648dcb22528bdf3db5037.

Revert "f2fs: use _safe() version of list_for_each"

This reverts commit e8db56b16b2beac51224586fa20a3a4d790f2f19.

Revert "f2fs: add comments of start_bidx_of_node"

This reverts commit 139741fee7fd3fd9b85d43b079e1464e5b80f4d6.

Revert "f2fs: avoid issuing small bios due to several dirty node pages"

This reverts commit 5c4214d7a572f88c6014d0aee0e136ed7b663289.

Revert "f2fs: support swapfile"

This reverts commit f7664f5e5157171190fed165fffb8b8481e2fe0b.

Revert "f2fs: add remap_pages as generic_file_remap_pages"

This reverts commit 9a332d0e83712976ec73fe39c86fb41aa32f15ac.

Revert "f2fs: add __init to functions in init_f2fs_fs"

This reverts commit ecf27d139e87e760714c51dc355e491bf90d96e4.

Revert "f2fs: fix the debugfs entry creation path"

This reverts commit acac647aa3983a60738705b34b30a8012c53bb27.

Revert "f2fs: add global mutex_lock to protect f2fs_stat_list"

This reverts commit bfa27332a1c5b5e30b4c19e51f8a1a5c42052b94.

Revert "f2fs: remove the blk_plug usage in f2fs_write_data_pages"

This reverts commit f00d04546643bb46877efb34c811e58c70acb177.

Revert "f2fs: avoid redundant time update for parent directory in f2fs_delete_entry"

This reverts commit ea9446c652225178ec6c49c27bd3f0f446cbd55d.

Revert "f2fs: remove redundant call to set_blocksize in f2fs_fill_super"

This reverts commit 1e7f03b9fa597d8e6577eaefa4412c22fd655b5f.

Revert "f2fs: move f2fs_balance_fs to punch_hole"

This reverts commit b57b6feae8590dd2f8c24ee47fbbfca07f34c692.

Revert "f2fs: add f2fs_balance_fs in several interfaces"

This reverts commit 55d7136a71e7d540f18b5001b0661d3b2d11ccb6.

Revert "f2fs: revisit the f2fs_gc flow"

This reverts commit 3076f3c76a87a2e85dc9eff8357b4cdbf614675d.

Revert "f2fs: check return value during recovery"

This reverts commit 51579c9e40cb122ca43642984225caa55a57aa2f.

Revert "f2fs: avoid null dereference in f2fs_acl_from_disk"

This reverts commit a3dc03788480b2d33b543735ea10c705ae0eeeea.

Revert "f2fs: initialize newly allocated dnode structure"

This reverts commit c441316f66ab0f38cb37630d14ef979e11af0044.

Revert "f2fs: update f2fs partition info about SIT/NAT layout"

This reverts commit 0afa84a68b3798dcc2ccfb54a974571c0ad677b1.

Revert "f2fs: remove unneeded INIT_LIST_HEAD at few places"

This reverts commit f65fa03868450ab28a2fccd83f69cc0323453688.

Revert "f2fs: fix time update in case of f2fs fallocate"

This reverts commit cf5495489b81744723ab8007b5f78cb615f471f4.

Revert "f2fs: introduce f2fs_msg to ease adding information prints"

This reverts commit 118508fabc0e96df2e92e5f46a7d1b84d808a772.

Revert "f2fs: unify string length declarations and usage"

This reverts commit a69476fda1b34e75bde72593cf30bd2469f0298b.

Revert "f2fs: clean up unused variables and return values"

This reverts commit 03038c491f9d1436d1f30b250fc06c9f775fc657.

Revert "f2fs: clean up the start_bidx_of_node function"

This reverts commit e294925d71c4059d2c6c08b749dd1349cc1c061e.

Revert "f2fs: remove unneeded variable from f2fs_sync_fs"

This reverts commit 34f7c27e2ddab27c504fa11bd09a8b2edee62401.

Revert "f2fs: fix fsync_inode list addition logic and avoid invalid access to memory"

This reverts commit 35ad31723b725c7796a8a5d51a43c537f3968ad4.

Revert "f2fs: remove unneeded initialization of nr_dirty in dirty_seglist_info"

This reverts commit ac73b45ec813a8e1847ded7eaf90e88561e3e264.

Revert "f2fs: handle error from f2fs_iget_nowait"

This reverts commit c7743182667ae88b87e4ae3128cdc9929e8ef2aa.

Revert "f2fs: fix equation of has_not_enough_free_secs()"

This reverts commit 99bbd4c1696bc3e116789a150aa0373be2449da4.

Revert "f2fs: add MAINTAINERS entry"

This reverts commit 400c0e7bf9cb92ca70e395e4bbdf9933c7af1a2c.

Revert "f2fs: return a default value for non-void function"

This reverts commit a4ccb89380461dadd548e5b7d01dce4050e18fa8.

Revert "f2fs: invalidate the node page if allocation is failed"

This reverts commit dc779ee16cb848e00370bee97715cde17b5e4de4.

Revert "f2fs: add missing #include <linux/prefetch.h>"

This reverts commit 8b7e119f1a124520b0d769245e5c6c15b529b8bb.

Revert "f2fs: Don't assign e_id in f2fs_acl_from_disk"

This reverts commit 801a88216865e1b3a7076523647342fbeb081624.

Revert "f2fs: do f2fs_balance_fs in front of dir operations"

This reverts commit 2e2dd273e9995682b5177d975da4c9a834d5b617.

Revert "f2fs: should recover orphan and fsync data"

This reverts commit 780377409a7d9063c44be930644ec168e58c226f.

Revert "f2fs: fix handling errors got by f2fs_write_inode"

This reverts commit d6db6b7bbc899f3e342fed238246486bcc14f4fd.

Revert "f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number"

This reverts commit aa99e32f4d71b1946e70e9a993403df999e983c5.

Revert "f2fs: fix wrong calculation on f_files in statfs"

This reverts commit 2d36f6449204e05d86550b32ddc0146a29bb3dfc.

Revert "f2fs: remove set_page_dirty for atomic f2fs_end_io_write"

This reverts commit 9192357c0f708c19f0e41bd5826b02f875010569.

Revert "f2fs: Backport to K3.0"

This reverts commit 0dfac9424feda11198f9f9bee26b3aa516e8d8c8.

Revert "vfs: export symbol d_find_any_alias()"

This reverts commit 27cb75aec7b7351ee7b5ae967f3cfd40b8a79c1f.

Revert "Backporting F2FS from K3.8-rc2 to K3.4"

This reverts commit e290733b7ea85559b4a71cff5afc3a0184ee6128.

Revert "f2fs: fix tracking parent inode number"

This reverts commit c61bd862b81713e6b5af03b57e08f93b9aacd6db.

Revert "f2fs: cleanup the f2fs_bio_alloc routine"

This reverts commit feb56502a12bcc523c50007816767dafb2b9737e.

Revert "f2fs: introduce accessor to retrieve number of dentry slots"

This reverts commit 774eaba488a9467ecfb3aace76b71d65dba4ea14.

Revert "f2fs: remove redundant call to f2fs_put_page in delete entry"

This reverts commit ba7344bc1228d0675875ed09fcd6d64cb493505a.

Revert "f2fs: make use of GFP_F2FS_ZERO for setting gfp_mask"

This reverts commit 5bf96e6ad173cebe84247ffbcf5bdf847e122910.

Revert "f2fs: rewrite f2fs_bio_alloc to make it simpler"

This reverts commit 21b131bf9bcf593e751cbd9a9212411250061d76.

Revert "f2fs: remove unused variable"

This reverts commit 1c253955d34dfd5baa1abf57ac14a4a870667b0a.

Revert "f2fs: move error condition for mkdir at proper place"

This reverts commit ce5b571820d09eade2e713eca459c4081ebe9c5f.

Revert "f2fs: remove unneeded initialization"

This reverts commit b7a068f4085d7b05c7f6f07501a55b277ca5b9ce.

Revert "f2fs: check read only condition before beginning write out"

This reverts commit 26fd9fb2471b5f4c3a3404266d1244db1e98e0f2.

Revert "f2fs: remove unneeded memset from init_once"

This reverts commit 7ab0503057f0a8ed7fc32b5c16fbfe240c79edf5.

Revert "f2fs: show error in case of invalid mount arguments"

This reverts commit 583444ed432c5c222c574e13331f852eed9e8a37.

Revert "f2fs: fix the compiler warning for uninitialized use of variable"

This reverts commit e4f4609bea3d2e854e3305410feb9c1b85c6f344.

Revert "f2fs: resolve build failures"

This reverts commit caedb731418d8930f107fa1ea308807074267457.

Revert "f2fs: adjust kernel coding style"

This reverts commit 63177acc294389c58b83a69b8ee7c807d03096d5.

Revert "f2fs: fix endian conversion bugs reported by sparse"

This reverts commit 6ba888c1bbabf1e4eddc88ffa8d2c77470db9945.

Revert "f2fs: remove unneeded version.h header file from f2fs.h"

This reverts commit 481fde4859b1311cdf968f8625124311e107f5ff.

Revert "f2fs: update Kconfig and Makefile"

This reverts commit aacfafcb1598a7777c25bcb598451b4e8cce3049.

Revert "f2fs: move proc files to debugfs"

This reverts commit f411c8afafccdb3b41cc6afe3d71b699606a2ed3.

Revert "f2fs: add recovery routines for roll-forward"

This reverts commit 2dafbc26d371c6fe5288d4a649e344285cded643.

Revert "f2fs: add garbage collection functions"

This reverts commit 848f2ba375fa586e7f27df44af84d1c20e652156.

Revert "f2fs: add xattr and acl functionalities"

This reverts commit a5d44c4b3057a83edebc3a90b8f878be554cbf6a.

Revert "f2fs: add core directory operations"

This reverts commit 1d27c44e2f26ce1eea503171afd7681d9985bb32.

Revert "f2fs: add inode operations for special inodes"

This reverts commit 277490decd9bcb7a7230618e29c4dc89e03a8797.

Revert "f2fs: add core inode operations"

This reverts commit c21892b56c8b2b3d3978fe10691926c195bbae2b.

Revert "f2fs: add address space operations for data"

This reverts commit d58c2113b75731aeffc6b491928fa70d9f4ff05b.

Revert "f2fs: add file operations"

This reverts commit b15cca94511309e149076f212b20c5f0e7519a9b.

Revert "f2fs: add segment operations"

This reverts commit e79f49d40297f71c61ddbfdcf89419b91838046b.

Revert "f2fs: add node operations"

This reverts commit d36b20b6676702cd1c96ea34636a42ee2134c7a3.

Revert "f2fs: add checkpoint operations"

This reverts commit ce5894e5ef07819ec85d4e9f8b181485ccc77a18.

Revert "f2fs: add super block operations"

This reverts commit f981a9c8ef828f760a39e331b68b5dcbefb8b42f.

Revert "f2fs: add superblock and major in-memory structure"

This reverts commit 9828ff0825000f5b24655e6fc40a8cc1e4530ecc.
import latest f2fs kernel 3.0 backport by arter97 (2014-09-26)
fs: import f2fs from git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git (branch dev)

Up-to-date with
git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git @26a7fca93f169a974685bb87c4b559d3d4372699
(f2fs: deactivate inode page if the inode is evicted)

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>

f2fs: support 3.0

Initial patches by Now Computing, fixes for latest mainline f2fs by arter97

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>

fs: rework f2fs

fs: rework f2fs

fs: rework f2fs

fs: rework f2fs

fs: rework f2fs
defconfig: enable f2fs
Fancy Kernel r58