Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Oleksandr Natalenko
pf-kernel
Commits
58bfab39
Commit
58bfab39
authored
Feb 11, 2014
by
Al Viro
Browse files
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