|
Android-cuttlefish cvd tool
|

Macros | |
| #define | MAX_BULKR_RETRY 5 |
Functions | |
| int | reserve_new_block (struct f2fs_sb_info *sbi, block_t *to, struct f2fs_summary *sum, int type, bool is_inode) |
| int | new_data_block (struct f2fs_sb_info *sbi, void *block, struct dnode_of_data *dn, int type) |
| u64 | f2fs_quota_size (struct quota_file *qf) |
| u64 | f2fs_read (struct f2fs_sb_info *sbi, nid_t ino, u8 *buffer, u64 count, pgoff_t offset) |
| static u64 | f2fs_write_ex (struct f2fs_sb_info *sbi, nid_t ino, u8 *buffer, u64 count, pgoff_t offset, enum wr_addr_type addr_type) |
| u64 | f2fs_write (struct f2fs_sb_info *sbi, nid_t ino, u8 *buffer, u64 count, pgoff_t offset) |
| u64 | f2fs_write_compress_data (struct f2fs_sb_info *sbi, nid_t ino, u8 *buffer, u64 count, pgoff_t offset) |
| u64 | f2fs_write_addrtag (struct f2fs_sb_info *sbi, nid_t ino, pgoff_t offset, unsigned int addrtag) |
| void | f2fs_filesize_update (struct f2fs_sb_info *sbi, nid_t ino, u64 filesize) |
| int | bulkread (int fd, void *rbuf, size_t rsize, bool *eof) |
| u64 | f2fs_fix_mutable (struct f2fs_sb_info *sbi, nid_t ino, pgoff_t offset, unsigned int compressed) |
| static int | is_consecutive (u32 prev_addr, u32 cur_addr) |
| static void | copy_extent_info (struct extent_info *t_ext, struct extent_info *s_ext) |
| static void | update_extent_info (struct f2fs_node *inode, struct extent_info *ext) |
| static void | update_largest_extent (struct f2fs_sb_info *sbi, nid_t ino) |
| int | f2fs_build_file (struct f2fs_sb_info *sbi, struct dentry *de) |
| int | update_block (struct f2fs_sb_info *sbi, void *buf, u32 *blkaddr, struct f2fs_node *node_blk) |
| #define MAX_BULKR_RETRY 5 |
| int bulkread | ( | int | fd, |
| void * | rbuf, | ||
| size_t | rsize, | ||
| bool * | eof | ||
| ) |
|
inlinestatic |
| int f2fs_build_file | ( | struct f2fs_sb_info * | sbi, |
| struct dentry * | de | ||
| ) |
| void f2fs_filesize_update | ( | struct f2fs_sb_info * | sbi, |
| nid_t | ino, | ||
| u64 | filesize | ||
| ) |
| u64 f2fs_fix_mutable | ( | struct f2fs_sb_info * | sbi, |
| nid_t | ino, | ||
| pgoff_t | offset, | ||
| unsigned int | compressed | ||
| ) |
| u64 f2fs_quota_size | ( | struct quota_file * | qf | ) |
| u64 f2fs_write_addrtag | ( | struct f2fs_sb_info * | sbi, |
| nid_t | ino, | ||
| pgoff_t | offset, | ||
| unsigned int | addrtag | ||
| ) |
| u64 f2fs_write_compress_data | ( | struct f2fs_sb_info * | sbi, |
| nid_t | ino, | ||
| u8 * | buffer, | ||
| u64 | count, | ||
| pgoff_t | offset | ||
| ) |
|
static |
| int new_data_block | ( | struct f2fs_sb_info * | sbi, |
| void * | block, | ||
| struct dnode_of_data * | dn, | ||
| int | type | ||
| ) |
| int reserve_new_block | ( | struct f2fs_sb_info * | sbi, |
| block_t * | to, | ||
| struct f2fs_summary * | sum, | ||
| int | type, | ||
| bool | is_inode | ||
| ) |
segment.c
Many parts of codes are copied from Linux kernel/fs/f2fs.
Copyright (C) 2015 Huawei Ltd. Witten by: Hou Pengyang houpe.nosp@m.ngya.nosp@m.ng@hu.nosp@m.awei.nosp@m..com Liu Shuoran liush.nosp@m.uora.nosp@m.n@hua.nosp@m.wei..nosp@m.com Jaegeuk Kim jaege.nosp@m.uk@k.nosp@m.ernel.nosp@m..org Copyright (c) 2020 Google Inc. Robin Hsu robin.nosp@m.hsu@.nosp@m.googl.nosp@m.e.co.nosp@m.m : add sload compression support
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
| int update_block | ( | struct f2fs_sb_info * | sbi, |
| void * | buf, | ||
| u32 * | blkaddr, | ||
| struct f2fs_node * | node_blk | ||
| ) |
|
inlinestatic |
|
static |