Changeset 743

Show
Ignore:
Timestamp:
07/07/08 20:07:44 (2 months ago)
Author:
mwhitworth
Message:

Rearrange file, add dirtyVNode function for ext3 journal.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/fs/include/fs/super.h

    r670 r743  
    2828#include <typedefs.h> 
    2929 
    30 struct SuperBlockOps 
    31 { 
    32         /* General vNode functions */ 
    33         int (*allocVNode)(struct VNode* vNode); 
    34         int (*freeVNode)(struct VNode* vNode); 
    35         int (*readVNode)(struct VNode* vNode); 
    36         int (*readVNodeWithData)(struct VNode* vNode, void* data); 
    37         int (*writeVNode)(struct VNode* vNode); 
    38  
    39         /* General superblock functions */ 
    40         int (*writeSuper)(struct VfsSuperBlock* superBlock); 
    41 }; 
     30struct VNode; 
    4231 
    4332struct VfsSuperBlock 
     
    5241        struct ListHead vNodeList,sbList; 
    5342        Spinlock nodeListLock; 
     43}; 
     44 
     45struct SuperBlockOps 
     46{ 
     47        /* General vNode functions */ 
     48        int (*allocVNode)(struct VNode* vNode); 
     49        int (*freeVNode)(struct VNode* vNode); 
     50        int (*readVNode)(struct VNode* vNode); 
     51        int (*readVNodeWithData)(struct VNode* vNode, void* data); 
     52        int (*writeVNode)(struct VNode* vNode); 
     53        int (*dirtyVNode)(struct VNode* vNode); 
     54 
     55        /* General superblock functions */ 
     56        int (*writeSuper)(struct VfsSuperBlock* superBlock); 
    5457}; 
    5558