X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fllite%2Fllite_nfs.c;h=99a9943d65febfe874f3365cac15f0bdcafbe5d2;hb=6aea71f39238f370c02a2f293a01555cc653bd01;hp=c3e327cf7ac8b29d92708ad72617137081fad21f;hpb=255e37f1639fa4edec5b929228afe7c0e8b56724;p=fs%2Flustre-release.git diff --git a/lustre/llite/llite_nfs.c b/lustre/llite/llite_nfs.c index c3e327c..99a9943 100644 --- a/lustre/llite/llite_nfs.c +++ b/lustre/llite/llite_nfs.c @@ -228,7 +228,8 @@ static int ll_get_name(struct dentry *dentry, char *name, if (!dir->i_fop) GOTO(out, rc = -EINVAL); - filp = ll_dentry_open(dget(dentry), NULL, O_RDONLY, current_cred()); + filp = ll_dentry_open(dget(dentry), mntget(ll_i2sbi(dir)->ll_mnt), + O_RDONLY, current_cred()); if (IS_ERR(filp)) GOTO(out, rc = PTR_ERR(filp));