diff options
| author | Matthias Kaehlcke <[email protected]> | 2007-10-19 06:39:56 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-10-19 18:53:38 +0000 |
| commit | cfdaf9e5f95993264b5aee7cbb9dd16977bc11ed (patch) | |
| tree | 5f1cfadbdae01b118ed9f1dcefa57a633fcec8f7 /fs/file_table.c | |
| parent | workqueue: debug flushing deadlocks with lockdep (diff) | |
| download | kernel-cfdaf9e5f95993264b5aee7cbb9dd16977bc11ed.tar.gz kernel-cfdaf9e5f95993264b5aee7cbb9dd16977bc11ed.zip | |
fs/file_table.c: use list_for_each_entry() instead of list_for_each()
fs/file_table.c: use list_for_each_entry() instead of list_for_each()
in fs_may_remount_ro()
Signed-off-by: Matthias Kaehlcke <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/file_table.c')
| -rw-r--r-- | fs/file_table.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/file_table.c b/fs/file_table.c index 3176fefc92e1..664e3f2309b8 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -323,12 +323,11 @@ void file_kill(struct file *file) int fs_may_remount_ro(struct super_block *sb) { - struct list_head *p; + struct file *file; /* Check that no files are currently opened for writing. */ file_list_lock(); - list_for_each(p, &sb->s_files) { - struct file *file = list_entry(p, struct file, f_u.fu_list); + list_for_each_entry(file, &sb->s_files, f_u.fu_list) { struct inode *inode = file->f_path.dentry->d_inode; /* File with pending delete? */ |
