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
73ab6f35
Commit
73ab6f35
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: fix fsync after create
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
3142e7ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
fs/bcachefs/fs.c
fs/bcachefs/fs.c
+3
-1
No files found.
fs/bcachefs/fs.c
View file @
73ab6f35
...
...
@@ -327,6 +327,7 @@ __bch2_create(struct mnt_idmap *idmap,
struct
bch_inode_unpacked
inode_u
;
struct
bch_hash_info
hash_info
;
struct
posix_acl
*
default_acl
=
NULL
,
*
acl
=
NULL
;
u64
journal_seq
=
0
;
int
ret
;
bch2_inode_init
(
c
,
&
inode_u
,
0
,
0
,
0
,
rdev
,
&
dir
->
ei_inode
);
...
...
@@ -391,7 +392,7 @@ __bch2_create(struct mnt_idmap *idmap,
&
inode_u
)
:
0
)
?:
bch2_trans_commit
(
&
trans
,
NULL
,
NULL
,
&
inode
->
ei_
journal_seq
,
&
journal_seq
,
BTREE_INSERT_ATOMIC
|
BTREE_INSERT_NOUNLOCK
);
if
(
ret
==
-
EINTR
)
...
...
@@ -409,6 +410,7 @@ __bch2_create(struct mnt_idmap *idmap,
}
bch2_vfs_inode_init
(
c
,
inode
,
&
inode_u
);
journal_seq_copy
(
inode
,
journal_seq
);
set_cached_acl
(
&
inode
->
v
,
ACL_TYPE_ACCESS
,
acl
);
set_cached_acl
(
&
inode
->
v
,
ACL_TYPE_DEFAULT
,
default_acl
);
...
...
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