Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
map.c File Reference
#include <linux/buffer_head.h>
#include <asm/unaligned.h>
#include "adfs.h"

Go to the source code of this file.

Macros

#define GET_FRAG_ID(_map, _start, _idmask)
 

Functions

unsigned int adfs_map_free (struct super_block *sb)
 
int adfs_map_lookup (struct super_block *sb, unsigned int frag_id, unsigned int offset)
 

Macro Definition Documentation

#define GET_FRAG_ID (   _map,
  _start,
  _idmask 
)
Value:
({ \
unsigned char *_m = _map + (_start >> 3); \
u32 _frag = get_unaligned_le32(_m); \
_frag >>= (_start & 7); \
_frag & _idmask; \
})

Definition at line 56 of file map.c.

Function Documentation

unsigned int adfs_map_free ( struct super_block sb)

Definition at line 230 of file map.c.

int adfs_map_lookup ( struct super_block sb,
unsigned int  frag_id,
unsigned int  offset 
)

Definition at line 248 of file map.c.