befs fixes for 4.12-rc1
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJZDFZyAAoJEGu/nxmHO1GNpz0IAINPEyXe9zAc/K74u5mIUPKT MqK/ifAYdOmGDu9kB68tXFQ5o3GNmAjWI4P8/T6oGlK9IudChrwTBY9Gss7iaawc +sNu71NmnyxbWHb7w71kIdhwNiHWolgZva1Ex9yaQYqRAy/JapCke9gs5TiruM4j zObaZnw48RwVyvU/Xixoz0hOLDGkPltOdy3tkWmy9v8sg/jSf+HF1FpAIfyO4pm+ Kf2YR9IEkHhHwhoVEbHeSOjH/Tgb8gO8Suh4OnPRAP3gnVLWhb5Deh7Pjlgoj8Gn am2KFSkpShwvNG+yXufEwS4p7ERNd4u3uk/IWhJTuw6sE08L+dFU4Rj+DdxR2eY= =sENx -----END PGP SIGNATURE----- Merge tag 'befs-v4.12-rc1' of git://github.com/luisbg/linux-befs Pull befs fix from Luis de Bethencourt: "One fix from Fabian Frederick making the nfs client still work after a cache drop" * tag 'befs-v4.12-rc1' of git://github.com/luisbg/linux-befs: befs: make export work with cold dcache
This commit is contained in:
commit
414975eb76
@ -58,6 +58,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 */
|
||||
@ -93,6 +94,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,
|
||||
};
|
||||
|
||||
/*
|
||||
@ -667,6 +669,19 @@ static struct dentry *befs_fh_to_parent(struct super_block *sb,
|
||||
befs_nfs_get_inode);
|
||||
}
|
||||
|
||||
static struct dentry *befs_get_parent(struct dentry *child)
|
||||
{
|
||||
struct inode *parent;
|
||||
struct befs_inode_info *befs_ino = BEFS_I(d_inode(child));
|
||||
|
||||
parent = befs_iget(child->d_sb,
|
||||
(unsigned long)befs_ino->i_parent.start);
|
||||
if (IS_ERR(parent))
|
||||
return ERR_CAST(parent);
|
||||
|
||||
return d_obtain_alias(parent);
|
||||
}
|
||||
|
||||
enum {
|
||||
Opt_uid, Opt_gid, Opt_charset, Opt_debug, Opt_err,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user