Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
segbuf.c File Reference
#include <linux/buffer_head.h>
#include <linux/writeback.h>
#include <linux/crc32.h>
#include <linux/backing-dev.h>
#include <linux/slab.h>
#include "page.h"
#include "segbuf.h"

Go to the source code of this file.

Data Structures

struct  nilfs_write_info
 

Functions

struct nilfs_segment_buffernilfs_segbuf_new (struct super_block *sb)
 
void nilfs_segbuf_free (struct nilfs_segment_buffer *segbuf)
 
void nilfs_segbuf_map (struct nilfs_segment_buffer *segbuf, __u64 segnum, unsigned long offset, struct the_nilfs *nilfs)
 
void nilfs_segbuf_map_cont (struct nilfs_segment_buffer *segbuf, struct nilfs_segment_buffer *prev)
 
void nilfs_segbuf_set_next_segnum (struct nilfs_segment_buffer *segbuf, __u64 nextnum, struct the_nilfs *nilfs)
 
int nilfs_segbuf_extend_segsum (struct nilfs_segment_buffer *segbuf)
 
int nilfs_segbuf_extend_payload (struct nilfs_segment_buffer *segbuf, struct buffer_head **bhp)
 
int nilfs_segbuf_reset (struct nilfs_segment_buffer *segbuf, unsigned flags, time_t ctime, __u64 cno)
 
void nilfs_segbuf_fill_in_segsum (struct nilfs_segment_buffer *segbuf)
 
void nilfs_clear_logs (struct list_head *logs)
 
void nilfs_truncate_logs (struct list_head *logs, struct nilfs_segment_buffer *last)
 
int nilfs_write_logs (struct list_head *logs, struct the_nilfs *nilfs)
 
int nilfs_wait_on_logs (struct list_head *logs)
 
void nilfs_add_checksums_on_logs (struct list_head *logs, u32 seed)
 

Function Documentation

void nilfs_add_checksums_on_logs ( struct list_head logs,
u32  seed 
)

nilfs_add_checksums_on_logs - add checksums on the logs : list of segment buffers storing target logs : checksum seed value

Definition at line 326 of file segbuf.c.

void nilfs_clear_logs ( struct list_head logs)

Definition at line 274 of file segbuf.c.

int nilfs_segbuf_extend_payload ( struct nilfs_segment_buffer segbuf,
struct buffer_head **  bhp 
)

Definition at line 121 of file segbuf.c.

int nilfs_segbuf_extend_segsum ( struct nilfs_segment_buffer segbuf)

Definition at line 108 of file segbuf.c.

void nilfs_segbuf_fill_in_segsum ( struct nilfs_segment_buffer segbuf)

Definition at line 157 of file segbuf.c.

void nilfs_segbuf_free ( struct nilfs_segment_buffer segbuf)

Definition at line 68 of file segbuf.c.

void nilfs_segbuf_map ( struct nilfs_segment_buffer segbuf,
__u64  segnum,
unsigned long  offset,
struct the_nilfs nilfs 
)

Definition at line 73 of file segbuf.c.

void nilfs_segbuf_map_cont ( struct nilfs_segment_buffer segbuf,
struct nilfs_segment_buffer prev 
)

nilfs_segbuf_map_cont - map a new log behind a given log : new segment buffer : segment buffer containing a log to be continued

Definition at line 90 of file segbuf.c.

struct nilfs_segment_buffer* nilfs_segbuf_new ( struct super_block sb)
read

Definition at line 47 of file segbuf.c.

int nilfs_segbuf_reset ( struct nilfs_segment_buffer segbuf,
unsigned  flags,
time_t  ctime,
__u64  cno 
)

Definition at line 136 of file segbuf.c.

void nilfs_segbuf_set_next_segnum ( struct nilfs_segment_buffer segbuf,
__u64  nextnum,
struct the_nilfs nilfs 
)

Definition at line 101 of file segbuf.c.

void nilfs_truncate_logs ( struct list_head logs,
struct nilfs_segment_buffer last 
)

Definition at line 282 of file segbuf.c.

int nilfs_wait_on_logs ( struct list_head logs)

Definition at line 308 of file segbuf.c.

int nilfs_write_logs ( struct list_head logs,
struct the_nilfs nilfs 
)

Definition at line 295 of file segbuf.c.