From: Gu Zheng Date: Fri, 5 Sep 2014 10:31:00 +0000 (+0800) Subject: f2fs: use lock-less list(llist) to simplify the flush cmd management X-Git-Tag: fixes-for-v3.18-merge-window~8^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=721bd4d5c3f957f98157b6dcac9c4a4dd828e3ff;p=pandora-kernel.git f2fs: use lock-less list(llist) to simplify the flush cmd management We use flush cmd control to collect many flush cmds, and flush them together. In this case, we use two list to manage the flush cmds (collect and dispatch), and one spin lock is used to protect this. In fact, the lock-less list(llist) is very suitable to this case, and we use simplify this routine. - v2: -use llist_for_each_entry_safe to fix possible use-after-free issue. -remove the unused field from struct flush_cmd. Thanks for Yu's suggestion. - Signed-off-by: Gu Zheng Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed