aboutsummaryrefslogtreecommitdiffstats
path: root/fs/file_table.c
AgeCommit message (Expand)AuthorFilesLines
2025-10-07fs: update comment in init_file()Zhou Yuhang1-1/+1
2025-09-27Have cc(1) catch attempts to modify ->f_pathAl Viro1-2/+2
2025-09-15backing_file_user_path(): constify struct path *Al Viro1-1/+1
2025-07-31Merge tag 'fsnotify_for_v6.17-rc1' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-1/+1
2025-07-28fsnotify: merge file_set_fsnotify_mode_from_watchers() with open perm hookAmir Goldstein1-1/+1
2025-07-18fs: constify file ptr in backing_file accessor helpersAmir Goldstein1-5/+8
2025-04-21fs: Make file-nr output the total allocated file handlesLi RongQing1-1/+1
2025-03-24Merge tag 'vfs-6.15-rc1.file' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-21/+49
2025-03-24Merge tag 'vfs-6.15-rc1.misc' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-1/+2
2025-03-19fs: predict not reaching the limit in alloc_empty_file()Mateusz Guzik1-1/+2
2025-03-05file: add fput and file_ref_put routines optimized for use when closing a fdMateusz Guzik1-21/+49
2025-02-07fsnotify: disable pre-content and permission events by defaultAmir Goldstein1-0/+5
2025-02-07fsnotify: disable notification by default for all pseudo filesAmir Goldstein1-0/+11
2025-02-01Merge tag 'pull-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-3/+1
2025-01-28treewide: const qualify ctl_tables where applicableJoel Granados1-1/+1
2025-01-27add a string-to-qstr constructorAl Viro1-3/+1
2024-12-22file: flush delayed work in delayed fput()shao mingyin1-2/+3
2024-12-22fs: fix proc_handler for sysctl_nr_openJinliang Zheng1-1/+1
2024-10-30Merge branch 'work.fdtable' into vfs.fileChristian Brauner1-1/+0
2024-10-30fs: port files to file_refChristian Brauner1-9/+25
2024-10-08fs: protect backing files with rcuChristian Brauner1-4/+13
2024-10-07remove pointless includes of <linux/fdtable.h>Al Viro1-1/+0
2024-09-18Merge tag 'slab-for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/vb...Linus Torvalds1-3/+8
2024-09-16Merge tag 'vfs-6.12.file' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-5/+11
2024-09-12fs: add f_pipeChristian Brauner1-0/+7
2024-09-10file: port to struct kmem_cache_argsChristian Brauner1-3/+8
2024-08-29fs: use kmem_cache_create_rcu()Christian Brauner1-3/+3
2024-08-28file: reclaim 24 bytes from f_ownerChristian Brauner1-2/+1
2024-08-19Fixed: fs: file_table_c: Missing blank line warnings and struct declaration i...Mohit04041-1/+4
2024-07-24sysctl: treewide: constify the ctl_table argument of proc_handlersJoel Granados1-1/+1
2024-03-12Merge tag 'lsm-pr-20240312' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-2/+1
2024-02-25file: add alloc_file_pseudo_noaccount()Christian Brauner1-0/+24
2024-02-25file: prepare for new helperChristian Brauner1-18/+41
2024-02-15ima: Move to LSM infrastructureRoberto Sassu1-2/+0
2024-02-15security: Introduce file_release hookRoberto Sassu1-0/+1
2024-01-11Merge tag 'pull-dcache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro...Linus Torvalds1-5/+0
2024-01-10Merge tag 'sysctl-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-1/+0
2023-12-28fs: Remove the now superfluous sentinel elements from ctl_table arrayJoel Granados1-1/+0
2023-12-12fs: replace f_rcuhead with f_task_workChristian Brauner1-3/+3
2023-12-12file: massage cleanup of files that failed to openAl Viro1-12/+4
2023-11-25d_alloc_pseudo(): move setting ->d_op there from the (sole) callerAl Viro1-5/+0
2023-11-02Merge tag 'mm-nonmm-stable-2023-11-02-14-08' of git://git.kernel.org/pub/scm/...Linus Torvalds1-1/+1
2023-10-19fs: store real path instead of fake path in backing file f_pathAmir Goldstein1-6/+6
2023-10-19backing file: free directlyChristian Brauner1-8/+1
2023-10-19file: convert to SLAB_TYPESAFE_BY_RCUChristian Brauner1-17/+23
2023-10-19vfs: shave work on failed file openMateusz Guzik1-0/+12
2023-10-18treewide: mark stuff as __ro_after_initAlexey Dobriyan1-1/+1
2023-08-08fs: use __fput_sync in close(2)Linus Torvalds1-4/+1
2023-07-02fs: move cleanup from init_file() into its callersAmir Goldstein1-4/+10
2023-06-19fs: use backing_file container for internal files with "fake" f_pathAmir Goldstein1-2/+48
2023-06-19fs: move kmem_cache_zalloc() into alloc_empty_file*() helpersAmir Goldstein1-15/+26
2023-01-11filelock: move file locking definitions to separate header fileJeff Layton1-0/+1
2022-08-16locks: fix TOCTOU race when granting write leaseAmir Goldstein1-6/+1
2022-08-03Merge tag 'pull-work.iov_iter-base' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-8/+9
2022-07-16fs: remove no_llseekJason A. Donenfeld1-1/+1
2022-07-16fs: clear or set FMODE_LSEEK based on llseek functionJason A. Donenfeld1-0/+2
2022-06-10keep iocb_flags() result cached in struct fileAl Viro1-0/+1
2022-06-10struct file: use anonymous union member for rcuhead and llistAl Viro1-8/+8
2022-06-04Merge tag 'pull-18-rc1-work.fd' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-7/+2
2022-05-14fs: remove fget_many and fput_many interfaceGou Hao1-7/+2
2022-04-07SUNRPC: Ensure we flush any closed sockets before xs_xprt_free()Trond Myklebust1-0/+1
2022-02-17fs/file_table: fix adding missing kmemleak_not_leak()Luis Chamberlain1-2/+6
2022-02-09Fix regression due to "fs: move binfmt_misc sysctl to its own file"Domenico Andreoli1-0/+2
2022-01-22fs: move fs stat sysctls to file_table.cLuis Chamberlain1-8/+39
2020-10-25epoll: take epitem list out of struct fileAl Viro1-1/+0
2020-10-17task_work: cleanup notification modesJens Axboe1-1/+1
2020-06-29Revert "fs: Do not check if there is a fsnotify watcher on pseudo inodes"Mel Gorman1-1/+1
2020-06-16fs: Do not check if there is a fsnotify watcher on pseudo inodesMel Gorman1-1/+1
2020-06-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-nextLinus Torvalds1-2/+2
2020-06-02vfs: track per-sb writeback errors and report them to syncfsJeff Layton1-0/+1
2020-04-27sysctl: pass kernel pointers to ->proc_handlerChristoph Hellwig1-2/+2
2019-08-19vfs: Export flush_delayed_fput for use by knfsd.Trond Myklebust1-0/+1
2019-05-21treewide: Add SPDX license identifier for missed filesThomas Gleixner1-0/+1
2019-03-20vfs: syscall: Add open_tree(2) to reference or clone a mountAl Viro1-3/+6
2019-02-28fs: add fget_many() and fput_many()Jens Axboe1-2/+7
2018-12-28mm: convert totalram_pages and totalhigh_pages variables to atomicArun KS1-1/+1
2018-12-28mm: reference totalram_pages and managed_pages once per functionArun KS1-3/+4
2018-08-21Merge tag 'ovl-update-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-21/+48
2018-07-18vfs: make open_with_fake_path() not contribute to nr_filesMiklos Szeredi1-21/+48
2018-07-12make alloc_file() staticAl Viro1-2/+1
2018-07-12new helper: alloc_file_clone()Al Viro1-0/+11
2018-07-12new wrapper: alloc_file_pseudo()Al Viro1-0/+27
2018-07-12fold put_filp() into fput()Al Viro1-10/+5
2018-07-12introduce FMODE_OPENEDAl Viro1-0/+1
2018-07-12pass ->f_flags value to alloc_empty_file()Al Viro1-4/+4
2018-07-12pass creds to get_empty_filp(), make sure dentry_open() passes the right credsAl Viro1-3/+2
2018-07-12alloc_file(): switch to passing O_... flags instead of FMODE_... modeAl Viro1-8/+9
2018-07-10fold security_file_free() into file_free()Al Viro1-6/+4
2017-12-07vfs: remove unused hardirq.hYang Shi1-1/+0
2017-11-15fs, mm: account filp cache to kmemcgShakeel Butt1-1/+1
2017-11-08ima: call ima_file_free() prior to calling fasyncMimi Zohar1-1/+1
2017-08-28fput: Don't reinvent the wheel but use existing llist APIByungchul Park1-7/+5
2017-07-06fs: new infrastructure for writeback error handling and reportingJeff Layton1-0/+1
2017-03-02sched/headers: Prepare to remove <linux/cred.h> inclusion from <linux/sched.h>Ingo Molnar1-0/+1
2016-12-05constify alloc_file()Al Viro1-1/+1
2015-08-07fs, file table: reinit files_stat.max_files after deferred memory initialisationMel Gorman1-9/+15
2015-06-23remove the pointless include of lglock.hAl Viro1-1/+0
2015-04-11->aio_read and ->aio_write removedAl Viro1-2/+2
2014-10-13Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-10/+2
2014-10-12fs/file_table.c: Update alloc_file() commentEric Biggers1-10/+2
2014-09-08percpu_counter: add @gfp to percpu_counter_init()Tejun Heo1-1/+1
2014-06-12Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-0/+6
2014-06-06fs: convert use of typedef ctl_table to struct ctl_tableJoe Perches1-2/+2
2014-05-06new methods: ->read_iter() and ->write_iter()Al Viro1-2/+4
2014-05-06replace checking for ->read/->aio_read presence with check in ->f_modeAl Viro1-0/+4
2014-04-12Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-39/+4
2014-04-04Merge branch 'locks-3.15' of git://git.samba.org/jlayton/linuxLinus Torvalds1-1/+1
2014-04-01get rid of files_defer_init()Al Viro1-1/+0
2014-04-01mark struct file that had write access grabbed by open()Al Viro1-33/+4
2014-04-01get rid of DEBUG_WRITECOUNTAl Viro1-5/+0
2014-04-01don't bother with {get,put}_write_access() on non-regular filesAl Viro1-2/+2
2014-03-31locks: rename locks_remove_flock to locks_remove_fileJeff Layton1-1/+1
2014-03-10vfs: atomic f_pos accesses as per POSIXLinus Torvalds1-0/+1
2013-11-13Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-127/+2
2013-11-09get rid of s_files and files_lockAl Viro1-125/+0
2013-10-24file->f_op is never NULL...Al Viro1-2/+2
2013-10-20nfsd regression since delayed fput()Al Viro1-2/+2
2013-09-11fs/file_table.c:fput(): make comment more truthfulAndrew Morton1-2/+1
2013-09-03only regular files with FMODE_WRITE need to be on s_filesAl Viro1-2/+4
2013-07-13fput: turn "list_head delayed_fput_list" into llist_headOleg Nesterov1-15/+10
2013-07-13fs/file_table.c:fput(): add commentAndrew Morton1-0/+6
2013-06-29Replace a bunch of file->dentry->d_inode refs with file_inode()David Howells1-1/+1
2013-06-15fput: task_work_add() can fail if the caller has passed exit_task_work()Oleg Nesterov1-9/+10
2013-03-01cache the value of file_inode() in struct fileAl Viro1-0/+2
2013-02-22fs: Preserve error code in get_empty_filp(), part 2Anatol Pomozov1-1/+1
2013-02-22propagate error from get_empty_filp() to its callersAl Viro1-14/+13
2013-02-22new helper: file_inode(file)Al Viro1-1/+1
2012-12-20fs: Fix imbalance in freeze protection in mark_files_ro()Jan Kara1-1/+1
2012-10-10lglock: add DEFINE_STATIC_LGLOCK()Lai Jiangshan1-1/+1
2012-10-02Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/...Linus Torvalds1-1/+1
2012-09-26take fget() and friends to fs/file.cAl Viro1-106/+0
2012-09-07vfs: move ima_file_free before releasing the fileMimi Zohar1-1/+1
2012-07-31fs: Add freezing handling to mnt_want_write() / mnt_drop_write()Jan Kara1-1/+1
2012-07-29uninline file_free_rcu()Al Viro1-1/+1
2012-07-22switch fput to task_work_addAl Viro1-2/+70
2012-07-14mark_files_ro(): don't bother with mntget/mntputAl Viro1-8/+1
2012-05-29brlocks/lglocks: API cleanupsAndi Kleen1-8/+8
2012-05-29brlocks/lglocks: turn into functionsAndi Kleen1-1/+0
2012-03-20vfs: drop_file_write_access() made staticAl Viro1-2/+1
2012-01-06vfs: prevent remount read-only if pending removesMiklos Szeredi1-23/+0
2011-07-26atomic: use <linux/atomic.h>Arun Sharma1-1/+1
2011-03-16Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+3
2011-03-16fix cdev leak on O_PATH final fput()Miklos Szeredi1-1/+3
2011-03-16Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmo...Linus Torvalds1-1/+4
2011-03-15Allow passing O_PATH descriptors via SCM_RIGHTS datagramsAl Viro1-0/+2
2011-03-15New kind of open files - "location only".Al Viro1-5/+48
2011-03-08Merge branch 'master'; commit 'v2.6.38-rc7' into nextJames Morris1-2/+2
2011-02-10IMA: maintain i_readcount in the VFS layerMimi Zohar1-1/+4
2011-02-04CRED: Fix kernel panic upon security_file_alloc() failure.Tetsuo Handa1-1/+1
2011-01-17fs: Remove unlikely() from fget_light()Steven Rostedt1-1/+1
2010-10-26fs: allow for more than 2^31 filesEric Dumazet1-10/+7
2010-08-18fs: scale files_lockNick Piggin1-18/+90
2010-08-18fs: cleanup files_lock lockingNick Piggin1-24/+18
2010-08-12Revert "fsnotify: store struct file not struct path"Linus Torvalds1-9/+0
2010-08-11vfs: improve comment describing fget_light()Tony Battersby1-5/+14
2010-07-28vfs/fsnotify: fsnotify_close can delay the final work in fputEric Paris1-0/+9
2010-05-27get rid of the magic around f_count in aioAl Viro1-11/+10
2010-03-06vfs: take f_lock on modifying f_mode after open timeWu Fengguang1-0/+2
2010-02-07Take ima_file_free() to proper place.Al Viro1-0/+1
2009-12-22alloc_file(): simplify handling of mnt_clone_write() errorsRoland Dreier1-3/+1
2009-12-16re-export alloc_file()Roland Dreier1-0/+1
2009-12-16Untangling ima mess, part 1: alloc_file()Al Viro1-0/+2
2009-12-16fs: move get_empty_filp() deffinition to internal.hEric Paris1-0/+2
2009-12-16switch alloc_file() to passing struct pathAl Viro1-7/+6
2009-12-16get rid of init_file()Al Viro1-28/+2
2009-12-16unexport get_empty_filp()Al Viro1-2/+0
2009-10-25LSM: imbed ima calls in the security hooksMimi Zohar1-2/+0
2009-09-24sysctl: remove "struct file *" argument of ->proc_handlerAlexey Dobriyan1-3/+3
2009-06-11fs: move mark_files_ro into file_table.cnpiggin@suse.de1-0/+38
2009-06-11fs: introduce mnt_clone_writenpiggin@suse.de1-1/+1
2009-03-30trivial: remove unused variable 'path' in alloc_file()Tero Roponen1-1/+0
2009-03-26Merge branch 'bkl-removal' of git://git.lwn.net/linux-2.6Linus Torvalds1-0/+1
2009-03-16Rename struct file->f_ep_lockJonathan Corbet1-0/+1
2009-02-06Merge branch 'master' into nextJames Morris1-1/+9
2009-02-06integrity: IMA hooksMimi Zohar1-0/+2
2008-12-31filp_cachep can be static in fs/file_table.cEric Dumazet1-1/+9
2008-11-14CRED: Use creds in file structsDavid Howells1-3/+4
2008-11-14CRED: Wrap current->cred and a few other accessorsDavid Howells1-4/+3
2008-11-14CRED: Separate task security context from task_structDavid Howells1-2/+2
2008-11-01saner FASYNC handling on file closeAl Viro1-0/+4
2008-10-21[PATCH] introduce fmode_t, do annotationsAl Viro1-2/+2
2008-07-26[PATCH] f_count may wrap aroundAl Viro1-5/+5
2008-05-01[PATCH] split linux/file.hAl Viro1-0/+1
2008-04-19[PATCH] r/o bind mounts: debugging for missed callsDave Hansen1-2/+9
2008-04-19[PATCH] r/o bind mounts: elevate write count for open()sDave Hansen1-0/+14
2008-04-19[PATCH] r/o bind mounts: create helper to drop file write accessDave Hansen1-2/+19
2008-03-19[PATCH] fix up new filp allocatorsDave Hansen1-0/+6
2008-02-08fs: remove fastcall, it is always emptyHarvey Harrison1-4/+4
2007-10-19fs/file_table.c: use list_for_each_entry() instead of list_for_each()Matthias Kaehlcke1-3/+2
2007-10-17r/o bind mounts: filesystem helpers for custom 'struct file'sDave Hansen1-0/+60
2007-10-17fs: use kmem_cache_zalloc insteadDenis Cheng1-2/+1
2007-10-17lib: percpu_counter_sum_positivePeter Zijlstra1-1/+1
2007-05-08header cleaning: don't include smp_lock.h when not usedRandy Dunlap1-1/+0
2006-12-08[PATCH] VFS: change struct file to use struct pathJosef "Jeff" Sipek1-5/+5
2006-10-02[PATCH] file: modify struct fown_struct to use a struct pidEric W. Biederman1-0/+1
2006-09-27[PATCH] inode-diet: Move i_cdev into a unionTheodore Ts'o1-1/+1
2006-06-30Remove obsolete #include <linux/config.h>Jörn Engel1-1/+0
2006-06-23[PATCH] percpu counter data type changes to suppport more than 2**31 ext3 fre...Mingming Cao1-1/+1
2006-03-23[PATCH] get_empty_filp tweaks, inline epoll_init_file()Benjamin LaHaise1-4/+6
2006-03-08[PATCH] fix file countingDipankar Sarma1-32/+55