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
bea6b64c
Commit
bea6b64c
authored
Jun 07, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch omfs to simple_fsync()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
90de0664
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
fs/omfs/file.c
fs/omfs/file.c
+1
-16
No files found.
fs/omfs/file.c
View file @
bea6b64c
...
@@ -11,21 +11,6 @@
...
@@ -11,21 +11,6 @@
#include <linux/mpage.h>
#include <linux/mpage.h>
#include "omfs.h"
#include "omfs.h"
static
int
omfs_sync_file
(
struct
file
*
file
,
struct
dentry
*
dentry
,
int
datasync
)
{
struct
inode
*
inode
=
dentry
->
d_inode
;
int
err
;
err
=
sync_mapping_buffers
(
inode
->
i_mapping
);
if
(
!
(
inode
->
i_state
&
I_DIRTY
))
return
err
;
if
(
datasync
&&
!
(
inode
->
i_state
&
I_DIRTY_DATASYNC
))
return
err
;
err
|=
omfs_sync_inode
(
inode
);
return
err
?
-
EIO
:
0
;
}
static
u32
omfs_max_extents
(
struct
omfs_sb_info
*
sbi
,
int
offset
)
static
u32
omfs_max_extents
(
struct
omfs_sb_info
*
sbi
,
int
offset
)
{
{
return
(
sbi
->
s_sys_blocksize
-
offset
-
return
(
sbi
->
s_sys_blocksize
-
offset
-
...
@@ -344,7 +329,7 @@ struct file_operations omfs_file_operations = {
...
@@ -344,7 +329,7 @@ struct file_operations omfs_file_operations = {
.
aio_read
=
generic_file_aio_read
,
.
aio_read
=
generic_file_aio_read
,
.
aio_write
=
generic_file_aio_write
,
.
aio_write
=
generic_file_aio_write
,
.
mmap
=
generic_file_mmap
,
.
mmap
=
generic_file_mmap
,
.
fsync
=
omfs_sync_file
,
.
fsync
=
simple_fsync
,
.
splice_read
=
generic_file_splice_read
,
.
splice_read
=
generic_file_splice_read
,
};
};
...
...
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