diff options
| author | David Howells <dhowells@redhat.com> | 2015-03-05 07:46:49 -0500 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-15 15:05:30 -0400 |
| commit | 7ceab50c0be56cf1bbaf2b3dd1c6cda80e5335fb (patch) | |
| tree | 9f20e8a6fd51f358c722d46ce9bd60e18c33aa15 | |
| parent | 698934df8b45da2a06816ee2d7f9a9034e671e62 (diff) | |
VFS: Fix up debugfs to use d_is_dir() in place of S_ISDIR()
Fix up debugfs to use d_is_dir(dentry) in place of
S_ISDIR(dentry->d_inode->i_mode).
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| -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 96400ab42d13..26856ecdea5e 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
| @@ -521,7 +521,7 @@ static int __debugfs_remove(struct dentry *dentry, struct dentry *parent) | |||
| 521 | 521 | ||
| 522 | if (debugfs_positive(dentry)) { | 522 | if (debugfs_positive(dentry)) { |
| 523 | dget(dentry); | 523 | dget(dentry); |
| 524 | if (S_ISDIR(dentry->d_inode->i_mode)) | 524 | if (d_is_dir(dentry)) |
| 525 | ret = simple_rmdir(parent->d_inode, dentry); | 525 | ret = simple_rmdir(parent->d_inode, dentry); |
| 526 | else | 526 | else |
| 527 | simple_unlink(parent->d_inode, dentry); | 527 | simple_unlink(parent->d_inode, dentry); |
