diff options
-rw-r--r-- | fs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/inode.c b/fs/inode.c index 3368abd64bb5..4f0a67c54f89 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -663,7 +663,7 @@ EXPORT_SYMBOL(new_inode); | |||
663 | void unlock_new_inode(struct inode *inode) | 663 | void unlock_new_inode(struct inode *inode) |
664 | { | 664 | { |
665 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 665 | #ifdef CONFIG_DEBUG_LOCK_ALLOC |
666 | if (inode->i_mode & S_IFDIR) { | 666 | if (S_ISDIR(inode->i_mode)) { |
667 | struct file_system_type *type = inode->i_sb->s_type; | 667 | struct file_system_type *type = inode->i_sb->s_type; |
668 | 668 | ||
669 | /* Set new key only if filesystem hasn't already changed it */ | 669 | /* Set new key only if filesystem hasn't already changed it */ |