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
58f3fa97
Commit
58f3fa97
authored
Jun 02, 2002
by
Andrew Morton
Committed by
Linus Torvalds
Jun 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] dirsync support for minixfs, sysvfs and ufs
Makes minixfs, sysvfs and ufs understand `mount -o dirsync'.
parent
53b478c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
fs/minix/dir.c
fs/minix/dir.c
+1
-1
fs/sysv/dir.c
fs/sysv/dir.c
+1
-1
fs/ufs/dir.c
fs/ufs/dir.c
+3
-3
No files found.
fs/minix/dir.c
View file @
58f3fa97
...
...
@@ -49,7 +49,7 @@ static int dir_commit_chunk(struct page *page, unsigned from, unsigned to)
struct
inode
*
dir
=
(
struct
inode
*
)
page
->
mapping
->
host
;
int
err
=
0
;
page
->
mapping
->
a_ops
->
commit_write
(
NULL
,
page
,
from
,
to
);
if
(
IS_SYNC
(
dir
))
if
(
IS_
DIR
SYNC
(
dir
))
err
=
write_one_page
(
page
,
1
);
else
unlock_page
(
page
);
...
...
fs/sysv/dir.c
View file @
58f3fa97
...
...
@@ -42,7 +42,7 @@ static int dir_commit_chunk(struct page *page, unsigned from, unsigned to)
int
err
=
0
;
page
->
mapping
->
a_ops
->
commit_write
(
NULL
,
page
,
from
,
to
);
if
(
IS_SYNC
(
dir
))
if
(
IS_
DIR
SYNC
(
dir
))
err
=
write_one_page
(
page
,
1
);
else
unlock_page
(
page
);
...
...
fs/ufs/dir.c
View file @
58f3fa97
...
...
@@ -356,7 +356,7 @@ void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de,
dir
->
i_version
=
++
event
;
de
->
d_ino
=
cpu_to_fs32
(
dir
->
i_sb
,
inode
->
i_ino
);
mark_buffer_dirty
(
bh
);
if
(
IS_SYNC
(
dir
))
{
if
(
IS_
DIR
SYNC
(
dir
))
{
ll_rw_block
(
WRITE
,
1
,
&
bh
);
wait_on_buffer
(
bh
);
}
...
...
@@ -457,7 +457,7 @@ int ufs_add_link(struct dentry *dentry, struct inode *inode)
de
->
d_ino
=
cpu_to_fs32
(
sb
,
inode
->
i_ino
);
ufs_set_de_type
(
sb
,
de
,
inode
->
i_mode
);
mark_buffer_dirty
(
bh
);
if
(
IS_SYNC
(
dir
))
{
if
(
IS_
DIR
SYNC
(
dir
))
{
ll_rw_block
(
WRITE
,
1
,
&
bh
);
wait_on_buffer
(
bh
);
}
...
...
@@ -508,7 +508,7 @@ int ufs_delete_entry (struct inode * inode, struct ufs_dir_entry * dir,
inode
->
i_ctime
=
inode
->
i_mtime
=
CURRENT_TIME
;
mark_inode_dirty
(
inode
);
mark_buffer_dirty
(
bh
);
if
(
IS_SYNC
(
inode
))
{
if
(
IS_
DIR
SYNC
(
inode
))
{
ll_rw_block
(
WRITE
,
1
,
&
bh
);
wait_on_buffer
(
bh
);
}
...
...
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