public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Chris AtLee <catlee@canada.com>
To: linux-mtd@lists.infradead.org
Subject: Re: JFFS2 on 2.2.18
Date: 13 Jun 2002 12:33:15 -0400	[thread overview]
Message-ID: <1023985995.2224.59.camel@geb> (raw)
In-Reply-To: <4337.1023746200@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]

Ok cool, I ditched the page-based write and make a jffs2_file_write
using jffs2_commit_write as a template and it works!

Now I can go back and try to figure out what's going wrong with
reading...The kernel seems able to read files just fine (except device
files...), except every time I access a new file to read I get some
warnings about page locking / unlocking:

The !PageLocked(pg) test at the top of jffs2_readpage_nolock fails and
generates a warning

and

UnlockPage(pg) in jffs2_do_readpage_unlock also generates a warning

This only happens the first time I access a file.  Could it have
something to do with differences between generic_file_read in the 2.2
and 2.4 kernels?

Thanks,
Chris


On Mon, 2002-06-10 at 17:56, David Woodhouse wrote:
> 
> catlee@canada.com said:
> > I've had some success getting MTD and JFFS (v1) working on my 2.2.18
> > system.  I've been trying over the past few weeks to get JFFS2 up and
> > running.  I've got it to the point where the kernel can read a jffs2
> > partition, but I really have no idea how to get writing to work.  The
> > mechanism for writing seems completely different in 2.2.x than in
> > 2.4.x
> 
> > Any pointers?  Is anyone else working on this? 
> 
> I know of nobody else working on a 2.2 backport. Worst case, you should be 
> able to ditch the page-based write code and call jffs2_write_file_range() 
> from a jffs2_file_write() which you provide instead of 
> generic_file_write(), surely?
> 
> --
> dwmw2
> 
> 
> 


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2002-06-13 16:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-10 16:44 JFFS2 on 2.2.18 Chris AtLee
2002-06-10 21:56 ` David Woodhouse
2002-06-13 16:33   ` Chris AtLee [this message]

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=1023985995.2224.59.camel@geb \
    --to=catlee@canada.com \
    --cc=linux-mtd@lists.infradead.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