diff options
| author | Chao Yu <yuchao0@huawei.com> | 2017-01-07 18:49:42 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:34:44 +0200 |
| commit | 9e743598c3554d332fb87e5979754edb57fa30b1 (patch) | |
| tree | 383374fd85d1162a5f86dfb0b1cd57e90faca533 /fs/f2fs/node.h | |
| parent | 0e95cb2259f3ac4f85b05e2519dbad10c28f0212 (diff) | |
| download | android_kernel_m2note-9e743598c3554d332fb87e5979754edb57fa30b1.tar.gz | |
f2fs: clean up with list_{first, last}_entry
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.h')
| -rw-r--r-- | fs/f2fs/node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index e7997e240..9278b21ee 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h @@ -174,7 +174,7 @@ static inline void next_free_nid(struct f2fs_sb_info *sbi, nid_t *nid) spin_unlock(&nm_i->nid_list_lock); return; } - fnid = list_entry(nm_i->nid_list[FREE_NID_LIST].next, + fnid = list_first_entry(&nm_i->nid_list[FREE_NID_LIST], struct free_nid, list); *nid = fnid->nid; spin_unlock(&nm_i->nid_list_lock); |
