Skip to content

Commit

Permalink
[WIP] befs: add nfs get_parent
Browse files Browse the repository at this point in the history
  • Loading branch information
luisbg committed Nov 5, 2016
1 parent 2ef3057 commit a7d92c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fs/befs/linuxvfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ static struct dentry *befs_fh_to_dentry(struct super_block *sb,
struct fid *fid, int fh_len, int fh_type);
static struct dentry *befs_fh_to_parent(struct super_block *sb,
struct fid *fid, int fh_len, int fh_type);
static struct dentry *befs_get_parent(struct dentry *child);

static const struct super_operations befs_sops = {
.alloc_inode = befs_alloc_inode, /* allocate a new inode */
Expand Down Expand Up @@ -92,6 +93,7 @@ static const struct address_space_operations befs_symlink_aops = {
static const struct export_operations befs_export_operations = {
.fh_to_dentry = befs_fh_to_dentry,
.fh_to_parent = befs_fh_to_parent,
.get_parent = befs_get_parent,
};

/*
Expand Down Expand Up @@ -666,6 +668,12 @@ static struct dentry *befs_fh_to_parent(struct super_block *sb,
befs_nfs_get_inode);
}

static struct dentry *befs_get_parent(struct dentry *child)
{
pr_err("befs_get_parent");
return d_obtain_alias(befs_iget(child->d_sb, parent_ino(child)));
}

enum {
Opt_uid, Opt_gid, Opt_charset, Opt_debug, Opt_err,
};
Expand Down

0 comments on commit a7d92c7

Please sign in to comment.