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
80f48a53
Commit
80f48a53
authored
Mar 07, 2002
by
Benjamin LaHaise
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug in fs/inode.c that would result in inodes not being properly synced for O_SYNC writes
parent
3a6578ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/inode.c
fs/inode.c
+3
-3
No files found.
fs/inode.c
View file @
80f48a53
...
@@ -291,15 +291,15 @@ static inline void __sync_one(struct inode *inode, int sync)
...
@@ -291,15 +291,15 @@ static inline void __sync_one(struct inode *inode, int sync)
static
inline
void
sync_one
(
struct
inode
*
inode
,
int
sync
)
static
inline
void
sync_one
(
struct
inode
*
inode
,
int
sync
)
{
{
if
(
inode
->
i_state
&
I_LOCK
)
{
while
(
inode
->
i_state
&
I_LOCK
)
{
__iget
(
inode
);
__iget
(
inode
);
spin_unlock
(
&
inode_lock
);
spin_unlock
(
&
inode_lock
);
__wait_on_inode
(
inode
);
__wait_on_inode
(
inode
);
iput
(
inode
);
iput
(
inode
);
spin_lock
(
&
inode_lock
);
spin_lock
(
&
inode_lock
);
}
else
{
__sync_one
(
inode
,
sync
);
}
}
__sync_one
(
inode
,
sync
);
}
}
static
inline
void
sync_list
(
struct
list_head
*
head
)
static
inline
void
sync_list
(
struct
list_head
*
head
)
...
...
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