diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2011-05-05 12:56:51 +0900 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2011-05-10 22:21:56 +0900 |
commit | 0cc1283881d3fcc9011c713e067795ccec322ae7 (patch) | |
tree | 3d4c314f98b3fdcf2a7d2309e4dc468aa0d98ec4 /fs/nilfs2/segment.c | |
parent | 293ce0ed8c2d22ff044e6e9fa7b1d4be425d189b (diff) | |
download | kernel_samsung_espresso10-0cc1283881d3fcc9011c713e067795ccec322ae7.zip kernel_samsung_espresso10-0cc1283881d3fcc9011c713e067795ccec322ae7.tar.gz kernel_samsung_espresso10-0cc1283881d3fcc9011c713e067795ccec322ae7.tar.bz2 |
nilfs2: use list_first_entry
This uses list_first_entry macro instead of list_entry if it's used to
get the first entry.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/segment.c')
-rw-r--r-- | fs/nilfs2/segment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c index 8a2b428..186cabb 100644 --- a/fs/nilfs2/segment.c +++ b/fs/nilfs2/segment.c @@ -957,8 +957,8 @@ static int nilfs_segctor_apply_buffers(struct nilfs_sc_info *sci, dispose_buffers: while (!list_empty(listp)) { - bh = list_entry(listp->next, struct buffer_head, - b_assoc_buffers); + bh = list_first_entry(listp, struct buffer_head, + b_assoc_buffers); list_del_init(&bh->b_assoc_buffers); brelse(bh); } |