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
58bfab39
Commit
58bfab39
authored
Feb 11, 2014
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ocfs2_file_aio_write(): switch to generic_perform_write()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
aec605f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
fs/ocfs2/file.c
fs/ocfs2/file.c
+5
-2
No files found.
fs/ocfs2/file.c
View file @
58bfab39
...
...
@@ -2381,9 +2381,12 @@ static ssize_t ocfs2_file_aio_write(struct kiocb *iocb,
goto
out_dio
;
}
}
else
{
struct
iov_iter
from
;
iov_iter_init
(
&
from
,
iov
,
nr_segs
,
count
,
0
);
current
->
backing_dev_info
=
file
->
f_mapping
->
backing_dev_info
;
written
=
generic_file_buffered_write
(
iocb
,
iov
,
nr_segs
,
*
ppos
,
count
,
0
);
written
=
generic_perform_write
(
file
,
&
from
,
*
ppos
);
if
(
likely
(
written
>=
0
))
iocb
->
ki_pos
=
*
ppos
+
written
;
current
->
backing_dev_info
=
NULL
;
}
...
...
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