Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
tnc_commit.c File Reference
#include <linux/random.h>
#include "ubifs.h"

Go to the source code of this file.

Functions

int ubifs_tnc_start_commit (struct ubifs_info *c, struct ubifs_zbranch *zroot)
 
int ubifs_tnc_end_commit (struct ubifs_info *c)
 

Function Documentation

int ubifs_tnc_end_commit ( struct ubifs_info c)

ubifs_tnc_end_commit - update the TNC for commit end. : UBIFS file-system description object

Write the dirty znodes.

Definition at line 1044 of file tnc_commit.c.

int ubifs_tnc_start_commit ( struct ubifs_info c,
struct ubifs_zbranch zroot 
)

ubifs_tnc_start_commit - start TNC commit. : UBIFS file-system description object : new index root position is returned here

This function prepares the list of indexing nodes to commit and lays out their positions on flash. If there is not enough free space it uses the in-gap commit method. Returns zero in case of success and a negative error code in case of failure.

Definition at line 741 of file tnc_commit.c.