Linux Kernel
3.7.1
|
#include <ubifs.h>
Data Fields | |
struct ubifs_info * | c |
void * | buf |
int | lnum |
int | offs |
int | avail |
int | used |
int | size |
int | jhead |
int(* | sync_callback )(struct ubifs_info *c, int lnum, int free, int pad) |
struct mutex | io_mutex |
spinlock_t | lock |
ktime_t | softlimit |
unsigned long long | delta |
struct hrtimer | timer |
unsigned int | no_timer:1 |
unsigned int | need_sync:1 |
int | next_ino |
ino_t * | inodes |
struct ubifs_wbuf - UBIFS write-buffer. : UBIFS file-system description object : write-buffer (of min. flash I/O unit size) : logical eraseblock number the write-buffer points to : write-buffer offset in this logical eraseblock : number of bytes available in the write-buffer : number of used bytes in the write-buffer : write-buffer size (in [
->min_io_size,
->max_write_size] range) : journal head the mutex belongs to (note, needed only to shut lockdep up by 'mutex_lock_nested()). : write-buffer synchronization callback : serializes write-buffer I/O : serializes , , , , , and fields : soft write-buffer timeout interval : hard and soft timeouts delta (the timer expire inteval is and + ) : write-buffer timer : non-zero if this write-buffer does not have a timer : non-zero if the timer expired and the wbuf needs sync'ing : points to the next position of the following inode number : stores the inode numbers of the nodes which are in wbuf
The write-buffer synchronization callback is called when the write-buffer is synchronized in order to notify how much space was wasted due to write-buffer padding and how much free space is left in the LEB.
Note: the fields , , , and can be read under spin-lock or mutex because they are written under both mutex and spin-lock. is appended to under mutex but overwritten under both mutex and spin-lock. Thus the data between and + can be read under spinlock.
struct ubifs_info* c |
spinlock_t lock |