~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/linux/shmem_fs.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef __SHMEM_FS_H
  2 #define __SHMEM_FS_H
  3 
  4 /* inode in-kernel data */
  5 
  6 #define SHMEM_NR_DIRECT 16
  7 
  8 /*
  9  * A swap entry has to fit into a "unsigned long", as
 10  * the entry is hidden in the "index" field of the
 11  * swapper address space.
 12  *
 13  * We have to move it here, since not every user of fs.h is including
 14  * mm.h, but m.h is including fs.h via sched .h :-/
 15  */
 16 typedef struct {
 17         unsigned long val;
 18 } swp_entry_t;
 19 
 20 struct shmem_inode_info {
 21         spinlock_t      lock;
 22         swp_entry_t     i_direct[SHMEM_NR_DIRECT]; /* for the first blocks */
 23         swp_entry_t   **i_indirect; /* doubly indirect blocks */
 24         unsigned long   swapped;
 25         int             locked;     /* into memory */
 26         struct list_head        list;
 27 };
 28 
 29 struct shmem_sb_info {
 30         unsigned long max_blocks;   /* How many blocks are allowed */
 31         unsigned long free_blocks;  /* How many are left for allocation */
 32         unsigned long max_inodes;   /* How many inodes are allowed */
 33         unsigned long free_inodes;  /* How many are left for allocation */
 34         spinlock_t    stat_lock;
 35 };
 36 
 37 #endif
 38 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.