]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: some changes for 2.6.28
authorYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 21 Oct 2008 22:16:15 +0000 (15:16 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 21 Oct 2008 22:16:15 +0000 (15:16 -0700)
src/kernel/addr.c

index 47071b1d433aa6fcd2c56bbf4232156984ec7cdf..bf18332b266d0fa5c1030ee063959d6f3d557a18 100644 (file)
@@ -302,9 +302,17 @@ static int ceph_readpages(struct file *file, struct address_space *mapping,
                SetPageUptodate(page);
                unlock_page(page);
                if (pagevec_add(&pvec, page) == 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)
+                       pagevec_lru_add_file(&pvec);   /* add to lru */
+#else
                        pagevec_lru_add(&pvec);   /* add to lru */
+#endif
        }
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)
+       pagevec_lru_add_file(&pvec);
+#else
        pagevec_lru_add(&pvec);
+#endif
        return 0;
 }