Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-coresight-backports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

The Gitlab will upgrade to latest version for security in the Oct 7th (9:00 ~ 12:00 UTC+8), during the time, the Gitlab site will be offline.

  • linux-arm
  • linux-coresight-backports
  • Repository
  • linux-coresight-backports
  • mm
  • shmem.c
Find file BlameHistoryPermalink
  • Steven Rostedt (VMware)'s avatar
    mm/shmem.c: fix unlikely() test of info->seals to test only for WRITE and GROW · 3f472cc9
    Steven Rostedt (VMware) authored Feb 24, 2017
    Running my likely/unlikely profiler, I discovered that the test in
    shmem_write_begin() that tests for info->seals as unlikely, is always
    incorrect.  This is because shmem_get_inode() sets info->seals to have
    F_SEAL_SEAL set by default, and it is unlikely to be cleared when
    shmem_write_begin() is called.  Thus, the if statement is very likely.
    
    But as the if statement block only cares about F_SEAL_WRITE and
    F_SEAL_GROW, change the test to only test those two bits.
    
    Link: http://lkml.kernel.org/r/20170203105656.7aec6237@gandalf.local.home
    
    
    Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
    Acked-by: default avatarHugh Dickins <hughd@google.com>
    Cc: David Herrmann <dh.herrmann@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    3f472cc9