aboutsummaryrefslogtreecommitdiff
path: root/lib/semaphore-sleepers.c
diff options
context:
space:
mode:
authorDavide Libenzi <[email protected]>2007-10-16 23:30:19 -0700
committerLinus Torvalds <[email protected]>2007-10-17 08:43:00 -0700
commit96fdc72ddfe8aa3eb1f51e78cc13babefbf26dda (patch)
tree58038ee825096fec9f330fe187e615bb7c2e8422 /lib/semaphore-sleepers.c
parent5e3c3ac9db432fbdd2da92ce0f12d7912706c689 (diff)
anon-inodes use open coded atomic_inc for the shared inode
Since we know the shared inode count is always >0, we can avoid igrab() and use an open coded atomic_inc(). This also fixes a bug noticed by Yan Zheng <[email protected]>: were checking for an IS_ERR() return from igrab(), but it actually returns NULL on error. Signed-off-by: Davide Libenzi <[email protected]> Cc: Yan Zheng <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/semaphore-sleepers.c')
0 files changed, 0 insertions, 0 deletions