Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179401
b: refs/heads/master
c: 7b264fc
h: refs/heads/master
i:
  179399: 2aa6c1a
v: v3
  • Loading branch information
Al Viro committed Jan 14, 2010
1 parent ef54642 commit d361a0a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 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: 204f2f0e82ec5cecbe671cfe2b132146929213d3
refs/heads/master: 7b264fc2bef4a3de8bc5ff1a6c5b9e890b069a04
18 changes: 12 additions & 6 deletions trunk/fs/hppfs/hppfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,29 +646,35 @@ static const struct super_operations hppfs_sbops = {
static int hppfs_readlink(struct dentry *dentry, char __user *buffer,
int buflen)
{
struct dentry *proc_dentry;

proc_dentry = HPPFS_I(dentry->d_inode)->proc_dentry;
struct dentry *proc_dentry = HPPFS_I(dentry->d_inode)->proc_dentry;
return proc_dentry->d_inode->i_op->readlink(proc_dentry, buffer,
buflen);
}

static void *hppfs_follow_link(struct dentry *dentry, struct nameidata *nd)
{
struct dentry *proc_dentry;

proc_dentry = HPPFS_I(dentry->d_inode)->proc_dentry;
struct dentry *proc_dentry = HPPFS_I(dentry->d_inode)->proc_dentry;

return proc_dentry->d_inode->i_op->follow_link(proc_dentry, nd);
}

static void hppfs_put_link(struct dentry *dentry, struct nameidata *nd,
void *cookie)
{
struct dentry *proc_dentry = HPPFS_I(dentry->d_inode)->proc_dentry;

if (proc_dentry->d_inode->i_op->put_link)
proc_dentry->d_inode->i_op->put_link(proc_dentry, nd, cookie);
}

static const struct inode_operations hppfs_dir_iops = {
.lookup = hppfs_lookup,
};

static const struct inode_operations hppfs_link_iops = {
.readlink = hppfs_readlink,
.follow_link = hppfs_follow_link,
.put_link = hppfs_put_link,
};

static struct inode *get_inode(struct super_block *sb, struct dentry *dentry)
Expand Down

0 comments on commit d361a0a

Please sign in to comment.