Revert "f2fs: put allocate_segment after refresh_sit_entry"
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Apr 2017 23:45:30 +0000 (16:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 May 2017 12:49:48 +0000 (14:49 +0200)
commited4d26a1e45b1cd0d2290cb50e9ab38ef74e0579
treed331411f4c9bdc4bd230927f1b559d775a85ca63
parent33cbcc2556b36a94b7387a995756e7c5f07e05d9
Revert "f2fs: put allocate_segment after refresh_sit_entry"

commit c6f82fe90d7458e5fa190a6820bfc24f96b0de4e upstream.

This reverts commit 3436c4bdb30de421d46f58c9174669fbcfd40ce0.

This makes a leak to register dirty segments. I reproduced the issue by
modified postmark which injects a lot of file create/delete/update and
finally triggers huge number of SSR allocations.

[Jaegeuk Kim: Change missing incorrect comment]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/segment.c