diff --git a/[refs] b/[refs] index bc8ac78e9832..bb1728ddbef0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 306fb0979443419288594446a348155a8027dcf2 +refs/heads/master: a3314a0ed389f51a51695120b429eccd45b3a165 diff --git a/trunk/fs/inode.c b/trunk/fs/inode.c index 3368abd64bb5..4f0a67c54f89 100644 --- a/trunk/fs/inode.c +++ b/trunk/fs/inode.c @@ -663,7 +663,7 @@ EXPORT_SYMBOL(new_inode); void unlock_new_inode(struct inode *inode) { #ifdef CONFIG_DEBUG_LOCK_ALLOC - if (inode->i_mode & S_IFDIR) { + if (S_ISDIR(inode->i_mode)) { struct file_system_type *type = inode->i_sb->s_type; /* Set new key only if filesystem hasn't already changed it */