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
a9328015
Commit
a9328015
authored
Jun 07, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch ufs to simple_fsync()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
05459ca8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
24 deletions
+2
-24
fs/ufs/dir.c
fs/ufs/dir.c
+1
-1
fs/ufs/file.c
fs/ufs/file.c
+1
-22
fs/ufs/ufs.h
fs/ufs/ufs.h
+0
-1
No files found.
fs/ufs/dir.c
View file @
a9328015
...
@@ -666,6 +666,6 @@ int ufs_empty_dir(struct inode * inode)
...
@@ -666,6 +666,6 @@ int ufs_empty_dir(struct inode * inode)
const
struct
file_operations
ufs_dir_operations
=
{
const
struct
file_operations
ufs_dir_operations
=
{
.
read
=
generic_read_dir
,
.
read
=
generic_read_dir
,
.
readdir
=
ufs_readdir
,
.
readdir
=
ufs_readdir
,
.
fsync
=
ufs_sync_file
,
.
fsync
=
simple_fsync
,
.
llseek
=
generic_file_llseek
,
.
llseek
=
generic_file_llseek
,
};
};
fs/ufs/file.c
View file @
a9328015
...
@@ -24,31 +24,10 @@
...
@@ -24,31 +24,10 @@
*/
*/
#include <linux/fs.h>
#include <linux/fs.h>
#include <linux/buffer_head.h>
/* for sync_mapping_buffers() */
#include "ufs_fs.h"
#include "ufs_fs.h"
#include "ufs.h"
#include "ufs.h"
int
ufs_sync_file
(
struct
file
*
file
,
struct
dentry
*
dentry
,
int
datasync
)
{
struct
inode
*
inode
=
dentry
->
d_inode
;
int
err
;
int
ret
;
ret
=
sync_mapping_buffers
(
inode
->
i_mapping
);
if
(
!
(
inode
->
i_state
&
I_DIRTY
))
return
ret
;
if
(
datasync
&&
!
(
inode
->
i_state
&
I_DIRTY_DATASYNC
))
return
ret
;
err
=
ufs_sync_inode
(
inode
);
if
(
ret
==
0
)
ret
=
err
;
return
ret
;
}
/*
/*
* We have mostly NULL's here: the current defaults are ok for
* We have mostly NULL's here: the current defaults are ok for
* the ufs filesystem.
* the ufs filesystem.
...
@@ -62,6 +41,6 @@ const struct file_operations ufs_file_operations = {
...
@@ -62,6 +41,6 @@ const struct file_operations ufs_file_operations = {
.
aio_write
=
generic_file_aio_write
,
.
aio_write
=
generic_file_aio_write
,
.
mmap
=
generic_file_mmap
,
.
mmap
=
generic_file_mmap
,
.
open
=
generic_file_open
,
.
open
=
generic_file_open
,
.
fsync
=
ufs_sync_file
,
.
fsync
=
simple_fsync
,
.
splice_read
=
generic_file_splice_read
,
.
splice_read
=
generic_file_splice_read
,
};
};
fs/ufs/ufs.h
View file @
a9328015
...
@@ -99,7 +99,6 @@ extern void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de,
...
@@ -99,7 +99,6 @@ extern void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de,
extern
const
struct
inode_operations
ufs_file_inode_operations
;
extern
const
struct
inode_operations
ufs_file_inode_operations
;
extern
const
struct
file_operations
ufs_file_operations
;
extern
const
struct
file_operations
ufs_file_operations
;
extern
const
struct
address_space_operations
ufs_aops
;
extern
const
struct
address_space_operations
ufs_aops
;
extern
int
ufs_sync_file
(
struct
file
*
,
struct
dentry
*
,
int
);
/* ialloc.c */
/* ialloc.c */
extern
void
ufs_free_inode
(
struct
inode
*
inode
);
extern
void
ufs_free_inode
(
struct
inode
*
inode
);
...
...
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