Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347917
b: refs/heads/master
c: c4271c6
h: refs/heads/master
i:
  347915: 8b00ee6
v: v3
  • Loading branch information
Trond Myklebust authored and Linus Torvalds committed Dec 21, 2012
1 parent 2ffa078 commit 96118c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 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: c129c29347b6cf0d64bfe53848f68320286612ab
refs/heads/master: c4271c6e37c32105492cbbed35f45330cb327b94
19 changes: 15 additions & 4 deletions trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2375,19 +2375,30 @@ static void nfs_get_cache_cookie(struct super_block *sb,
struct nfs_parsed_mount_data *parsed,
struct nfs_clone_mount *cloned)
{
struct nfs_server *nfss = NFS_SB(sb);
char *uniq = NULL;
int ulen = 0;

if (parsed && parsed->fscache_uniq) {
uniq = parsed->fscache_uniq;
ulen = strlen(parsed->fscache_uniq);
nfss->fscache_key = NULL;
nfss->fscache = NULL;

if (parsed) {
if (!(parsed->options & NFS_OPTION_FSCACHE))
return;
if (parsed->fscache_uniq) {
uniq = parsed->fscache_uniq;
ulen = strlen(parsed->fscache_uniq);
}
} else if (cloned) {
struct nfs_server *mnt_s = NFS_SB(cloned->sb);
if (!(mnt_s->options & NFS_OPTION_FSCACHE))
return;
if (mnt_s->fscache_key) {
uniq = mnt_s->fscache_key->key.uniquifier;
ulen = mnt_s->fscache_key->key.uniq_len;
};
}
} else
return;

nfs_fscache_get_super_cookie(sb, uniq, ulen);
}
Expand Down

0 comments on commit 96118c9

Please sign in to comment.