aboutsummaryrefslogtreecommitdiffstats
path: root/fs/kernfs/dir.c
AgeCommit message (Expand)AuthorFilesLines
2024-01-30kernfs: RCU protect kernfs_nodes and avoid kernfs_idr_lock in kernfs_find_and...Tejun Heo1-11/+20
2024-01-11Revert "kernfs: convert kernfs_idr_lock to an irq safe raw spinlock"Tejun Heo1-13/+10
2024-01-04kernfs: convert kernfs_idr_lock to an irq safe raw spinlockAndrea Righi1-10/+13
2023-12-15kernfs: Convert kernfs_path_from_node_locked() from strlcpy() to strscpy()Kees Cook1-17/+17
2023-12-15kernfs: Convert kernfs_name_locked() from strlcpy() to strscpy()Kees Cook1-5/+5
2023-12-15kernfs: Convert kernfs_walk_ns() from strlcpy() to strscpy()Kees Cook1-3/+3
2023-12-15fs/kernfs/dir: obey S_ISGIDMax Kellermann1-0/+12
2023-09-01Merge tag 'driver-core-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-0/+4
2023-08-12kernfs: fix missing kernfs_iattr_rwsem lockingIan Kent1-0/+4
2023-08-10tmpfs,xattr: enable limited user extended attributesHugh Dickins1-1/+1
2023-05-31kernfs: fix missing kernfs_idr_lock to remove an ID from the IDRMuchun Song1-0/+2
2023-04-27Merge tag 'driver-core-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-9/+17
2023-04-03fs: consolidate duplicate dt_type helpersJeff Layton1-7/+1
2023-03-29kernfs: change kernfs_rename_lock into a read-write lock.Imran Khan1-9/+9
2023-03-29kernfs: Use a per-fs rwsem to protect per-fs list of kernfs_super_info.Imran Khan1-0/+1
2023-03-29kernfs: Introduce separate rwsem to protect inode attributes.Imran Khan1-0/+7
2023-02-24Merge tag 'driver-core-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-3/+0
2023-01-19kernfs: remove an unused if statement in kernfs_path_from_node_locked()Zhen Lei1-3/+0
2023-01-19fs: port ->rename() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->mkdir() to pass mnt_idmapChristian Brauner1-1/+1
2022-11-23kernfs: fix all kernel-doc warnings and multiple typosRandy Dunlap1-32/+50
2022-11-21Merge 6.1-rc6 into driver-core-nextGreg Kroah-Hartman1-2/+12
2022-11-10kernfs: Fix spurious lockdep warning in kernfs_find_and_get_node_by_id()Tejun Heo1-2/+12
2022-10-20kernfs: dont take i_lock on revalidateIan Kent1-7/+17
2022-09-24kernfs: fix use-after-free in __kernfs_removeChristian A. Ehrhardt1-1/+4
2022-09-01kernfs: Implement kernfs_show()Tejun Heo1-1/+36
2022-09-01kernfs: Factor out kernfs_activate_one()Tejun Heo1-10/+17
2022-09-01kernfs: Add KERNFS_REMOVING flagsTejun Heo1-14/+7
2022-09-01kernfs: Improve kernfs_drain() and always call on removalTejun Heo1-12/+12
2022-09-01kernfs: Skip kernfs_drain_open_files() more aggressivelyTejun Heo1-1/+2
2022-07-01kernfs: fix potential NULL dereference in __kernfs_removeYushan Zhou1-2/+5
2022-05-19kernfs: Separate kernfs_pr_cont_buf and rename_lock.Hao Luo1-12/+19
2022-04-27kernfs: fix NULL dereferencing in kernfs_removeMinchan Kim1-1/+6
2022-02-23kernfs: move struct kernfs_root out of the public view.Greg Kroah-Hartman1-0/+9
2021-12-03kernfs: prevent early freeing of root nodeMinchan Kim1-1/+7
2021-11-24kernfs: switch global kernfs_rwsem lock to per-fs lockMinchan Kim1-45/+65
2021-10-04kernfs: don't create a negative dentry if inactive node existsIan Kent1-1/+8
2021-09-28kernfs: also call kernfs_set_rev() for positive dentryHou Tao1-2/+7
2021-07-27kernfs: dont call d_splice_alias() under kernfs node lockIan Kent1-4/+2
2021-07-27kernfs: switch kernfs to use an rwsemIan Kent1-50/+50
2021-07-27kernfs: use VFS negative dentry cachingIan Kent1-20/+35
2021-07-27kernfs: add a revision to identify directory node changesIan Kent1-0/+2
2021-06-15kernfs: move revalidate to be near lookupIan Kent1-43/+43
2021-01-24fs: make helpers idmap mount awareChristian Brauner1-2/+4
2020-12-09fs/kernfs: remove the double check of dentry->inodeHui Su1-2/+1
2020-11-09kernfs: bring names in comments in line with codeWillem de Bruijn1-1/+1
2020-01-14fs/kernfs/dir.c: Clean code by removing always true conditionMateusz Nosek1-1/+1
2019-11-26Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-2/+2
2019-11-12kernfs: use 64bit inos if ino_t is 64bitTejun Heo1-13/+29
2019-11-12kernfs: combine ino/id lookup functions into kernfs_find_and_get_node_by_id()Tejun Heo1-4/+13
2019-11-12kernfs: convert kernfs_node->id from union kernfs_node_id to u64Tejun Heo1-5/+5
2019-11-12kernfs: kernfs_find_and_get_node_by_ino() should only look up activated nodesTejun Heo1-1/+7
2019-11-12kernfs: use dumber locking for kernfs_find_and_get_node_by_ino()Tejun Heo1-36/+9
2019-11-12kernfs: fix ino wrap-around detectionTejun Heo1-3/+2
2019-10-09locking/lockdep: Remove unused @nested argument from lock_release()Qian Cai1-2/+2
2019-07-25fs: kernfs: Fix possible null-pointer dereferences in kernfs_path_from_node_l...Jia-Ju Bai1-2/+4
2019-07-25kernfs: fix potential null pointer dereferencePeng Wang1-2/+1
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 428Thomas Gleixner1-2/+1
2019-05-07Merge tag 'selinux-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-11/+13
2019-04-25kernfs: fix barrier usage in __kernfs_new_node()Andrea Parri1-3/+2
2019-03-20kernfs: initialize security of newly created nodesOndrej Mosnacek1-2/+9
2019-03-20kernfs: use simple_xattrs for security attributesOndrej Mosnacek1-3/+0
2019-03-20kernfs: clean up struct kernfs_iattrsOndrej Mosnacek1-6/+4
2019-02-08kernfs: Allocating memory for kernfs_iattrs with kmem_cache.Ayush Mittal1-1/+1
2018-07-20kernfs: allow creating kernfs objects with arbitrary uid/gidDmitry Torokhov1-3/+26
2018-06-05vfs: change inode times to use struct timespec64Deepa Dinamani1-2/+2
2017-07-29kernfs: introduce kernfs_node_idShaohua Li1-5/+5
2017-07-29kernfs: don't set dentry->d_fsdataShaohua Li1-16/+9
2017-07-29kernfs: add an API to get kernfs node from inode numberShaohua Li1-0/+57
2017-07-29kernfs: implement i_generationShaohua Li1-1/+9
2017-07-29kernfs: use idr instead of ida to manage inode numberShaohua Li1-5/+12
2017-02-27Merge branch 'for-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/c...Linus Torvalds1-1/+1
2017-02-10kernfs: handle null pointers while printing node name and pathKonstantin Khlebnikov1-0/+10
2016-12-27kernfs: add kernfs_ops->open/release() callbacksTejun Heo1-1/+1
2016-10-14Merge branch 'for-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cg...Linus Torvalds1-67/+17
2016-10-10Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+5
2016-10-07vfs: Remove {get,set,remove}xattr inode operationsAndreas Gruenbacher1-3/+0
2016-10-06kernfs: Switch to generic xattr handlersAndreas Gruenbacher1-3/+3
2016-09-27fs: rename "rename2" i_op to "rename"Miklos Szeredi1-1/+1
2016-09-27fs: make remaining filesystems use .rename2Miklos Szeredi1-2/+6
2016-08-10kernfs: remove kernfs_path_len()Tejun Heo1-23/+0
2016-08-10kernfs: make kernfs_path*() behave in the style of strlcpy()Tejun Heo1-44/+17
2016-06-10vfs: make the string hashes salt the hashLinus Torvalds1-2/+2
2016-05-20Merge tag 'driver-core-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-3/+5
2016-05-17Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-15/+2
2016-05-09kernfs: no point locking directory around that generic_file_llseek()Al Viro1-15/+2
2016-05-02kernfs_path_from_node_locked: don't overwrite nlenSerge Hallyn1-3/+3
2016-03-29fs: kernfs: Replace CURRENT_TIME by current_fs_time()Deepa Dinamani1-3/+5
2016-03-21Merge branch 'for-4.6-ns' of git://git.kernel.org/pub/scm/linux/kernel/git/tj...Linus Torvalds1-31/+160
2016-02-16kernfs: Add API to generate relative kernfs pathAditya Kali1-31/+160
2016-02-07kernfs: make kernfs_walk_ns() use kernfs_pr_cont_buf[]Tejun Heo1-5/+14
2016-01-22wrappers for ->i_mutex accessAl Viro1-2/+2
2016-01-14Revert "kernfs: do not account ino_ida allocations to memcg"Vladimir Davydov1-8/+1
2015-11-20kernfs: implement kernfs_walk_and_get()Tejun Heo1-0/+46
2015-08-18kernfs: implement kernfs_path_len()Tejun Heo1-0/+23
2015-07-03Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-1/+37
2015-07-01kernfs: Add support for always empty directories.Eric W. Biederman1-1/+37
2015-05-14kernfs: do not account ino_ida allocations to memcgVladimir Davydov1-1/+8
2015-04-15VFS: normal filesystems (and lustre): d_inode() annotationsDavid Howells1-1/+1
2015-02-13kernfs: remove KERNFS_STATIC_NAMETejun Heo1-12/+8
2015-02-13kernfs: convert node name allocation to kstrdup_constAndrzej Hajda1-6/+6
2015-01-09kernfs: Fix kernfs_name_compareRasmus Villemoes1-4/+8
2014-11-19switch d_materialise_unique() users to d_splice_alias()Al Viro1-1/+1
2014-10-09vfs: Remove unnecessary calls of check_submounts_and_dropEric W. Biederman1-11/+0
2014-04-27Merge 3.15-rc3 into staging-nextGreg Kroah-Hartman1-3/+6
2014-04-25kernfs: fix a subdir count leakJianyu Zhan1-3/+6
2014-04-25kernfs: implement kernfs_root->supers listTejun Heo1-0/+1
2014-04-03Merge branch 'for-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/c...Linus Torvalds1-0/+1
2014-03-08kernfs: fix off by one error.Richard Cochran1-1/+1
2014-02-14kernfs: fix kernfs_node_from_dentry()Li Zefan1-1/+1
2014-02-12cgroup: remove cgroup->nameTejun Heo1-0/+1
2014-02-10kernfs: fix hash calculation in kernfs_rename_ns()Tejun Heo1-1/+1
2014-02-07kernfs: implement kernfs_get_parent(), kernfs_name/path() and friendsTejun Heo1-10/+165
2014-02-07kernfs: implement kernfs_node_from_dentry(), kernfs_root_from_sb() and kernfs...Tejun Heo1-0/+18
2014-02-07kernfs: allow nodes to be created in the deactivated stateTejun Heo1-7/+64
2014-02-07kernfs: add missing kernfs_active() checks in directory operationsTejun Heo1-5/+6
2014-02-07kernfs: rename kernfs_dir_ops to kernfs_syscall_opsTejun Heo1-12/+13
2014-02-07kernfs: invoke dir_ops while holding active ref of the target nodeTejun Heo1-3/+30
2014-02-07kernfs, sysfs, driver-core: implement kernfs_remove_self() and its wrappersTejun Heo1-1/+137
2014-02-07kernfs: remove KERNFS_REMOVEDTejun Heo1-31/+35
2014-02-07kernfs: remove KERNFS_ACTIVE_REF and add kernfs_lockdep()Tejun Heo1-7/+13
2014-02-07kernfs: remove kernfs_addrm_cxtTejun Heo1-84/+25
2014-02-07kernfs: invoke kernfs_unmap_bin_file() directly from kernfs_deactivate()Tejun Heo1-4/+6
2014-02-07kernfs: restructure removal path to fix possible premature returnTejun Heo1-61/+68
2014-02-07kernfs: replace kernfs_node->u.completion with kernfs_root->deactivate_waitqTejun Heo1-18/+13
2014-02-07kernfs: make kernfs_deactivate() honor KERNFS_LOCKDEP flagTejun Heo1-4/+8
2014-01-17kernfs: associate a new kernfs_node with its parent on creationTejun Heo1-14/+26
2014-01-13Revert "kernfs: replace kernfs_node->u.completion with kernfs_root->deactivat...Greg Kroah-Hartman1-11/+16
2014-01-13Revert "kernfs: remove KERNFS_ACTIVE_REF and add kernfs_lockdep()"Greg Kroah-Hartman1-20/+11
2014-01-13Revert "kernfs: remove KERNFS_REMOVED"Greg Kroah-Hartman1-44/+35
2014-01-13Revert "kernfs: restructure removal path to fix possible premature return"Greg Kroah-Hartman1-86/+53
2014-01-13Revert "kernfs: invoke kernfs_unmap_bin_file() directly from __kernfs_remove()"Greg Kroah-Hartman1-33/+9
2014-01-13Revert "kernfs: remove kernfs_addrm_cxt"Greg Kroah-Hartman1-26/+88
2014-01-13Revert "kernfs: make kernfs_get_active() block if the node is deactivated but...Greg Kroah-Hartman1-21/+4
2014-01-13Revert "kernfs: implement kernfs_{de|re}activate[_self]()"Greg Kroah-Hartman1-117/+1
2014-01-13Revert "kernfs, sysfs, driver-core: implement kernfs_remove_self() and its wr...Greg Kroah-Hartman1-72/+0
2014-01-13Revert "kernfs: remove unnecessary NULL check in __kernfs_remove()"Greg Kroah-Hartman1-0/+3
2014-01-11kernfs: remove unnecessary NULL check in __kernfs_remove()Tejun Heo1-3/+0
2014-01-10kernfs, sysfs, driver-core: implement kernfs_remove_self() and its wrappersTejun Heo1-0/+72
2014-01-10kernfs: implement kernfs_{de|re}activate[_self]()Tejun Heo1-1/+117
2014-01-10kernfs: make kernfs_get_active() block if the node is deactivated but not rem...Tejun Heo1-4/+21
2014-01-10kernfs: remove kernfs_addrm_cxtTejun Heo1-88/+26
2014-01-10kernfs: invoke kernfs_unmap_bin_file() directly from __kernfs_remove()Tejun Heo1-9/+33
2014-01-10kernfs: restructure removal path to fix possible premature returnTejun Heo1-53/+86
2014-01-10kernfs: remove KERNFS_REMOVEDTejun Heo1-35/+44
2014-01-10kernfs: remove KERNFS_ACTIVE_REF and add kernfs_lockdep()Tejun Heo1-11/+20
2014-01-10kernfs: replace kernfs_node->u.completion with kernfs_root->deactivate_waitqTejun Heo1-16/+11
2013-12-17kernfs: add kernfs_dir_opsTejun Heo1-1/+43
2013-12-17kernfs: allow negative dentriesTejun Heo1-24/+13
2013-12-17kernfs: update kernfs_rename_ns() to consider KERNFS_STATIC_NAMETejun Heo1-1/+5
2013-12-17kernfs: mark static names with KERNFS_STATIC_NAMETejun Heo1-4/+4
2013-12-17kernfs: add REMOVED check to create and rename pathsTejun Heo1-0/+7
2013-12-17kernfs: add @mode to kernfs_create_dir[_ns]()Tejun Heo1-4/+5
2013-12-11kernfs: s/sysfs/kernfs/ in internal functions and whatever is leftTejun Heo1-105/+107
2013-12-11kernfs: s/sysfs/kernfs/ in global variablesTejun Heo1-32/+32
2013-12-11kernfs: s/sysfs/kernfs/ in constantsTejun Heo1-25/+25
2013-12-11kernfs: s/sysfs/kernfs/ in various data structuresTejun Heo1-14/+14
2013-12-11kernfs: drop s_ prefix from kernfs_node membersTejun Heo1-101/+97
2013-12-11kernfs: s/sysfs_dirent/kernfs_node/ and rename its friends accordinglyTejun Heo1-271/+271
2013-12-04kernfs: implement "trusted.*" xattr supportTejun Heo1-3/+9
2013-11-29sysfs, kernfs: implement kernfs_ns_enabled()Tejun Heo1-5/+5
2013-11-29sysfs, kernfs: make sysfs_dirent definition publicTejun Heo1-15/+0
2013-11-29sysfs, kernfs: make inode number ida per kernfs_rootTejun Heo1-34/+13
2013-11-29sysfs, kernfs: implement kernfs_create/destroy_root()Tejun Heo1-9/+62
2013-11-29sysfs, kernfs: move dir core code to fs/kernfs/dir.cTejun Heo1-0/+988
2013-11-27sysfs, kernfs: add skeletons for kernfsTejun Heo1-0/+9