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
0a64bc2c
Commit
0a64bc2c
authored
Feb 11, 2014
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xfs_file_buffered_aio_write(): switch to generic_perform_write()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
3b93f911
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
fs/xfs/xfs_file.c
fs/xfs/xfs_file.c
+6
-5
No files found.
fs/xfs/xfs_file.c
View file @
0a64bc2c
...
@@ -715,7 +715,7 @@ xfs_file_buffered_aio_write(
...
@@ -715,7 +715,7 @@ xfs_file_buffered_aio_write(
const
struct
iovec
*
iovp
,
const
struct
iovec
*
iovp
,
unsigned
long
nr_segs
,
unsigned
long
nr_segs
,
loff_t
pos
,
loff_t
pos
,
size_t
o
count
)
size_t
count
)
{
{
struct
file
*
file
=
iocb
->
ki_filp
;
struct
file
*
file
=
iocb
->
ki_filp
;
struct
address_space
*
mapping
=
file
->
f_mapping
;
struct
address_space
*
mapping
=
file
->
f_mapping
;
...
@@ -724,7 +724,7 @@ xfs_file_buffered_aio_write(
...
@@ -724,7 +724,7 @@ xfs_file_buffered_aio_write(
ssize_t
ret
;
ssize_t
ret
;
int
enospc
=
0
;
int
enospc
=
0
;
int
iolock
=
XFS_IOLOCK_EXCL
;
int
iolock
=
XFS_IOLOCK_EXCL
;
s
ize_t
count
=
ocount
;
s
truct
iov_iter
from
;
xfs_rw_ilock
(
ip
,
iolock
);
xfs_rw_ilock
(
ip
,
iolock
);
...
@@ -732,14 +732,15 @@ xfs_file_buffered_aio_write(
...
@@ -732,14 +732,15 @@ xfs_file_buffered_aio_write(
if
(
ret
)
if
(
ret
)
goto
out
;
goto
out
;
iov_iter_init
(
&
from
,
iovp
,
nr_segs
,
count
,
0
);
/* We can write back this queue in page reclaim */
/* We can write back this queue in page reclaim */
current
->
backing_dev_info
=
mapping
->
backing_dev_info
;
current
->
backing_dev_info
=
mapping
->
backing_dev_info
;
write_retry:
write_retry:
trace_xfs_file_buffered_write
(
ip
,
count
,
iocb
->
ki_pos
,
0
);
trace_xfs_file_buffered_write
(
ip
,
count
,
iocb
->
ki_pos
,
0
);
ret
=
generic_
file_buffered_write
(
iocb
,
iovp
,
nr_segs
,
ret
=
generic_
perform_write
(
file
,
&
from
,
pos
);
pos
,
count
,
0
);
if
(
likely
(
ret
>=
0
))
iocb
->
ki_pos
=
pos
+
ret
;
/*
/*
* If we just got an ENOSPC, try to write back all dirty inodes to
* If we just got an ENOSPC, try to write back all dirty inodes to
* convert delalloc space to free up some of the excess reserved
* convert delalloc space to free up some of the excess reserved
...
...
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