summaryrefslogtreecommitdiff
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorDavide Libenzi <davidel@xmailserver.org>2007-10-17 06:30:19 (GMT)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 15:43:00 (GMT)
commit96fdc72ddfe8aa3eb1f51e78cc13babefbf26dda (patch)
tree58038ee825096fec9f330fe187e615bb7c2e8422 /fs/namespace.c
parent5e3c3ac9db432fbdd2da92ce0f12d7912706c689 (diff)
downloadlinux-96fdc72ddfe8aa3eb1f51e78cc13babefbf26dda.tar.xz
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 <yanzheng@21cn.com>: were checking for an IS_ERR() return from igrab(), but it actually returns NULL on error. Signed-off-by: Davide Libenzi <davidel@xmailserver.org> Cc: Yan Zheng <yanzheng@21cn.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/namespace.c')
0 files changed, 0 insertions, 0 deletions