Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-arm64
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe-arm64
  • Repository

Switch branch/tag
  • ipipe-arm64
  • fs
  • kernfs
  • dir.c
Find file BlameHistoryPermalink
  • Jianyu Zhan's avatar
    kernfs: fix a subdir count leak · c1befb88
    Jianyu Zhan authored Apr 17, 2014
    
    
    Currently kernfs_link_sibling() increates parent->dir.subdirs before
    adding the node into parent's chidren rb tree.
    
    Because it is possible that kernfs_link_sibling() couldn't find
    a suitable slot and bail out, this leads to a mismatch between
    elevated subdir count with actual children node numbers.
    
    This patches fix this problem, by moving the subdir accouting
    after the actual addtion happening.
    Signed-off-by: default avatarJianyu Zhan <nasa4836@gmail.com>
    Acked-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    c1befb88

Replace dir.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.

Imprint & Privacy Policy