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
Kirill Smelkov
linux
Commits
c46cb141
Commit
c46cb141
authored
Nov 16, 2004
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JFFS2: make sync() actually work by providing ->sync_fs method.
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
84a96003
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
fs/jffs2/super.c
fs/jffs2/super.c
+12
-1
No files found.
fs/jffs2/super.c
View file @
c46cb141
...
...
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: super.c,v 1.10
0 2004/10/21 00:03:50 dwmw2
Exp $
* $Id: super.c,v 1.10
2 2004/11/12 02:42:17 tpoynor
Exp $
*
*/
...
...
@@ -56,6 +56,16 @@ static void jffs2_i_init_once(void * foo, kmem_cache_t * cachep, unsigned long f
}
}
static
int
jffs2_sync_fs
(
struct
super_block
*
sb
,
int
wait
)
{
struct
jffs2_sb_info
*
c
=
JFFS2_SB_INFO
(
sb
);
down
(
&
c
->
alloc_sem
);
jffs2_flush_wbuf_pad
(
c
);
up
(
&
c
->
alloc_sem
);
return
0
;
}
static
struct
super_operations
jffs2_super_operations
=
{
.
alloc_inode
=
jffs2_alloc_inode
,
...
...
@@ -67,6 +77,7 @@ static struct super_operations jffs2_super_operations =
.
remount_fs
=
jffs2_remount_fs
,
.
clear_inode
=
jffs2_clear_inode
,
.
dirty_inode
=
jffs2_dirty_inode
,
.
sync_fs
=
jffs2_sync_fs
,
};
static
int
jffs2_sb_compare
(
struct
super_block
*
sb
,
void
*
data
)
...
...
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