<commit_before>/* SPDX-License-Identifier: BSD-2-Clause */

static int ramfs_munmap(fs_handle h, void *vaddrp, size_t len)
{
   return generic_fs_munmap(h, vaddrp, len);
}

static int ramfs_mmap(struct user_mapping *um, bool register_only)
{
   pdir_t *const pdir = get_curr_proc()->pdir;
   struct ramfs_handle *rh = um->h;
   struct ramfs_inode *i = rh->inode;
   ulong vaddr = um->vaddr;
   struct bintree_walk_ctx ctx;
   struct ramfs_block *b;
   int rc;

   const size_t off_begin = um->off;
   const size_t off_end = off_begin + um->len;<commit_msg>[ramfs] Use um->pi instead of get_curr_proc() in ramfs_mmap()<commit_after>/* SPDX-License-Identifier: BSD-2-Clause */

static int ramfs_munmap(fs_handle h, void *vaddrp, size_t len)
{
   return generic_fs_munmap(h, vaddrp, len);
}

static int ramfs_mmap(struct user_mapping *um, bool register_only)
{
   pdir_t *const pdir = um->pi->pdir;
   struct ramfs_handle *rh = um->h;
   struct ramfs_inode *i = rh->inode;
   ulong vaddr = um->vaddr;
   struct bintree_walk_ctx ctx;
   struct ramfs_block *b;
   int rc;

   const size_t off_begin = um->off;
   const size_t off_end = off_begin + um->len;
{'fraction_non_alphanumeric': 0.11642050390964379, 'fraction_numerical': 0.0017376194613379669, 'mean_word_length': 4.052631578947368, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7426938', 'n_tokens_mistral': 449, 'n_tokens_neox': 446, 'n_words': 114}