diff options
author | Qinghuang Feng | 2009-01-21 16:59:08 +0100 |
---|---|---|
committer | Chris Mason | 2009-01-21 16:59:08 +0100 |
commit | c6e308713a47527f88a277ee95b7c5d1db80f77b (patch) | |
tree | 0a890bb3ac2ae1bb8733cf8679d1441e1b85eb81 /fs/btrfs/transaction.c | |
parent | Btrfs: check return value for kthread_run() correctly (diff) | |
download | kernel-qcow2-linux-c6e308713a47527f88a277ee95b7c5d1db80f77b.tar.gz kernel-qcow2-linux-c6e308713a47527f88a277ee95b7c5d1db80f77b.tar.xz kernel-qcow2-linux-c6e308713a47527f88a277ee95b7c5d1db80f77b.zip |
Btrfs: simplify iteration codes
Merge list_for_each* and list_entry to list_for_each_entry*
Signed-off-by: Qinghuang Feng <qhfeng.kernel@gmail.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 8a08f9443340..919172de5c9a 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -852,11 +852,9 @@ static noinline int create_pending_snapshots(struct btrfs_trans_handle *trans, { struct btrfs_pending_snapshot *pending; struct list_head *head = &trans->transaction->pending_snapshots; - struct list_head *cur; int ret; - list_for_each(cur, head) { - pending = list_entry(cur, struct btrfs_pending_snapshot, list); + list_for_each_entry(pending, head, list) { ret = create_pending_snapshot(trans, fs_info, pending); BUG_ON(ret); } |