summaryrefslogtreecommitdiffstats
path: root/fs/devpts/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/devpts/root.c')
-rw-r--r--fs/devpts/root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/devpts/root.c b/fs/devpts/root.c
index 39ea6afe3..06f6b3baa 100644
--- a/fs/devpts/root.c
+++ b/fs/devpts/root.c
@@ -129,7 +129,7 @@ static struct dentry *devpts_root_lookup(struct inode * dir, struct dentry * den
dentry->d_inode = sbi->inodes[entry];
if ( dentry->d_inode )
- dentry->d_inode->i_count++;
+ atomic_inc(&dentry->d_inode->i_count);
d_add(dentry, dentry->d_inode);