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
ccad2365
Commit
ccad2365
authored
Feb 11, 2014
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kill generic_file_buffered_write()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
58bfab39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
24 deletions
+1
-24
include/linux/fs.h
include/linux/fs.h
+0
-2
mm/filemap.c
mm/filemap.c
+1
-22
No files found.
include/linux/fs.h
View file @
ccad2365
...
...
@@ -2398,8 +2398,6 @@ extern ssize_t generic_file_aio_write(struct kiocb *, const struct iovec *, unsi
extern
ssize_t
generic_file_direct_write
(
struct
kiocb
*
,
const
struct
iovec
*
,
unsigned
long
*
,
loff_t
,
size_t
,
size_t
);
extern
ssize_t
generic_perform_write
(
struct
file
*
,
struct
iov_iter
*
,
loff_t
);
extern
ssize_t
generic_file_buffered_write
(
struct
kiocb
*
,
const
struct
iovec
*
,
unsigned
long
,
loff_t
,
size_t
,
ssize_t
);
extern
ssize_t
do_sync_read
(
struct
file
*
filp
,
char
__user
*
buf
,
size_t
len
,
loff_t
*
ppos
);
extern
ssize_t
do_sync_write
(
struct
file
*
filp
,
const
char
__user
*
buf
,
size_t
len
,
loff_t
*
ppos
);
extern
int
generic_segment_checks
(
const
struct
iovec
*
iov
,
...
...
mm/filemap.c
View file @
ccad2365
...
...
@@ -76,7 +76,7 @@
* ->mmap_sem
* ->lock_page (access_process_vm)
*
* ->i_mutex (generic_
file_buffered
_write)
* ->i_mutex (generic_
perform
_write)
* ->mmap_sem (fault_in_pages_readable->do_page_fault)
*
* bdi->wb.list_lock
...
...
@@ -2182,27 +2182,6 @@ ssize_t generic_perform_write(struct file *file,
}
EXPORT_SYMBOL
(
generic_perform_write
);
ssize_t
generic_file_buffered_write
(
struct
kiocb
*
iocb
,
const
struct
iovec
*
iov
,
unsigned
long
nr_segs
,
loff_t
pos
,
size_t
count
,
ssize_t
written
)
{
struct
file
*
file
=
iocb
->
ki_filp
;
ssize_t
status
;
struct
iov_iter
i
;
iov_iter_init
(
&
i
,
iov
,
nr_segs
,
count
,
written
);
status
=
generic_perform_write
(
file
,
&
i
,
pos
);
if
(
likely
(
status
>=
0
))
{
written
+=
status
;
iocb
->
ki_pos
=
pos
+
status
;
}
return
written
?
written
:
status
;
}
EXPORT_SYMBOL
(
generic_file_buffered_write
);
/**
* __generic_file_aio_write - write data to a file
* @iocb: IO state structure (file, offset, etc.)
...
...
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