Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jan.koester
Linux
Commits
d4637bc1
Commit
d4637bc1
authored
11 years ago
by
Al Viro
Browse files
Options
Downloads
Patches
Plain Diff
udf: switch to ->write_iter()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
9b884164
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fs/udf/file.c
+5
-6
5 additions, 6 deletions
fs/udf/file.c
with
5 additions
and
6 deletions
fs/udf/file.c
+
5
−
6
View file @
d4637bc1
...
...
@@ -134,8 +134,7 @@ const struct address_space_operations udf_adinicb_aops = {
.
direct_IO
=
udf_adinicb_direct_IO
,
};
static
ssize_t
udf_file_aio_write
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
ppos
)
static
ssize_t
udf_file_write_iter
(
struct
kiocb
*
iocb
,
struct
iov_iter
*
from
)
{
ssize_t
retval
;
struct
file
*
file
=
iocb
->
ki_filp
;
...
...
@@ -150,7 +149,7 @@ static ssize_t udf_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
if
(
file
->
f_flags
&
O_APPEND
)
pos
=
inode
->
i_size
;
else
pos
=
p
pos
;
pos
=
iocb
->
ki_
pos
;
if
(
inode
->
i_sb
->
s_blocksize
<
(
udf_file_entry_alloc_offset
(
inode
)
+
...
...
@@ -171,7 +170,7 @@ static ssize_t udf_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
}
else
up_write
(
&
iinfo
->
i_data_sem
);
retval
=
__generic_file_
aio_
write
(
iocb
,
iov
,
nr_segs
);
retval
=
__generic_file_write
_iter
(
iocb
,
from
);
mutex_unlock
(
&
inode
->
i_mutex
);
if
(
retval
>
0
)
{
...
...
@@ -257,8 +256,8 @@ const struct file_operations udf_file_operations = {
.
unlocked_ioctl
=
udf_ioctl
,
.
open
=
generic_file_open
,
.
mmap
=
generic_file_mmap
,
.
write
=
do
_sync_write
,
.
aio_
write
=
udf_file_
aio_
write
,
.
write
=
new
_sync_write
,
.
write
_iter
=
udf_file_write
_iter
,
.
release
=
udf_release_file
,
.
fsync
=
generic_file_fsync
,
.
splice_read
=
generic_file_splice_read
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment