Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: "yanhai zhu" <zhu.yanhai@gmail.com>
To: "Tarkan Erimer" <tarkan.erimer@turknet.net.tr>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Compile error of latest hotfix release of btrfs
Date: Mon, 3 Nov 2008 21:49:36 +0800	[thread overview]
Message-ID: <977a2be20811030549l6b9a04edxafe7aec9729c3471@mail.gmail.com> (raw)
In-Reply-To: <490EB395.2020803@turknet.net.tr>

hello,
   try this.

diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 9b37ce6..eb01341 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2539,7 +2539,11 @@ int extent_readpages(struct extent_io_tree *tree,
                        /* open coding of lru_cache_add, also not exported */
                        page_cache_get(page);
                        if (!pagevec_add(&pvec, page))
+                       #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)
+                               ____pagevec_lru_add(&pvec);
+                       #else
                                __pagevec_lru_add(&pvec);
+                       #endif
                        __extent_read_full_page(tree, page, get_extent,
                                                &bio, 0, &bio_flags);
                }

2008/11/3 Tarkan Erimer <tarkan.erimer@turknet.net.tr>:
> Hi,
>
> I use Kubuntu-8.10 with custom kernel 2.6.28-rc2 and my gcc version is "gcc
> (Ubuntu 4.3.2-1ubuntu11) 4.3.2". When I tried to compile latest btrfs
> source, I got these error messages :
>
> tarkane@tarkane:/media/disk/kernel-417d87e57364$ make
> bash version.sh
> make -C /lib/modules/`uname -r`/build M=`pwd` modules
> make[1]: Entering directory `/usr/src/linux-2.6.28-rc2'
> CC [M] /media/disk/kernel-417d87e57364/super.o
> CC [M] /media/disk/kernel-417d87e57364/ctree.o
> CC [M] /media/disk/kernel-417d87e57364/extent-tree.o
> CC [M] /media/disk/kernel-417d87e57364/print-tree.o
> CC [M] /media/disk/kernel-417d87e57364/root-tree.o
> CC [M] /media/disk/kernel-417d87e57364/dir-item.o
> CC [M] /media/disk/kernel-417d87e57364/hash.o
> CC [M] /media/disk/kernel-417d87e57364/file-item.o
> CC [M] /media/disk/kernel-417d87e57364/inode-item.o
> CC [M] /media/disk/kernel-417d87e57364/inode-map.o
> CC [M] /media/disk/kernel-417d87e57364/disk-io.o
> CC [M] /media/disk/kernel-417d87e57364/transaction.o
> CC [M] /media/disk/kernel-417d87e57364/bit-radix.o
> CC [M] /media/disk/kernel-417d87e57364/inode.o
> CC [M] /media/disk/kernel-417d87e57364/file.o
> CC [M] /media/disk/kernel-417d87e57364/tree-defrag.o
> CC [M] /media/disk/kernel-417d87e57364/extent_map.o
> CC [M] /media/disk/kernel-417d87e57364/sysfs.o
> CC [M] /media/disk/kernel-417d87e57364/struct-funcs.o
> CC [M] /media/disk/kernel-417d87e57364/xattr.o
> CC [M] /media/disk/kernel-417d87e57364/ordered-data.o
> CC [M] /media/disk/kernel-417d87e57364/extent_io.o
> /media/disk/kernel-417d87e57364/extent_io.c: In function 'extent_readpages':
> /media/disk/kernel-417d87e57364/extent_io.c:2270: error: implicit
> declaration of function '__pagevec_lru_add'
> make[2]: *** [/media/disk/kernel-417d87e57364/extent_io.o] Error 1
> make[1]: *** [_module_/media/disk/kernel-417d87e57364] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.28-rc2'
> make: *** [all] Error 2
> tarkane@tarkane:/media/disk/kernel-417d87e57364$
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Zhu Yanhai

  reply	other threads:[~2008-11-03 13:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-03  8:17 Compile error of latest hotfix release of btrfs Tarkan Erimer
2008-11-03 13:49 ` yanhai zhu [this message]
2008-11-03 14:36   ` Tarkan Erimer
2008-11-03 15:19     ` yanhai zhu
2008-11-03 20:22       ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=977a2be20811030549l6b9a04edxafe7aec9729c3471@mail.gmail.com \
    --to=zhu.yanhai@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=tarkan.erimer@turknet.net.tr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox