Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177745
b: refs/heads/master
c: b9aff02
h: refs/heads/master
i:
  177743: 38d20c4
v: v3
  • Loading branch information
Nick Piggin authored and Al Viro committed Dec 17, 2009
1 parent 98e89e3 commit d495de8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 06777d308f8f9ddb67798d34bf193101a4bdf06c
refs/heads/master: b9aff027b2c1d6019d237382c78fd396f9de2ea5
10 changes: 10 additions & 0 deletions trunk/fs/anon_inodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,23 @@ static int anon_inodefs_delete_dentry(struct dentry *dentry)
return 1;
}

/*
* anon_inodefs_dname() is called from d_path().
*/
static char *anon_inodefs_dname(struct dentry *dentry, char *buffer, int buflen)
{
return dynamic_dname(dentry, buffer, buflen, "anon_inode:%s",
dentry->d_name.name);
}

static struct file_system_type anon_inode_fs_type = {
.name = "anon_inodefs",
.get_sb = anon_inodefs_get_sb,
.kill_sb = kill_anon_super,
};
static const struct dentry_operations anon_inodefs_dentry_operations = {
.d_delete = anon_inodefs_delete_dentry,
.d_dname = anon_inodefs_dname,
};

/*
Expand Down

0 comments on commit d495de8

Please sign in to comment.