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>
This commit is contained in:
parent
04c57f4501
commit
fc64005c93
30 changed files with 41 additions and 50 deletions
|
@ -552,7 +552,7 @@ nfsd3_proc_fsinfo(struct svc_rqst * rqstp, struct nfsd_fhandle *argp,
|
|||
* different read/write sizes for file systems known to have
|
||||
* problems with large blocks */
|
||||
if (nfserr == 0) {
|
||||
struct super_block *sb = d_inode(argp->fh.fh_dentry)->i_sb;
|
||||
struct super_block *sb = argp->fh.fh_dentry->d_sb;
|
||||
|
||||
/* Note that we don't care for remote fs's here */
|
||||
if (sb->s_magic == MSDOS_SUPER_MAGIC) {
|
||||
|
@ -588,7 +588,7 @@ nfsd3_proc_pathconf(struct svc_rqst * rqstp, struct nfsd_fhandle *argp,
|
|||
nfserr = fh_verify(rqstp, &argp->fh, 0, NFSD_MAY_NOP);
|
||||
|
||||
if (nfserr == 0) {
|
||||
struct super_block *sb = d_inode(argp->fh.fh_dentry)->i_sb;
|
||||
struct super_block *sb = argp->fh.fh_dentry->d_sb;
|
||||
|
||||
/* Note that we don't care for remote fs's here */
|
||||
switch (sb->s_magic) {
|
||||
|
|
|
@ -146,7 +146,7 @@ static __be32 *encode_fsid(__be32 *p, struct svc_fh *fhp)
|
|||
default:
|
||||
case FSIDSOURCE_DEV:
|
||||
p = xdr_encode_hyper(p, (u64)huge_encode_dev
|
||||
(d_inode(fhp->fh_dentry)->i_sb->s_dev));
|
||||
(fhp->fh_dentry->d_sb->s_dev));
|
||||
break;
|
||||
case FSIDSOURCE_FSID:
|
||||
p = xdr_encode_hyper(p, (u64) fhp->fh_export->ex_fsid);
|
||||
|
|
|
@ -426,7 +426,7 @@ static bool is_root_export(struct svc_export *exp)
|
|||
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue