]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "kclient: fix __grab_cache_page #if"
authorSage Weil <sage@newdream.net>
Mon, 2 Mar 2009 21:45:40 +0000 (13:45 -0800)
committerSage Weil <sage@newdream.net>
Mon, 2 Mar 2009 21:45:40 +0000 (13:45 -0800)
This reverts commit 220b116bfdc0ede84da93f296d42706fc0fc23f4.

Linux commit 54566b2c1594c2326a645a3551f9d989f7ba3c5e falls between
v2.6.28 and v2.6.29-rc1, so this #if should be 2.6.29.

src/kernel/addr.c

index 7148ef6afb8f87a880546a6eafd9615d72a8d55f..8d6243a81eff7495fb43ec8348a9a5fcae371c7e 100644 (file)
@@ -840,7 +840,7 @@ static int ceph_write_begin(struct file *file, struct address_space *mapping,
 
        /* get a page*/
 retry:
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29)
        page = grab_cache_page_write_begin(mapping, index, 0);
 #else
        page = __grab_cache_page(mapping, index);