aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/filemap.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 09bfc9b3bb51..1a455142784d 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -76,7 +76,7 @@
76 * ->mmap_sem 76 * ->mmap_sem
77 * ->lock_page (access_process_vm) 77 * ->lock_page (access_process_vm)
78 * 78 *
79 * ->i_mutex (generic_file_buffered_write) 79 * ->i_mutex (generic_perform_write)
80 * ->mmap_sem (fault_in_pages_readable->do_page_fault) 80 * ->mmap_sem (fault_in_pages_readable->do_page_fault)
81 * 81 *
82 * bdi->wb.list_lock 82 * bdi->wb.list_lock
@@ -2182,27 +2182,6 @@ again:
2182} 2182}
2183EXPORT_SYMBOL(generic_perform_write); 2183EXPORT_SYMBOL(generic_perform_write);
2184 2184
2185ssize_t
2186generic_file_buffered_write(struct kiocb *iocb, const struct iovec *iov,
2187 unsigned long nr_segs, loff_t pos,
2188 size_t count, ssize_t written)
2189{
2190 struct file *file = iocb->ki_filp;
2191 ssize_t status;
2192 struct iov_iter i;
2193
2194 iov_iter_init(&i, iov, nr_segs, count, written);
2195 status = generic_perform_write(file, &i, pos);
2196
2197 if (likely(status >= 0)) {
2198 written += status;
2199 iocb->ki_pos = pos + status;
2200 }
2201
2202 return written ? written : status;
2203}
2204EXPORT_SYMBOL(generic_file_buffered_write);
2205
2206/** 2185/**
2207 * __generic_file_aio_write - write data to a file 2186 * __generic_file_aio_write - write data to a file
2208 * @iocb: IO state structure (file, offset, etc.) 2187 * @iocb: IO state structure (file, offset, etc.)