projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
698934d
)
VFS: Fix up debugfs to use d_is_dir() in place of S_ISDIR()
author
David Howells
<dhowells@redhat.com>
Thu, 5 Mar 2015 12:46:49 +0000
(12:46 +0000)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 15 Apr 2015 19:05:30 +0000
(15:05 -0400)
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>
fs/debugfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/debugfs/inode.c
b/fs/debugfs/inode.c
index 96400ab42d135e7d572d29de9d4f3637fedd7817..26856ecdea5ea2bc58cf966a41ed5b508cb1a64b 100644
(file)
--- a/
fs/debugfs/inode.c
+++ b/
fs/debugfs/inode.c
@@
-521,7
+521,7
@@
static int __debugfs_remove(struct dentry *dentry, struct dentry *parent)
if (debugfs_positive(dentry)) {
dget(dentry);
- if (
S_ISDIR(dentry->d_inode->i_mode
))
+ if (
d_is_dir(dentry
))
ret = simple_rmdir(parent->d_inode, dentry);
else
simple_unlink(parent->d_inode, dentry);