According to the Penkapog Papers by Thomas Bailey Aldrich, the reference is to Thomas Rawlinson (1681-1725),nicknamed Tom Folio, a lawyer and bibliophile whose accumulation of books at his residence in Gray's Inn was said to have compelled him to sleep in a passageway.