]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[JFFS2] Support new device nodes
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 18 May 2006 23:28:49 +0000 (00:28 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 18 May 2006 23:28:49 +0000 (00:28 +0100)
commitaef9ab47841af45888d950baa6448072cc70bdd5
tree79545ddc225f64bc38fa04525ac4125c86202cb8
parentf6a673b3f4f93c1c50e1b18f29254b0531b722a8
[JFFS2] Support new device nodes

Device node major/minor numbers are just stored in the payload of a single
data node. Just extend that to 4 bytes and use new_encode_dev() for it.

We only use the 4-byte format if we _need_ to, if !old_valid_dev(foo).
This preserves backwards compatibility with older code as much as
possible. If we do make devices with major or minor numbers above 255, and
then mount the file system with the old code, it'll just read the first
two bytes and get the numbers wrong. If it comes to garbage-collect it,
it'll then write back those wrong numbers. But that's about the best we
can expect.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/dir.c
fs/jffs2/fs.c
fs/jffs2/gc.c
fs/jffs2/nodelist.h
fs/jffs2/os-linux.h
include/linux/jffs2.h