X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=fs%2Fnfs%2Fpnfs.h;h=1e6308f82fc3d5887de850e72226233e4f2138d2;hb=59953fba87e5e535657403cc6439d24187929559;hp=231eb23c22da00d453ccdfc7f55db47617f1484d;hpb=f139b6c676c7e49b66016b28bf3f8ec5c54be891;p=mirror_ubuntu-zesty-kernel.git diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index 231eb23c22da..1e6308f82fc3 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h @@ -432,7 +432,7 @@ static inline bool pnfs_mark_request_commit(struct nfs_page *req, struct pnfs_layout_segment *lseg, struct nfs_commit_info *cinfo, u32 ds_commit_idx) { - struct inode *inode = req->wb_context->dentry->d_inode; + struct inode *inode = d_inode(req->wb_context->dentry); struct pnfs_layoutdriver_type *ld = NFS_SERVER(inode)->pnfs_curr_ld; if (lseg == NULL || ld->mark_request_commit == NULL) @@ -444,7 +444,7 @@ pnfs_mark_request_commit(struct nfs_page *req, struct pnfs_layout_segment *lseg, static inline bool pnfs_clear_request_commit(struct nfs_page *req, struct nfs_commit_info *cinfo) { - struct inode *inode = req->wb_context->dentry->d_inode; + struct inode *inode = d_inode(req->wb_context->dentry); struct pnfs_layoutdriver_type *ld = NFS_SERVER(inode)->pnfs_curr_ld; if (ld == NULL || ld->clear_request_commit == NULL)