X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Ffile_table.c;h=664e3f2309b89811b028603da0f17a6e266ee9fd;hb=19abe86d60eeb34c5deeb3ab2d14229fa9f59157;hp=3176fefc92e139771a9c9065524c26e8e437e7fa;hpb=ce8d2cdf3d2b73e346c82e6f0a46da331df6364c;p=linux-2.6-omap-h63xx.git diff --git a/fs/file_table.c b/fs/file_table.c index 3176fefc92e..664e3f2309b 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? */