aboutsummaryrefslogtreecommitdiffstats
path: root/fs/kernfs/file.c
AgeCommit message (Expand)AuthorFilesLines
2025-09-06kernfs: Fix UAF in polling when open file is releasedChen Ridong1-20/+38
2025-05-21kernfs: Relax constraint in draining guardMichal Koutný1-1/+2
2025-02-15kernfs: Use RCU to access kernfs_node::name.Sebastian Andrzej Siewior1-1/+3
2025-02-15kernfs: Acquire kernfs_rwsem in kernfs_notify_workfn().Sebastian Andrzej Siewior1-0/+2
2025-01-27add a string-to-qstr constructorAl Viro1-1/+1
2024-04-14kernfs: annotate different lockdep class for of->mutex of writable filesAmir Goldstein1-1/+8
2024-01-30kernfs: fix false-positive WARN(nr_mmapped) in kernfs_drain_open_filesNeel Natu1-3/+5
2024-01-02kernfs: fix reference to renamed functionAhelenia Ziemiańska1-1/+1
2023-11-03Merge tag 'driver-core-6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+28
2023-10-25kernfs: drop shared NUMA mempolicy hooksHugh Dickins1-49/+0
2023-10-05kernfs: sysfs: support custom llseek method for sysfs entriesValentine Sinitsyn1-1/+28
2023-05-24tty, proc, kernfs, random: Use copy_splice_read()David Howells1-1/+1
2023-03-29kernfs: Use a per-fs rwsem to protect per-fs list of kernfs_super_info.Imran Khan1-2/+2
2022-11-23kernfs: fix all kernel-doc warnings and multiple typosRandy Dunlap1-7/+11
2022-09-01kernfs: Skip kernfs_drain_open_files() more aggressivelyTejun Heo1-20/+45
2022-09-01kernfs: Refactor kernfs_get_open_node()Tejun Heo1-14/+11
2022-09-01kernfs: Drop unnecessary "mutex" local variable initializationTejun Heo1-4/+5
2022-09-01kernfs: Simply by replacing kernfs_deref_open_node() with of_on()Tejun Heo1-43/+13
2022-07-28kernfs: Fix typo 'the the' in commentSlark Xiao1-1/+1
2022-07-06Revert "kernfs: Change kernfs_notify_list to llist."Imran Khan1-20/+27
2022-06-27kernfs: Replace global kernfs_open_file_mutex with hashed mutexes.Imran Khan1-14/+3
2022-06-27kernfs: Introduce interface to access global kernfs_open_file_mutex.Imran Khan1-18/+38
2022-06-27kernfs: Change kernfs_notify_list to llist.Imran Khan1-27/+20
2022-06-27kernfs: make ->attr.open RCU protected.Imran Khan1-46/+101
2022-06-27kernfs/file.c: remove redundant error return counter assignmentLin Feng1-1/+0
2022-05-06kernfs: Rename kernfs_put_open_node to kernfs_unlink_open_file.Imran Khan1-9/+19
2022-04-27kernfs: Remove reference counting for kernfs_open_node.Imran Khan1-14/+9
2022-04-01Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-6/+1
2022-03-18kernfs: fix typos in commentsJulia Lawall1-1/+1
2022-02-01seq_file: fix NULL pointer arithmetic warningMaíra Canal1-6/+1
2021-11-24kernfs: switch global kernfs_rwsem lock to per-fs lockMinchan Kim1-2/+4
2021-07-27kernfs: switch kernfs to use an rwsemIan Kent1-2/+2
2021-01-21kernfs: wire up ->splice_read and ->splice_writeChristoph Hellwig1-0/+2
2021-01-21kernfs: implement ->write_iterChristoph Hellwig1-18/+10
2021-01-21kernfs: implement ->read_iterChristoph Hellwig1-23/+12
2020-07-27fsnotify: pass dir and inode arguments to fsnotify()Amir Goldstein1-2/+3
2020-07-27fsnotify: create helper fsnotify_inode()Amir Goldstein1-4/+2
2020-07-27fsnotify: send event to parent and child with single callbackAmir Goldstein1-4/+6
2020-07-15kernfs: do not call fsnotify() with name without a parentAmir Goldstein1-1/+1
2020-06-09mmap locking API: convert mmap_sem commentsMichel Lespinasse1-2/+2
2020-04-23kernfs: Change kernfs_node lockdep name to "kn->active"Waiman Long1-1/+1
2019-11-12kernfs: convert kernfs_node->id from union kernfs_node_id to u64Tejun Heo1-2/+2
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 428Thomas Gleixner1-2/+1
2019-04-26fsnotify(): switch to passing const struct qstr * for file_nameAl Viro1-2/+4
2019-03-05fs: kernfs: add poll file operationJohannes Weiner1-11/+20
2018-11-27kernfs: Improve kernfs_notify() poll notification latencyRadu Rendec1-12/+11
2018-07-20kernfs: allow creating kernfs objects with arbitrary uid/gidDmitry Torokhov1-2/+6
2018-04-23fs: kernfs: Adding new return type vm_fault_tSouptick Joarder1-4/+4
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-2/+2
2018-02-09Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2018-01-19kernfs: fix regression in kernfs_fop_write caused by wrong typeIvan Vecera1-1/+1
2017-11-27fs: annotate ->poll() instancesAl Viro1-1/+1
2017-09-07Merge branch 'for-4.14/block' of git://git.kernel.dk/linux-blockLinus Torvalds1-5/+5
2017-08-28kernfs: Clarify lockdep name for kn->countWaiman Long1-1/+1
2017-07-29kernfs: introduce kernfs_node_idShaohua Li1-2/+2
2017-07-29kernfs: don't set dentry->d_fsdataShaohua Li1-3/+3
2017-03-17kernfs: Check KERNFS_HAS_RELEASE before calling kernfs_release_file()Vaibhav Jain1-1/+2
2017-03-02sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linu...Ingo Molnar1-1/+1
2017-02-27Merge branch 'for-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/c...Linus Torvalds1-7/+55
2017-02-24mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmfDave Jiang1-7/+6
2017-02-21kernfs: fix locking around kernfs_ops->release() callbackTejun Heo1-5/+14
2016-12-27kernfs: add kernfs_ops->open/release() callbacksTejun Heo1-6/+45
2016-12-27kernfs: make kernfs_open_file->mmapped a bitfieldTejun Heo1-1/+1
2016-10-27kernfs: Add noop_fsync to supported kernfs_file_fopsTony Luck1-0/+1
2016-08-31kernfs: don't depend on d_find_any_alias() when generating notificationsTejun Heo1-7/+21
2016-04-30kernfs: Move faulting copy_user operations outside of the mutexChris Wilson1-22/+29
2015-05-24kernfs: remove outdated and confusing commentWolfram Sang1-1/+0
2015-03-16kernfs: handle poll correctly on 'direct_read' files.NeilBrown1-0/+1
2015-02-13kernfs: remove KERNFS_STATIC_NAMETejun Heo1-4/+0
2014-12-17vm_area_operations: kill ->migrate()Al Viro1-22/+0
2014-11-07sysfs/kernfs: make read requests on pre-alloc files use the buffer.NeilBrown1-9/+21
2014-11-07sysfs/kernfs: allow attributes to request write buffer be pre-allocated.NeilBrown1-15/+30
2014-07-09kernfs: kernel-doc warning fixFabian Frederick1-1/+1
2014-07-02kernfs: kernfs_notify() must be useable from non-sleepable contextsTejun Heo1-14/+55
2014-05-23Merge 3.15-rc6 into driver-core-nextGreg Kroah-Hartman1-7/+10
2014-05-13kernfs, sysfs, cgroup: restrict extra perm check on open to sysfsTejun Heo1-7/+10
2014-04-27Merge 3.15-rc3 into staging-nextGreg Kroah-Hartman1-0/+2
2014-04-25kernfs: add back missing error check in kernfs_fop_mmap()Tejun Heo1-0/+2
2014-04-25kernfs: make kernfs_notify() trigger inotify events tooTejun Heo1-6/+35
2014-03-08kernfs: cache atomic_write_len in kernfs_open_fileTejun Heo1-31/+32
2014-02-07kernfs: implement kernfs_ops->atomic_write_lenTejun Heo1-18/+31
2014-02-07kernfs: remove kernfs_addrm_cxtTejun Heo1-5/+1
2014-01-17kernfs: associate a new kernfs_node with its parent on creationTejun Heo1-3/+2
2014-01-14kernfs: fix get_active failure handling in kernfs_seq_*()Tejun Heo1-7/+44
2014-01-13Revert "kernfs: fix get_active failure handling in kernfs_seq_*()"Greg Kroah-Hartman1-44/+7
2014-01-13Revert "kernfs: remove KERNFS_REMOVED"Greg Kroah-Hartman1-7/+3
2014-01-13Revert "kernfs: invoke kernfs_unmap_bin_file() directly from __kernfs_remove()"Greg Kroah-Hartman1-1/+4
2014-01-13Revert "kernfs: remove kernfs_addrm_cxt"Greg Kroah-Hartman1-1/+9
2014-01-10kernfs: remove kernfs_addrm_cxtTejun Heo1-9/+1
2014-01-10kernfs: invoke kernfs_unmap_bin_file() directly from __kernfs_remove()Tejun Heo1-4/+1
2014-01-10kernfs: remove KERNFS_REMOVEDTejun Heo1-3/+7
2014-01-10kernfs: fix get_active failure handling in kernfs_seq_*()Tejun Heo1-7/+44
2013-12-17kernfs: mark static names with KERNFS_STATIC_NAMETejun Heo1-8/+15
2013-12-11kernfs: s/sysfs/kernfs/ in internal functions and whatever is leftTejun Heo1-60/+61
2013-12-11kernfs: s/sysfs/kernfs/ in global variablesTejun Heo1-1/+1
2013-12-11kernfs: s/sysfs/kernfs/ in constantsTejun Heo1-9/+9
2013-12-11kernfs: s/sysfs/kernfs/ in various data structuresTejun Heo1-86/+86
2013-12-11kernfs: drop s_ prefix from kernfs_node membersTejun Heo1-26/+26
2013-12-11kernfs: s/sysfs_dirent/kernfs_node/ and rename its friends accordinglyTejun Heo1-93/+93
2013-12-10sysfs: bail early from kernfs_file_mmap() to avoid spurious lockdep warningTejun Heo1-4/+14
2013-12-08sysfs, kernfs: remove duplicated include from file.cWei Yongjun1-1/+0
2013-11-29sysfs, kernfs: make inode number ida per kernfs_rootTejun Heo1-2/+2
2013-11-29sysfs, kernfs: move file core code to fs/kernfs/file.cTejun Heo1-0/+805
2013-11-27sysfs, kernfs: add skeletons for kernfsTejun Heo1-0/+9