diff options
Diffstat (limited to 'fs/debugfs/inode.c')
-rw-r--r-- | fs/debugfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 61e72d44cf94..c9ee0dfe90b5 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
@@ -524,7 +524,7 @@ static int __debugfs_remove(struct dentry *dentry, struct dentry *parent) | |||
524 | 524 | ||
525 | if (debugfs_positive(dentry)) { | 525 | if (debugfs_positive(dentry)) { |
526 | dget(dentry); | 526 | dget(dentry); |
527 | if (S_ISDIR(dentry->d_inode->i_mode)) | 527 | if (d_is_dir(dentry)) |
528 | ret = simple_rmdir(parent->d_inode, dentry); | 528 | ret = simple_rmdir(parent->d_inode, dentry); |
529 | else | 529 | else |
530 | simple_unlink(parent->d_inode, dentry); | 530 | simple_unlink(parent->d_inode, dentry); |