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
bb1b3658
Commit
bb1b3658
authored
Jul 23, 2018
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: minor fsync fix
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
9c859dc9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
fs/bcachefs/fs-io.c
fs/bcachefs/fs-io.c
+5
-2
No files found.
fs/bcachefs/fs-io.c
View file @
bb1b3658
...
@@ -2107,7 +2107,7 @@ int bch2_fsync(struct file *file, loff_t start, loff_t end, int datasync)
...
@@ -2107,7 +2107,7 @@ int bch2_fsync(struct file *file, loff_t start, loff_t end, int datasync)
{
{
struct
bch_inode_info
*
inode
=
file_bch_inode
(
file
);
struct
bch_inode_info
*
inode
=
file_bch_inode
(
file
);
struct
bch_fs
*
c
=
inode
->
v
.
i_sb
->
s_fs_info
;
struct
bch_fs
*
c
=
inode
->
v
.
i_sb
->
s_fs_info
;
int
ret
;
int
ret
,
ret2
;
ret
=
file_write_and_wait_range
(
file
,
start
,
end
);
ret
=
file_write_and_wait_range
(
file
,
start
,
end
);
if
(
ret
)
if
(
ret
)
...
@@ -2123,7 +2123,10 @@ int bch2_fsync(struct file *file, loff_t start, loff_t end, int datasync)
...
@@ -2123,7 +2123,10 @@ int bch2_fsync(struct file *file, loff_t start, loff_t end, int datasync)
if
(
c
->
opts
.
journal_flush_disabled
)
if
(
c
->
opts
.
journal_flush_disabled
)
return
0
;
return
0
;
return
bch2_journal_flush_seq
(
&
c
->
journal
,
inode
->
ei_journal_seq
);
ret
=
bch2_journal_flush_seq
(
&
c
->
journal
,
inode
->
ei_journal_seq
);
ret2
=
file_check_and_advance_wb_err
(
file
);
return
ret
?:
ret2
;
}
}
/* truncate: */
/* truncate: */
...
...
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