mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Adrian Bunk <bunk@stusta.de>
Cc: Linus Torvalds <torvalds@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [patch] mm: export cancel_dirty_page()
Date: Fri, 22 Dec 2006 00:30:18 +0100	[thread overview]
Message-ID: <20061221233018.GA28046@elte.hu> (raw)
In-Reply-To: <20061221232850.GJ6993@stusta.de>


* Adrian Bunk <bunk@stusta.de> wrote:

> On Fri, Dec 22, 2006 at 12:13:28AM +0100, Ingo Molnar wrote:
> > From: Ingo Molnar <mingo@elte.hu>
> > Subject: [patch] export cancel_dirty_page()
> > 
> > export cancel_dirty_page() - it's used by hugetlbfs which can be 
> > modular. (This makes my -git based kernel yum repository build again.)
> >...
> 
> No, it can't be:
> 
> config HUGETLBFS
>         bool "HugeTLB file system support"
>         ^^^^

ah, indeed - but i dont see a fundamental reason why hugetlbfs is not 
modular. Nevertheless exporting this makes sense. My quick hack below to 
guess to convert reiserfs (just to make the rpm build) also needs it.

	Ingo

Index: linux/fs/reiserfs/stree.c
===================================================================
--- linux.orig/fs/reiserfs/stree.c
+++ linux/fs/reiserfs/stree.c
@@ -1439,6 +1439,8 @@ static void unmap_buffers(struct page *p
 
 	if (page) {
 		if (page_has_buffers(page)) {
+			cancel_dirty_page(page, PAGE_CACHE_SIZE);
+
 			tail_index = pos & (PAGE_CACHE_SIZE - 1);
 			cur_index = 0;
 			head = page_buffers(page);
@@ -1458,9 +1460,6 @@ static void unmap_buffers(struct page *p
 				}
 				bh = next;
 			} while (bh != head);
-			if (PAGE_SIZE == bh->b_size) {
-				clear_page_dirty(page);
-			}
 		}
 	}
 }

  reply	other threads:[~2006-12-21 23:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-21 23:13 Ingo Molnar
2006-12-21 23:28 ` Adrian Bunk
2006-12-21 23:30   ` Ingo Molnar [this message]
2006-12-22  0:54     ` Linus Torvalds

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=20061221233018.GA28046@elte.hu \
    --to=mingo@elte.hu \
    --cc=bunk@stusta.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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®