lkml.org 
[lkml]   [2013]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [patch] f2fs: use _safe() version of list_for_each
From
2013/1/21, Dan Carpenter <dan.carpenter@oracle.com>:
> I sometimes write little user space programs to help me check my
> work. I've attached one.
>
> gcc test.c
> ./a.out
>
> regards,
> dan carpenter
>
Hi Dan.
Thanks for testcase. I understand fully.
list_for_each still use pos after removing pos in loop. So, we need to
use _safe function to get pos->next safely.

Thanks.


\
 
 \ /
  Last update: 2013-01-21 16:21    [W:0.039 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site