Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208885
b: refs/heads/master
c: 7ae6bdb
h: refs/heads/master
i:
  208883: b38c88d
v: v3
  • Loading branch information
Miklos Szeredi authored and Al Viro committed Aug 11, 2010
1 parent 3ef91cc commit 2a29742
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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: f7ad3c6be90809b53b7f0ae9d4eaa45ce2564a79
refs/heads/master: 7ae6bdbd9b9d42da53ea809875c0a6cda3de694c
15 changes: 8 additions & 7 deletions trunk/arch/ia64/kernel/perfmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -2191,8 +2191,15 @@ pfmfs_delete_dentry(struct dentry *dentry)
return 1;
}

static char *pfmfs_dname(struct dentry *dentry, char *buffer, int buflen)
{
return dynamic_dname(dentry, buffer, buflen, "pfm:[%lu]",
dentry->d_inode->i_ino);
}

static const struct dentry_operations pfmfs_dentry_operations = {
.d_delete = pfmfs_delete_dentry,
.d_dname = pfmfs_dname,
};


Expand All @@ -2202,8 +2209,7 @@ pfm_alloc_file(pfm_context_t *ctx)
struct file *file;
struct inode *inode;
struct path path;
char name[32];
struct qstr this;
struct qstr this = { .name = "" };

/*
* allocate a new inode
Expand All @@ -2218,11 +2224,6 @@ pfm_alloc_file(pfm_context_t *ctx)
inode->i_uid = current_fsuid();
inode->i_gid = current_fsgid();

sprintf(name, "[%lu]", inode->i_ino);
this.name = name;
this.len = strlen(name);
this.hash = inode->i_ino;

/*
* allocate a new dcache entry
*/
Expand Down

0 comments on commit 2a29742

Please sign in to comment.