commit | fc64005c93090c052637f63578d810b037abb1a1 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Apr 10 01:33:30 2016 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sun Apr 10 17:11:51 2016 -0400 |
tree | 7762f9680fd773cf265465b0e5f95e4732b90def | |
parent | 04c57f4501909b60353031cfe5b991751d745658 [diff] [blame] |
don't bother with ->d_inode->i_sb - it's always equal to ->d_sb ... and neither can ever be NULL Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c index c1681ce..a891944 100644 --- a/fs/nfsd/nfsfh.c +++ b/fs/nfsd/nfsfh.c
@@ -426,7 +426,7 @@ static struct super_block *exp_sb(struct svc_export *exp) { - return d_inode(exp->ex_path.dentry)->i_sb; + return exp->ex_path.dentry->d_sb; } static bool fsid_type_ok_for_exp(u8 fsid_type, struct svc_export *exp)