]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
f2fs: clean up the add_orphan_inode func
authormajianpeng <majianpeng@gmail.com>
Tue, 29 Jan 2013 08:19:02 +0000 (16:19 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 11 Feb 2013 22:15:00 +0000 (07:15 +0900)
commita2617dc6863b21a8109c199ab533b3dbfe178f27
treeb628ad6d5ada7b4d05fc48d55dae50834da4e9d6
parentaa43507f68e44fbc014d820e47eda5a369b8dc9d
f2fs: clean up the add_orphan_inode func

For the code
> prev = list_entry(orphan->list.prev, typeof(*prev), list);
if orphan->list.prev == head, it can't get the right prev.
And we can use the parameter 'this' to add.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/checkpoint.c