Go to the documentation of this file.
12 #ifndef _LINUX_CODA_FS
13 #define _LINUX_CODA_FS
15 #include <linux/kernel.h>
19 #include <linux/slab.h>
20 #include <linux/wait.h>
21 #include <linux/types.h>
60 #define CODA_ALLOC(ptr, cast, size) do { \
61 if (size < PAGE_SIZE) \
62 ptr = kzalloc((unsigned long) size, GFP_KERNEL); \
64 ptr = (cast)vzalloc((unsigned long) size); \
66 printk("kernel malloc returns 0 at %s:%d\n", __FILE__, __LINE__); \
70 #define CODA_FREE(ptr,size) \
71 do { if (size < PAGE_SIZE) kfree((ptr)); else vfree((ptr)); } while (0)
82 return &(ITOC(inode)->c_fid);
87 return coda_f2s(&(ITOC(inode)->c_fid));
91 static __inline__ void coda_flag_inode(
struct inode *inode,
int flag)