X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=fs%2Focfs2%2Faops.c;h=832c1759a09af49b029bfa49583fcda2d791ad95;hb=74f464e97044da33b25aaed00213914b0edf1f2e;hp=eb1ce30412dc3e09d1fbd4c8e890d86c2d0a4c9f;hpb=4116941b7a703f8c770998bb3a59966608cb5bb2;p=linux.git diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index eb1ce30412dc..832c1759a09a 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c @@ -30,6 +30,7 @@ #include #include #include +#include #include @@ -397,7 +398,7 @@ static int ocfs2_readpages(struct file *filp, struct address_space *mapping, * Check whether a remote node truncated this file - we just * drop out in that case as it's not worth handling here. */ - last = list_entry(pages->prev, struct page, lru); + last = lru_to_page(pages); start = (loff_t)last->index << PAGE_SHIFT; if (start >= i_size_read(inode)) goto out_unlock;