Android-cuttlefish cvd tool
Functions
node.c File Reference
#include "fsck.h"
#include "node.h"
Include dependency graph for node.c:

Functions

void f2fs_alloc_nid (struct f2fs_sb_info *sbi, nid_t *nid)
 
void f2fs_release_nid (struct f2fs_sb_info *sbi, nid_t nid)
 
int f2fs_rebuild_qf_inode (struct f2fs_sb_info *sbi, int qtype)
 
void set_data_blkaddr (struct dnode_of_data *dn)
 
block_t new_node_block (struct f2fs_sb_info *sbi, struct dnode_of_data *dn, unsigned int ofs)
 
static int get_node_path (struct f2fs_node *node, long block, int offset[4], unsigned int noffset[4])
 
int get_dnode_of_data (struct f2fs_sb_info *sbi, struct dnode_of_data *dn, pgoff_t index, int mode)
 
int update_inode (struct f2fs_sb_info *sbi, struct f2fs_node *inode, u32 *blkaddr)
 

Function Documentation

◆ f2fs_alloc_nid()

void f2fs_alloc_nid ( struct f2fs_sb_info sbi,
nid_t nid 
)

node.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

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.

◆ f2fs_rebuild_qf_inode()

int f2fs_rebuild_qf_inode ( struct f2fs_sb_info sbi,
int  qtype 
)

◆ f2fs_release_nid()

void f2fs_release_nid ( struct f2fs_sb_info sbi,
nid_t  nid 
)

◆ get_dnode_of_data()

int get_dnode_of_data ( struct f2fs_sb_info sbi,
struct dnode_of_data dn,
pgoff_t  index,
int  mode 
)

◆ get_node_path()

static int get_node_path ( struct f2fs_node node,
long  block,
int  offset[4],
unsigned int  noffset[4] 
)
static

◆ new_node_block()

block_t new_node_block ( struct f2fs_sb_info sbi,
struct dnode_of_data dn,
unsigned int  ofs 
)

◆ set_data_blkaddr()

void set_data_blkaddr ( struct dnode_of_data dn)

◆ update_inode()

int update_inode ( struct f2fs_sb_info sbi,
struct f2fs_node inode,
u32 blkaddr 
)