From cee936d4305c35023af21cc0b7be162e378ef900 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 24 Nov 2006 13:45:37 -0500 Subject: [PATCH] --- yaml --- r: 44560 b: refs/heads/master c: 4f36557fbe4ab59feb2783cdb5d049cb8c3f34f3 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/debugfs/inode.c | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 9dd54bdbf116..1e285af5d775 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 44c53c4ff01a3551e9d73604eba42e372e9d0c1a +refs/heads/master: 4f36557fbe4ab59feb2783cdb5d049cb8c3f34f3 diff --git a/trunk/fs/debugfs/inode.c b/trunk/fs/debugfs/inode.c index 137d76c3f90a..020da4c60593 100644 --- a/trunk/fs/debugfs/inode.c +++ b/trunk/fs/debugfs/inode.c @@ -24,6 +24,7 @@ #include #include #include +#include #define DEBUGFS_MAGIC 0x64626720 @@ -87,15 +88,22 @@ static int debugfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) mode = (mode & (S_IRWXUGO | S_ISVTX)) | S_IFDIR; res = debugfs_mknod(dir, dentry, mode, 0); - if (!res) + if (!res) { inc_nlink(dir); + fsnotify_mkdir(dir, dentry); + } return res; } static int debugfs_create(struct inode *dir, struct dentry *dentry, int mode) { + int res; + mode = (mode & S_IALLUGO) | S_IFREG; - return debugfs_mknod(dir, dentry, mode, 0); + res = debugfs_mknod(dir, dentry, mode, 0); + if (!res) + fsnotify_create(dir, dentry); + return res; } static inline int debugfs_positive(struct dentry *dentry)