| .. | .. |
|---|
| 59 | 59 | void coda_iattr_to_vattr(struct iattr *, struct coda_vattr *); |
|---|
| 60 | 60 | unsigned short coda_flags_to_cflags(unsigned short); |
|---|
| 61 | 61 | |
|---|
| 62 | | -/* sysctl.h */ |
|---|
| 63 | | -void coda_sysctl_init(void); |
|---|
| 64 | | -void coda_sysctl_clean(void); |
|---|
| 65 | | - |
|---|
| 66 | | -#define CODA_ALLOC(ptr, cast, size) do { \ |
|---|
| 67 | | - if (size < PAGE_SIZE) \ |
|---|
| 68 | | - ptr = kzalloc((unsigned long) size, GFP_KERNEL); \ |
|---|
| 69 | | - else \ |
|---|
| 70 | | - ptr = (cast)vzalloc((unsigned long) size); \ |
|---|
| 71 | | - if (!ptr) \ |
|---|
| 72 | | - pr_warn("kernel malloc returns 0 at %s:%d\n", __FILE__, __LINE__); \ |
|---|
| 73 | | -} while (0) |
|---|
| 74 | | - |
|---|
| 75 | | - |
|---|
| 76 | | -#define CODA_FREE(ptr, size) kvfree((ptr)) |
|---|
| 77 | | - |
|---|
| 78 | 62 | /* inode to cnode access functions */ |
|---|
| 79 | 63 | |
|---|
| 80 | 64 | static inline struct coda_inode_info *ITOC(struct inode *inode) |
|---|