Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44560
b: refs/heads/master
c: 4f36557
h: refs/heads/master
v: v3
  • Loading branch information
Mathieu Desnoyers authored and Greg Kroah-Hartman committed Dec 13, 2006
1 parent aba2bd2 commit cee936d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 44c53c4ff01a3551e9d73604eba42e372e9d0c1a
refs/heads/master: 4f36557fbe4ab59feb2783cdb5d049cb8c3f34f3
12 changes: 10 additions & 2 deletions trunk/fs/debugfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <linux/kobject.h>
#include <linux/namei.h>
#include <linux/debugfs.h>
#include <linux/fsnotify.h>

#define DEBUGFS_MAGIC 0x64626720

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cee936d

Please sign in to comment.