mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tim Tassonis <timtas@cubic.ch>
To: diemer@gmx.de
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.14 breaks block/loop.c (loopback device)
Date: Tue, 6 Nov 2001 16:41:41 +0100	[thread overview]
Message-ID: <E1618MA-0006Rn-00@lttit> (raw)

Hi

> Hi!
>
> The latest kernel seems to breake the loop device. I used 2.4.13 before,
and
> everything was fine. I didn't change my kernel config when upgrading.
>
> I compile the loop device as a module. trying to modprobe/insmod it, I
get the
> following error message:
>
> unresolved symbol in loop.o: deactivate_page


You can apply below patch to fix this. Worked for me with no problem. This
was already discussed on the list and Linus said this would be the
appropriate fix.


diff -ru linux/drivers/block/loop.c linux-patched/drivers/block/loop.c
--- linux/drivers/block/loop.c  Tue Nov  6 10:41:15 2001
+++ linux-patched/drivers/block/loop.c  Tue Nov  6 10:43:51 2001
@@ -218,14 +218,12 @@
        index++;
        pos += size;
        UnlockPage(page);
-       deactivate_page(page);
        page_cache_release(page);
    }
    return 0;

 unlock:
    UnlockPage(page);
-   deactivate_page(page);
    page_cache_release(page);
 fail:
    return -1;


             reply	other threads:[~2001-11-06 15:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-06 15:41 Tim Tassonis [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-11-06 11:20 Jonas Diemer

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=E1618MA-0006Rn-00@lttit \
    --to=timtas@cubic.ch \
    --cc=diemer@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®