diff options
| author | Dave Jones <davej@suse.de> | 2002-04-03 22:23:07 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-04-03 22:23:07 -0800 |
| commit | 6037891cece4d83345beecd9caceaa5f9b3ade72 (patch) | |
| tree | d963e8ea9fb5a3aa35e325ff1cea72316c093022 | |
| parent | 13f84f823347fb4db6ab30cc51be867661a83e84 (diff) | |
[PATCH] cleanup list usage in dquot
From the kernel janitor folks
| -rw-r--r-- | fs/dquot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/dquot.c b/fs/dquot.c index 1aaed4771fa3..8d9821af6a92 100644 --- a/fs/dquot.c +++ b/fs/dquot.c @@ -337,7 +337,7 @@ static void invalidate_dquots(struct super_block *sb, short type) struct list_head *head; restart: - for (head = inuse_list.next; head != &inuse_list; head = head->next) { + list_for_each(head, &inuse_list) { dquot = list_entry(head, struct dquot, dq_inuse); if (dquot->dq_sb != sb) continue; @@ -367,7 +367,7 @@ int sync_dquots(struct super_block *sb, short type) lock_kernel(); restart: - for (head = inuse_list.next; head != &inuse_list; head = head->next) { + list_for_each(head, &inuse_list) { dquot = list_entry(head, struct dquot, dq_inuse); if (sb && dquot->dq_sb != sb) continue; @@ -579,7 +579,7 @@ static void add_dquot_ref(struct super_block *sb, short type) restart: file_list_lock(); - for (p = sb->s_files.next; p != &sb->s_files; p = p->next) { + list_for_each(p, &sb->s_files) { struct file *filp = list_entry(p, struct file, f_list); struct inode *inode = filp->f_dentry->d_inode; if (filp->f_mode & FMODE_WRITE && dqinit_needed(inode, type)) { |
