Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
balloc.c File Reference
#include <linux/fs.h>
#include <linux/stat.h>
#include <linux/time.h>
#include <linux/string.h>
#include <linux/buffer_head.h>
#include <linux/capability.h>
#include <linux/bitops.h>
#include <asm/byteorder.h>
#include "ufs_fs.h"
#include "ufs.h"
#include "swab.h"
#include "util.h"

Go to the source code of this file.

Macros

#define INVBLOCK   ((u64)-1L)
 
#define UFS_TEST_FREE_SPACE_CG
 

Functions

void ufs_free_fragments (struct inode *inode, u64 fragment, unsigned count)
 
void ufs_free_blocks (struct inode *inode, u64 fragment, unsigned count)
 
u64 ufs_new_fragments (struct inode *inode, void *p, u64 fragment, u64 goal, unsigned count, int *err, struct page *locked_page)
 

Macro Definition Documentation

#define INVBLOCK   ((u64)-1L)

Definition at line 25 of file balloc.c.

#define UFS_TEST_FREE_SPACE_CG
Value:
ucg = (struct ufs_cylinder_group *) UFS_SB(sb)->s_ucg[cgno]->b_data; \
if (fs32_to_cpu(sb, ucg->cg_cs.cs_nbfree)) \
goto cg_found; \
for (k = count; k < uspi->s_fpb; k++) \
if (fs32_to_cpu(sb, ucg->cg_frsum[k])) \
goto cg_found;

Definition at line 567 of file balloc.c.

Function Documentation

void ufs_free_blocks ( struct inode inode,
u64  fragment,
unsigned  count 
)

Definition at line 134 of file balloc.c.

void ufs_free_fragments ( struct inode inode,
u64  fragment,
unsigned  count 
)

Definition at line 37 of file balloc.c.

u64 ufs_new_fragments ( struct inode inode,
void p,
u64  fragment,
u64  goal,
unsigned  count,
int err,
struct page locked_page 
)

Definition at line 345 of file balloc.c.