aboutsummaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/inode.c')
-rw-r--r--fs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/inode.c b/fs/inode.c
index 81508b0a3a70..410f235c337b 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -275,7 +275,7 @@ static void dispose_list(struct list_head *head)
275 while (!list_empty(head)) { 275 while (!list_empty(head)) {
276 struct inode *inode; 276 struct inode *inode;
277 277
278 inode = list_entry(head->next, struct inode, i_list); 278 inode = list_first_entry(head, struct inode, i_list);
279 list_del(&inode->i_list); 279 list_del(&inode->i_list);
280 280
281 if (inode->i_data.nrpages) 281 if (inode->i_data.nrpages)