projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76bf105
)
[XFS] fix instant oops with tracing enabled
author
Christoph Hellwig
<hch@infradead.org>
Thu, 30 Oct 2008 06:21:10 +0000
(17:21 +1100)
committer
Lachlan McIlroy
<lachlan@sgi.com>
Thu, 30 Oct 2008 06:21:10 +0000
(17:21 +1100)
We can only read inode->i_count if the inode is actually there and not a
NULL pointer. This was introduced in one of the recent sync patches.
SGI-PV: 988255
SGI-Modid: xfs-linux-melb:xfs-kern:32315a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_vnode.c
patch
|
blob
|
history
diff --git
a/fs/xfs/linux-2.6/xfs_vnode.c
b/fs/xfs/linux-2.6/xfs_vnode.c
index
dceb6db
..
ac827d2
100644
(file)
--- a/
fs/xfs/linux-2.6/xfs_vnode.c
+++ b/
fs/xfs/linux-2.6/xfs_vnode.c
@@
-92,7
+92,7
@@
static inline int xfs_icount(struct xfs_inode *ip)
{
struct inode *inode = VFS_I(ip);
- if (
!
inode)
+ if (inode)
return atomic_read(&inode->i_count);
return -1;
}