Whamcloud - gitweb
return 128 as filetype for cross-ref entry
[fs/lustre-release.git] / lustre / kernel_patches / patches / dcache-mds-num-2.6.7.patch
1 Index: linux-2.6.7/include/linux/dcache.h
2 ===================================================================
3 --- linux-2.6.7.orig/include/linux/dcache.h     2005-03-23 23:28:49.669799416 +0800
4 +++ linux-2.6.7/include/linux/dcache.h  2005-03-23 23:38:25.648237384 +0800
5 @@ -86,6 +86,9 @@
6         spinlock_t d_lock;              /* per dentry lock */
7         struct inode *d_inode;          /* Where the name belongs to - NULL is
8                                          * negative */
9 +        unsigned d_inum;                /* for cross-fs references (Lustre) */
10 +        unsigned d_mdsnum;              /* for cross-fs references (Lustre) */
11 +        unsigned d_generation;          /* for cross-fs references (Lustre) */
12         /*
13          * The next three fields are touched by __d_lookup.  Place them here
14          * so they all fit in a 16-byte range, with 16-byte alignment.
15 @@ -158,6 +161,8 @@
16  #define DCACHE_UNHASHED                0x0010  
17  #define DCACHE_LUSTRE_INVALID  0x0020  /* invalidated by Lustre */
18  
19 +#define DCACHE_CROSS_REF       0x0040  /* entry points to inode on another MDS */
20 +
21  extern spinlock_t dcache_lock;
22  
23  /**