aboutsummaryrefslogtreecommitdiffstats
path: root/fs/read_write.c
AgeCommit message (Expand)AuthorFilesLines
2025-08-15copy_file_range: limit size if in compat modeMiklos Szeredi1-5/+9
2025-07-28Merge tag 'vfs-6.17-rc1.mmap_prepare' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-1/+1
2025-06-17fs: convert simple use of generic_file_*_mmap() to .mmap_prepare()Lorenzo Stoakes1-1/+1
2025-06-10fs/read_write: Fix spelling typoAndy Shevchenko1-1/+1
2025-05-15fs/read_write: make default_llseek() killableMax Kellermann1-1/+3
2025-02-21fs: don't needlessly acquire f_lockChristian Brauner1-4/+9
2024-11-18Merge tag 'pull-fd' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-93/+52
2024-11-04fs: Export generic_atomic_write_valid()John Garry1-0/+1
2024-11-03convert do_preadv()/do_pwritev()Al Viro1-8/+4
2024-11-03fdget(), more trivial conversionsAl Viro1-45/+26
2024-11-03fdget(), trivial conversionsAl Viro1-19/+9
2024-11-03introduce "fd_pos" class, convert fdget_pos() users to it.Al Viro1-21/+13
2024-10-19fs/block: Check for IOCB_DIRECT in generic_atomic_write_valid()John Garry1-5/+8
2024-10-19block/fs: Pass an iocb to generic_atomic_write_valid()John Garry1-2/+2
2024-09-23Merge tag 'pull-stable-struct_fd' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-59/+59
2024-09-16Merge tag 'vfs-6.12.file' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-39/+132
2024-09-12fs: remove f_versionChristian Brauner1-5/+4
2024-09-09fs: add generic_llseek_cookie()Christian Brauner1-0/+45
2024-09-09fs: use must_set_pos()Christian Brauner1-38/+14
2024-09-09fs: add must_set_pos()Christian Brauner1-0/+54
2024-09-09fs: add vfs_setpos_cookie()Christian Brauner1-6/+25
2024-08-30fs: move FMODE_UNSIGNED_OFFSET to fop_flagsChristian Brauner1-1/+1
2024-08-12introduce fd_file(), convert all accessors to it.Al Viro1-59/+59
2024-06-20fs: Initial atomic write supportPrasad Singamsetty1-1/+17
2024-05-21Merge tag 'pull-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-6/+6
2024-05-20Merge tag 'xfs-6.10-merge-6' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linuxLinus Torvalds1-0/+1
2024-04-15vfs: export remap and write check helpersDarrick J. Wong1-0/+1
2024-04-15remove call_{read,write}_iter() functionsMiklos Szeredi1-6/+6
2024-04-07fs: claw back a few FMODE_* bitsChristian Brauner1-1/+1
2023-12-12fsnotify: optionally pass access range in file permission hooksAmir Goldstein1-2/+8
2023-12-12fs: use splice_copy_file_range() inline helperAmir Goldstein1-34/+0
2023-12-12splice: return type ssize_t from all helpersAmir Goldstein1-1/+1
2023-12-05fs: use do_splice_direct() for nfsd/ksmbd server-side-copyAmir Goldstein1-13/+26
2023-12-01fs: move file_start_write() into direct_splice_actor()Amir Goldstein1-2/+0
2023-12-01fs: fork splice_file_range() from do_splice_direct()Amir Goldstein1-4/+2
2023-11-24fs: create file_write_started() helperAmir Goldstein1-1/+1
2023-11-24fs: move kiocb_start_write() into vfs_iocb_iter_write()Amir Goldstein1-0/+7
2023-11-24fs: move permission hook out of do_iter_read()Amir Goldstein1-27/+39
2023-11-24fs: move permission hook out of do_iter_write()Amir Goldstein1-38/+48
2023-11-24fs: move file_start_write() into vfs_iter_write()Amir Goldstein1-3/+10
2023-08-15fs: Fix one kernel-doc commentYang Li1-1/+1
2023-05-24splice: Use filemap_splice_read() instead of generic_file_splice_read()David Howells1-1/+1
2023-03-30iov_iter: add iter_iov_addr() and iter_iov_len() helpersJens Axboe1-6/+5
2022-12-12Merge tag 'pull-iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-6/+6
2022-11-25use less confusing names for iov_iter direction initializersAl Viro1-6/+6
2022-11-25vfs: fix copy_file_range() averts filesystem freeze protectionAmir Goldstein1-4/+15
2022-09-28[coredump] don't use __kernel_write() on kmap_local_page()Al Viro1-8/+14
2022-08-08switch new_sync_{read,write}() to ITER_UBUFAl Viro1-4/+2
2022-08-03Merge tag 'pull-work.lseek' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-14/+3
2022-08-02Merge tag 'for-5.20/io_uring-buffered-writes-2022-07-29' of git://git.kernel....Linus Torvalds1-1/+3
2022-07-26Merge tag 'mm-hotfixes-stable-2022-07-26' of git://git.kernel.org/pub/scm/lin...Linus Torvalds1-0/+3
2022-07-24fs: add a FMODE_BUF_WASYNC flags for f_modeStefan Roesch1-1/+3
2022-07-18fs: sendfile handles O_NONBLOCK of out_fdAndrei Vagin1-0/+3
2022-07-16fs: remove no_llseekJason A. Donenfeld1-6/+0
2022-07-16fs: do not compare against ->llseekJason A. Donenfeld1-8/+3
2022-06-30vfs: fix copy_file_range() regression in cross-fs copiesAmir Goldstein1-33/+44
2022-04-26riscv: compat: syscall: Add compat_sys_call_table implementationGuo Ren1-0/+16
2022-04-01Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+0
2022-03-14fs: export variant of generic_write_checks without iov_iterOmar Sandoval1-13/+20
2022-03-14fs: export rw_verify_area()Omar Sandoval1-0/+1
2022-01-30fs: Remove FIXME comment in generic_write_checks()Tal Zussman1-1/+0
2021-10-26fs: remove leftover comments from mandatory locking removalJeff Layton1-4/+0
2021-08-24fs: clean up after mandatory file locking support removalLukas Bulwahn1-7/+3
2021-08-23fs: remove mandatory file locking supportJeff Layton1-7/+0
2021-01-25teach sendfile(2) to handle send-to-pipe directlyAl Viro1-6/+13
2020-10-23Merge tag 'vfs-5.10-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linuxLinus Torvalds1-437/+107
2020-10-22Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-26/+45
2020-10-15fs: Allow a NULL pos pointer to __kernel_readMatthew Wilcox (Oracle)1-2/+3
2020-10-15fs: Allow a NULL pos pointer to __kernel_writeMatthew Wilcox (Oracle)1-2/+3
2020-10-15vfs: move the generic write and copy checks out of mmDarrick J. Wong1-0/+143
2020-10-15vfs: move the remap range helpers to remap_range.cDarrick J. Wong1-473/+0
2020-10-12Merge branch 'work.iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-336/+26
2020-10-03fs: remove the compat readv/writev syscallsChristoph Hellwig1-14/+0
2020-10-03fs: remove various compat readv/writev helpersChristoph Hellwig1-149/+30
2020-10-03iov_iter: transparently handle compat iovecs in import_iovecChristoph Hellwig1-2/+4
2020-09-29autofs: use __kernel_write() for the autofs pipe writingLinus Torvalds1-0/+8
2020-09-25iov_iter: move rw_copy_check_uvector() into lib/iov_iter.cDavid Laight1-179/+0
2020-09-08fs: don't allow splice read/write without explicit opsChristoph Hellwig1-1/+1
2020-09-08fs: don't allow kernel reads and writes without iter opsChristoph Hellwig1-25/+42
2020-07-30initrd: switch initrd loading to struct file based APIsChristoph Hellwig1-1/+1
2020-07-08fs: remove __vfs_readChristoph Hellwig1-22/+21
2020-07-08fs: implement kernel_read using __kernel_readChristoph Hellwig1-8/+5
2020-07-08fs: add a __kernel_read helperChristoph Hellwig1-0/+23
2020-07-08fs: remove __vfs_writeChristoph Hellwig1-24/+22
2020-07-08fs: implement kernel_write using __kernel_writeChristoph Hellwig1-8/+9
2020-07-08fs: check FMODE_WRITE in __kernel_writeChristoph Hellwig1-0/+2
2020-07-08fs: unexport __kernel_writeChristoph Hellwig1-1/+0
2020-04-03powerpc: Add back __ARCH_WANT_SYS_LLSEEK macroMichal Suchanek1-1/+2
2020-02-04Merge tag 'ovl-update-5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-0/+56
2020-01-24vfs: add vfs_iocb_iter_[read|write] helper functionsJiufei Xue1-0/+56
2020-01-23fs: allow deduplication of eof block into the end of the destination fileFilipe Manana1-6/+4
2019-08-16vfs: fix page locking deadlocks when deduping filesDarrick J. Wong1-8/+41
2019-06-09vfs: allow copy_file_range to copy across devicesAmir Goldstein1-6/+12
2019-06-09vfs: introduce file_modified() helperAmir Goldstein1-18/+3
2019-06-09vfs: add missing checks to copy_file_rangeAmir Goldstein1-1/+2
2019-06-09vfs: introduce generic_file_rw_checks()Amir Goldstein1-27/+11
2019-06-09vfs: no fallback for ->copy_file_rangeDave Chinner1-9/+16
2019-06-09vfs: introduce generic_copy_file_range()Dave Chinner1-3/+32
2019-05-06vfs: pass ppos=NULL to .read()/.write() of FMODE_STREAM filesKirill Smelkov1-46/+67
2019-04-06fs: stream_open - opener for stream-like files so that read and write can run...Kirill Smelkov1-2/+3
2019-03-12Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-2/+8
2019-03-04get rid of legacy 'get_ds()' functionLinus Torvalds1-3/+3
2019-02-22vfs: Make __vfs_write() staticGeert Uytterhoeven1-2/+2
2019-02-16vfs: fix preadv64v2 and pwritev64v2 compat syscalls with offset == -1Aurelien Jarno1-0/+6
2019-01-03Remove 'type' argument from access_ok() functionLinus Torvalds1-8/+5
2018-12-04vfs: allow some remap flags to be passed to vfs_clone_file_rangeDarrick J. Wong1-1/+1
2018-11-21vfs: vfs_dedupe_file_range() doesn't return EOPNOTSUPPDave Chinner1-8/+7
2018-11-02Merge tag 'xfs-4.20-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linuxLinus Torvalds1-179/+226
2018-11-01Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-3/+16
2018-10-30vfs: clean up generic_remap_file_range_prep return valueDarrick J. Wong1-3/+3
2018-10-30vfs: hide file range comparison functionDarrick J. Wong1-96/+91
2018-10-30vfs: enable remap callers that can handle short operationsDarrick J. Wong1-8/+20
2018-10-30vfs: plumb remap flags through the vfs dedupe functionsDarrick J. Wong1-3/+6
2018-10-30vfs: plumb remap flags through the vfs clone functionsDarrick J. Wong1-4/+9
2018-10-30vfs: make remap_file_range functions take and return bytes completedDarrick J. Wong1-22/+27
2018-10-30vfs: remap helper should update destination inode metadataDarrick J. Wong1-0/+19
2018-10-30vfs: pass remap flags to generic_remap_checksDarrick J. Wong1-1/+1
2018-10-30vfs: pass remap flags to generic_remap_file_range_prepDarrick J. Wong1-7/+7
2018-10-30vfs: combine the clone and dedupe into a single remap_file_rangeDarrick J. Wong1-9/+9
2018-10-30vfs: rename clone_verify_area to remap_verify_areaDarrick J. Wong1-5/+5
2018-10-30vfs: rename vfs_clone_file_prep to be more descriptiveDarrick J. Wong1-4/+4
2018-10-30vfs: skip zero-length dedupe requestsDarrick J. Wong1-0/+5
2018-10-30vfs: avoid problematic remapping requests into partial EOF blockDarrick J. Wong1-0/+33
2018-10-30vfs: exit early from zero length remap operationsDarrick J. Wong1-0/+2
2018-10-30vfs: check file ranges before cloning filesDarrick J. Wong1-42/+13
2018-10-30vfs: vfs_clone_file_prep_inodes should return EINVAL for a clone from beyond EOFDarrick J. Wong1-3/+0
2018-10-25Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-1/+1
2018-10-18Delete invalid assignment statements in do_sendfilenixiaoming1-1/+0
2018-10-17vfs: dedupe should return EPERM if permission is not grantedMark Fasheh1-1/+1
2018-10-17vfs: allow dedupe of user owned read-only filesMark Fasheh1-1/+15
2018-09-24vfs: swap names of {do,vfs}_clone_file_range()Amir Goldstein1-2/+15
2018-08-29asm-generic: Remove unneeded __ARCH_WANT_SYS_LLSEEK macroArnd Bergmann1-1/+1
2018-07-18vfs: export vfs_dedupe_file_range_one() to modulesMiklos Szeredi1-3/+3
2018-07-06vfs: dedupe: extract helper for a single dedupMiklos Szeredi1-40/+49
2018-07-06vfs: dedupe: rationalize argsMiklos Szeredi1-2/+2
2018-07-06vfs: dedupe: return intMiklos Szeredi1-2/+2
2018-07-06vfs: limit size of dedupeMiklos Szeredi1-0/+3
2018-06-12treewide: kmalloc() -> kmalloc_array()Kees Cook1-2/+2
2018-04-15fs: avoid fdput() after failed fdget() in vfs_dedupe_file_range()Zev Weiss1-3/+3
2018-04-02fs: add ksys_p{read,write}64() helpers; remove in-kernel calls to syscallsDominik Brodowski1-4/+16
2018-04-02fs: add ksys_read() helper; remove in-kernel calls to sys_read()Dominik Brodowski1-1/+6
2018-04-02fs: add ksys_lseek() helper; remove in-kernel calls to sys_lseek()Dominik Brodowski1-2/+7
2018-04-02fs: add ksys_write() helper; remove in-kernel calls to sys_write()Dominik Brodowski1-2/+7
2017-11-17Merge branch 'work.iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-21/+0
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-10-11kill iov_shorten()Al Viro1-21/+0
2017-09-26vfs: Return -ENXIO for negative SEEK_HOLE / SEEK_DATA offsetsAndreas Gruenbacher1-2/+2
2017-09-14Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-11/+32
2017-09-04fs: unexport vfs_readv and vfs_writevChristoph Hellwig1-3/+1
2017-09-04fs: unexport vfs_read and vfs_writeChristoph Hellwig1-4/+0
2017-09-04fs: unexport __vfs_read/__vfs_writeChristoph Hellwig1-2/+0
2017-09-04fs: make the buf argument to __kernel_write a void pointerChristoph Hellwig1-1/+1
2017-09-04fs: fix kernel_write prototypeChristoph Hellwig1-3/+3
2017-09-04fs: fix kernel_read prototypeChristoph Hellwig1-5/+3
2017-09-04fs: move kernel_read to fs/read_write.cChristoph Hellwig1-0/+16
2017-09-04fs: move kernel_write to fs/read_write.cChristoph Hellwig1-1/+16
2017-08-31annotate RWF_... flagsChristoph Hellwig1-25/+25
2017-07-07Merge branch 'work.read_write' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-2/+4
2017-07-06move file_{start,end}_write() out of do_iter_write()Al Viro1-2/+4
2017-07-05Merge branch 'work.read_write' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-129/+91
2017-07-03Merge branch 'for-4.13/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-9/+3
2017-06-29fs: implement vfs_iter_write using do_iter_writeChristoph Hellwig1-20/+9
2017-06-29fs: implement vfs_iter_read using do_iter_readChristoph Hellwig1-20/+9
2017-06-29fs: move more code into do_iter_read/do_iter_writeChristoph Hellwig1-45/+28
2017-06-29fs: remove __do_readv_writevChristoph Hellwig1-24/+36
2017-06-29fs: remove do_compat_readv_writevChristoph Hellwig1-26/+16
2017-06-29fs: remove do_readv_writevChristoph Hellwig1-22/+21
2017-06-20fs: Separate out kiocb flags setup based on RWF_* flagsGoldwyn Rodrigues1-9/+3
2017-06-16fs: pass on flags in compat_writevChristoph Hellwig1-1/+1
2017-04-17move compat_rw_copy_check_uvector() over to fs/read_write.cAl Viro1-0/+75
2017-03-03Merge branch 'WIP.sched-core-for-linus' of git://git.kernel.org/pub/scm/linux...Linus Torvalds1-1/+2
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-1/+2
2017-02-20vfs: use helpers for calling f_op->{read,write}_iter()Miklos Szeredi1-6/+6
2017-02-20vfs: pass type instead of fn to do_{loop,iter}_readv_writev()Miklos Szeredi1-19/+18
2017-02-20vfs: extract common parts of {compat_,}do_readv_writev()Miklos Szeredi1-51/+29
2017-02-07vfs: wrap write f_ops with file_{start,end}_write()Amir Goldstein1-2/+2
2017-02-07vfs: deny copy_file_range() for non regular filesAmir Goldstein1-0/+5
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-12-22vfs: fix isize/pos/len checks for reflink & dedupeDarrick J. Wong1-7/+11
2016-12-17Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-5/+226
2016-12-16vfs: fix vfs_clone_file_range() for overlayfs filesAmir Goldstein1-5/+5
2016-12-16vfs: call vfs_clone_file_range() under freeze protectionAmir Goldstein1-3/+0
2016-12-16vfs: allow vfs_clone_file_range() across mount pointsAmir Goldstein1-2/+6
2016-12-16vfs: no mnt_want_write_file() in vfs_{copy,clone}_file_range()Miklos Szeredi1-8/+4
2016-12-09vfs: refactor clone/dedupe_file_range common functionsDarrick J. Wong1-0/+204
2016-12-09fs: try to clone files first in vfs_copy_file_rangeChristoph Hellwig1-5/+22
2016-10-14iov_iter: kernel-doc import_iovec() and rw_copy_check_uvector()Vegard Nossum1-0/+29
2016-07-15x86/syscalls: Add compat_sys_preadv64v2/compat_sys_pwritev64v2H.J. Lu1-0/+18
2016-05-18Merge branch 'work.iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-19/+14
2016-05-17Merge branch 'work.preadv2' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+5
2016-05-02give readdir(2)/getdents(2)/etc. uniform exclusion with lseek()Al Viro1-12/+0
2016-05-01fs: add RWF_DSYNC aand RWF_SYNCChristoph Hellwig1-1/+5
2016-04-03rw_verify_area(): saner calling conventionsAl Viro1-19/+14
2016-03-18Merge branches 'work.lookups', 'work.misc' and 'work.preadv2' into for-nextAl Viro1-48/+149
2016-03-04vfs: add the RWF_HIPRI flag for preadv2/pwritev2Christoph Hellwig1-2/+4
2016-03-04vfs: vfs: Define new syscalls preadv2,pwritev2Milosz Tanski1-35/+126
2016-03-04vfs: pass a flags argument to vfs_readv/vfs_writevChristoph Hellwig1-18/+26
2016-02-27fs: return -EOPNOTSUPP if clone is not supportedChristoph Hellwig1-2/+4
2016-02-20fs: allow no_seek_end_llseek to actually seekWouter van Kesteren1-1/+2
2016-01-22vfs: abort dedupe loop if fatal signals are pendingDarrick J. Wong1-0/+3