If it's here everything went great. Fill in the dentry's name and inode
number, commit the chunk of memory, and update the directory's change and
modification time.
pos = page_offset(page) + p - (char *)page_address(page);
err = xiafs_prepare_chunk(page, pos, rec_size);
if (err)
goto out_unlock;
memcpy (namx, name, namelen);
de->d_name[namelen] = 0;
de->d_name_len=namelen;
de->d_ino = inode->i_ino;
err = dir_commit_chunk(page, pos, rec_size);
dir->i_mtime = dir->i_ctime = CURRENT_TIME_SEC;
mark_inode_dirty(dir);