Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
3720bd8b
Commit
3720bd8b
authored
Jul 13, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6
parents
a61caa85
6a8b4d31
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
26 deletions
+30
-26
drivers/mtd/chips/Kconfig
drivers/mtd/chips/Kconfig
+1
-1
drivers/mtd/chips/cfi_cmdset_0020.c
drivers/mtd/chips/cfi_cmdset_0020.c
+4
-1
fs/jffs2/build.c
fs/jffs2/build.c
+1
-8
fs/jffs2/nodelist.c
fs/jffs2/nodelist.c
+7
-7
fs/jffs2/os-linux.h
fs/jffs2/os-linux.h
+3
-1
fs/jffs2/readinode.c
fs/jffs2/readinode.c
+4
-7
fs/jffs2/super.c
fs/jffs2/super.c
+10
-1
No files found.
drivers/mtd/chips/Kconfig
View file @
3720bd8b
...
...
@@ -300,7 +300,7 @@ config MTD_JEDEC
config MTD_XIP
bool "XIP aware MTD support"
depends on !SMP && (MTD_CFI_INTELEXT || MTD_CFI_AMDSTD) && EXPERIMENTAL
depends on !SMP && (MTD_CFI_INTELEXT || MTD_CFI_AMDSTD) && EXPERIMENTAL
&& ARM
default y if XIP_KERNEL
help
This allows MTD support to work with flash memory which is also
...
...
drivers/mtd/chips/cfi_cmdset_0020.c
View file @
3720bd8b
...
...
@@ -4,7 +4,7 @@
*
* (C) 2000 Red Hat. GPL'd
*
* $Id: cfi_cmdset_0020.c,v 1.1
7 2004/11/20 12:49:04
dwmw2 Exp $
* $Id: cfi_cmdset_0020.c,v 1.1
9 2005/07/13 15:52:45
dwmw2 Exp $
*
* 10/10/2000 Nicolas Pitre <nico@cam.org>
* - completely revamped method functions so they are aware and
...
...
@@ -16,6 +16,8 @@
* - modified Intel Command Set 0x0001 to support ST Advanced Architecture
* (command set 0x0020)
* - added a writev function
* 07/13/2005 Joern Engel <joern@wh.fh-wedel.de>
* - Plugged memory leak in cfi_staa_writev().
*/
#include <linux/version.h>
...
...
@@ -719,6 +721,7 @@ cfi_staa_writev(struct mtd_info *mtd, const struct kvec *vecs,
write_error:
if
(
retlen
)
*
retlen
=
totlen
;
kfree
(
buffer
);
return
ret
;
}
...
...
fs/jffs2/build.c
View file @
3720bd8b
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: build.c,v 1.7
0 2005/02/28 08:21:05
dedekind Exp $
* $Id: build.c,v 1.7
1 2005/07/12 16:37:08
dedekind Exp $
*
*/
...
...
@@ -336,13 +336,6 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c)
c
->
blocks
[
i
].
bad_count
=
0
;
}
init_MUTEX
(
&
c
->
alloc_sem
);
init_MUTEX
(
&
c
->
erase_free_sem
);
init_waitqueue_head
(
&
c
->
erase_wait
);
init_waitqueue_head
(
&
c
->
inocache_wq
);
spin_lock_init
(
&
c
->
erase_completion_lock
);
spin_lock_init
(
&
c
->
inocache_lock
);
INIT_LIST_HEAD
(
&
c
->
clean_list
);
INIT_LIST_HEAD
(
&
c
->
very_dirty_list
);
INIT_LIST_HEAD
(
&
c
->
dirty_list
);
...
...
fs/jffs2/nodelist.c
View file @
3720bd8b
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: nodelist.c,v 1.9
7 2005/07/06 15:18:41 dwmw2
Exp $
* $Id: nodelist.c,v 1.9
8 2005/07/10 15:15:32 dedekind
Exp $
*
*/
...
...
@@ -55,11 +55,11 @@ void jffs2_add_fd_to_list(struct jffs2_sb_info *c, struct jffs2_full_dirent *new
});
}
/*
Put a new tmp_dnode_info into the list, keeping the list in
order of increasing version
*/
static
void
jffs2_add_tn_to_
list
(
struct
jffs2_tmp_dnode_info
*
tn
,
struct
rb_root
*
list
)
/*
* Put a new tmp_dnode_info into the temporaty RB-tree, keeping the list in
* order of increasing version.
*/
static
void
jffs2_add_tn_to_
tree
(
struct
jffs2_tmp_dnode_info
*
tn
,
struct
rb_root
*
list
)
{
struct
rb_node
**
p
=
&
list
->
rb_node
;
struct
rb_node
*
parent
=
NULL
;
...
...
@@ -420,7 +420,7 @@ int jffs2_get_inode_nodes(struct jffs2_sb_info *c, struct jffs2_inode_info *f,
D1
(
printk
(
KERN_DEBUG
"dnode @%08x: ver %u, offset %04x, dsize %04x
\n
"
,
ref_offset
(
ref
),
je32_to_cpu
(
node
.
i
.
version
),
je32_to_cpu
(
node
.
i
.
offset
),
je32_to_cpu
(
node
.
i
.
dsize
)));
jffs2_add_tn_to_
list
(
tn
,
&
ret_tn
);
jffs2_add_tn_to_
tree
(
tn
,
&
ret_tn
);
break
;
default:
...
...
fs/jffs2/os-linux.h
View file @
3720bd8b
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: os-linux.h,v 1.5
7 2005/07/06 12:13:09 dwmw2
Exp $
* $Id: os-linux.h,v 1.5
8 2005/07/12 02:34:35 tpoynor
Exp $
*
*/
...
...
@@ -86,6 +86,8 @@ static inline void jffs2_init_inode_info(struct jffs2_inode_info *f)
#define jffs2_dataflash(c) (0)
#define jffs2_nor_ecc_flash_setup(c) (0)
#define jffs2_nor_ecc_flash_cleanup(c) do {} while (0)
#define jffs2_dataflash_setup(c) (0)
#define jffs2_dataflash_cleanup(c) do {} while (0)
#else
/* NAND and/or ECC'd NOR support present */
...
...
fs/jffs2/readinode.c
View file @
3720bd8b
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: readinode.c,v 1.12
0 2005/07/05 21:03:07 dwmw2
Exp $
* $Id: readinode.c,v 1.12
5 2005/07/10 13:13:55 dedekind
Exp $
*
*/
...
...
@@ -151,6 +151,9 @@ int jffs2_add_full_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_in
D1
(
printk
(
KERN_DEBUG
"jffs2_add_full_dnode_to_inode(ino #%u, f %p, fn %p)
\n
"
,
f
->
inocache
->
ino
,
f
,
fn
));
if
(
unlikely
(
!
fn
->
size
))
return
0
;
newfrag
=
jffs2_alloc_node_frag
();
if
(
unlikely
(
!
newfrag
))
return
-
ENOMEM
;
...
...
@@ -158,11 +161,6 @@ int jffs2_add_full_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_in
D2
(
printk
(
KERN_DEBUG
"adding node %04x-%04x @0x%08x on flash, newfrag *%p
\n
"
,
fn
->
ofs
,
fn
->
ofs
+
fn
->
size
,
ref_offset
(
fn
->
raw
),
newfrag
));
if
(
unlikely
(
!
fn
->
size
))
{
jffs2_free_node_frag
(
newfrag
);
return
0
;
}
newfrag
->
ofs
=
fn
->
ofs
;
newfrag
->
size
=
fn
->
size
;
newfrag
->
node
=
fn
;
...
...
@@ -560,7 +558,6 @@ static int jffs2_do_read_inode_internal(struct jffs2_sb_info *c,
}
next_tn:
BUG_ON
(
rb
->
rb_left
);
repl_rb
=
NULL
;
if
(
rb
->
rb_parent
&&
rb
->
rb_parent
->
rb_left
==
rb
)
{
/* We were then left-hand child of our parent. We need
to move our own right-hand child into our place. */
...
...
fs/jffs2/super.c
View file @
3720bd8b
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: super.c,v 1.10
6 2005/05/18 11:37:25
dedekind Exp $
* $Id: super.c,v 1.10
7 2005/07/12 16:37:08
dedekind Exp $
*
*/
...
...
@@ -140,6 +140,15 @@ static struct super_block *jffs2_get_sb_mtd(struct file_system_type *fs_type,
D1
(
printk
(
KERN_DEBUG
"jffs2_get_sb_mtd(): New superblock for device %d (
\"
%s
\"
)
\n
"
,
mtd
->
index
,
mtd
->
name
));
/* Initialize JFFS2 superblock locks, the further initialization will be
* done later */
init_MUTEX
(
&
c
->
alloc_sem
);
init_MUTEX
(
&
c
->
erase_free_sem
);
init_waitqueue_head
(
&
c
->
erase_wait
);
init_waitqueue_head
(
&
c
->
inocache_wq
);
spin_lock_init
(
&
c
->
erase_completion_lock
);
spin_lock_init
(
&
c
->
inocache_lock
);
sb
->
s_op
=
&
jffs2_super_operations
;
sb
->
s_flags
=
flags
|
MS_NOATIME
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment