Lines Matching refs:fhp
73 extern enum fsid_source fsid_source(struct svc_fh *fhp);
156 extern char * SVCFH_fmt(struct svc_fh *fhp);
183 fh_init(struct svc_fh *fhp, int maxsize) in fh_init() argument
185 memset(fhp, 0, sizeof(*fhp)); in fh_init()
186 fhp->fh_maxsize = maxsize; in fh_init()
187 return fhp; in fh_init()
214 fh_clear_wcc(struct svc_fh *fhp) in fh_clear_wcc() argument
216 fhp->fh_post_saved = false; in fh_clear_wcc()
217 fhp->fh_pre_saved = false; in fh_clear_wcc()
224 fill_pre_wcc(struct svc_fh *fhp) in fill_pre_wcc() argument
228 inode = d_inode(fhp->fh_dentry); in fill_pre_wcc()
229 if (!fhp->fh_pre_saved) { in fill_pre_wcc()
230 fhp->fh_pre_mtime = inode->i_mtime; in fill_pre_wcc()
231 fhp->fh_pre_ctime = inode->i_ctime; in fill_pre_wcc()
232 fhp->fh_pre_size = inode->i_size; in fill_pre_wcc()
233 fhp->fh_pre_change = inode->i_version; in fill_pre_wcc()
234 fhp->fh_pre_saved = true; in fill_pre_wcc()
254 fh_lock_nested(struct svc_fh *fhp, unsigned int subclass) in fh_lock_nested() argument
256 struct dentry *dentry = fhp->fh_dentry; in fh_lock_nested()
261 if (fhp->fh_locked) { in fh_lock_nested()
269 fill_pre_wcc(fhp); in fh_lock_nested()
270 fhp->fh_locked = true; in fh_lock_nested()
274 fh_lock(struct svc_fh *fhp) in fh_lock() argument
276 fh_lock_nested(fhp, I_MUTEX_NORMAL); in fh_lock()
283 fh_unlock(struct svc_fh *fhp) in fh_unlock() argument
285 if (fhp->fh_locked) { in fh_unlock()
286 fill_post_wcc(fhp); in fh_unlock()
287 mutex_unlock(&d_inode(fhp->fh_dentry)->i_mutex); in fh_unlock()
288 fhp->fh_locked = false; in fh_unlock()