RE: RE: [PATCH v21 3/4] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-22 Thread Daejun Park
> +static u64 ufshpb_get_ppn(struct ufshpb_lu *hpb, > > + struct ufshpb_map_ctx *mctx, int pos, int *error) > > +{ > > + u64 *ppn_table; > > + struct page *page; > > + int index, offset; > > + > > + index = pos / (PAGE_SIZE / HPB_ENTRY_SIZE); > > +

RE: [PATCH v21 3/4] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-20 Thread Avri Altman
> +static u64 ufshpb_get_ppn(struct ufshpb_lu *hpb, > + struct ufshpb_map_ctx *mctx, int pos, int *error) > +{ > + u64 *ppn_table; > + struct page *page; > + int index, offset; > + > + index = pos / (PAGE_SIZE / HPB_ENTRY_SIZE); > + offset =