Lines Matching refs:fh_array
638 if (fl->fh_array) { in _filelayout_free_lseg()
640 if (!fl->fh_array[i]) in _filelayout_free_lseg()
642 kfree(fl->fh_array[i]); in _filelayout_free_lseg()
644 kfree(fl->fh_array); in _filelayout_free_lseg()
705 fl->fh_array = kcalloc(fl->num_fh, sizeof(fl->fh_array[0]), in filelayout_decode_layout()
707 if (!fl->fh_array) in filelayout_decode_layout()
713 fl->fh_array[i] = kmalloc(sizeof(struct nfs_fh), gfp_flags); in filelayout_decode_layout()
714 if (!fl->fh_array[i]) in filelayout_decode_layout()
720 fl->fh_array[i]->size = be32_to_cpup(p++); in filelayout_decode_layout()
721 if (fl->fh_array[i]->size > NFS_MAXFHSIZE) { in filelayout_decode_layout()
723 i, fl->fh_array[i]->size); in filelayout_decode_layout()
727 p = xdr_inline_decode(&stream, fl->fh_array[i]->size); in filelayout_decode_layout()
730 memcpy(fl->fh_array[i]->data, p, fl->fh_array[i]->size); in filelayout_decode_layout()
732 fl->fh_array[i]->size); in filelayout_decode_layout()
992 return flseg->fh_array[i]; in select_ds_fh_from_commit()