1 Index: linux-2.6.9-5.0.3.EL/fs/exec.c
2 ===================================================================
3 --- linux-2.6.9-5.0.3.EL.orig/fs/exec.c 2005-02-26 14:28:01.000000000 +0200
4 +++ linux-2.6.9-5.0.3.EL/fs/exec.c 2005-02-26 23:29:02.000000000 +0200
9 + intent_init(&nd.intent, IT_OPEN);
11 - nd.intent.open.flags = FMODE_READ;
12 - error = __user_walk(library, LOOKUP_FOLLOW|LOOKUP_OPEN, &nd);
13 + nd.intent.it_flags = FMODE_READ|FMODE_EXEC;
14 + error = __user_walk_it(library, LOOKUP_FOLLOW|LOOKUP_OPEN, &nd);
22 - file = dentry_open(nd.dentry, nd.mnt, O_RDONLY);
23 + file = dentry_open_it(nd.dentry, nd.mnt, O_RDONLY, &nd.intent);
24 error = PTR_ERR(file);
31 - nd.intent.open.flags = FMODE_READ;
32 - err = path_lookup(name, LOOKUP_FOLLOW|LOOKUP_OPEN, &nd);
33 + intent_init(&nd.intent, IT_OPEN);
34 + nd.intent.it_flags = FMODE_READ|FMODE_EXEC;
35 + err = path_lookup(name, LOOKUP_FOLLOW, &nd);
43 - file = dentry_open(nd.dentry, nd.mnt, O_RDONLY);
44 + file = dentry_open_it(nd.dentry, nd.mnt, O_RDONLY, &nd.intent);
46 err = deny_write_access(file);
48 Index: linux-2.6.9-5.0.3.EL/fs/namei.c
49 ===================================================================
50 --- linux-2.6.9-5.0.3.EL.orig/fs/namei.c 2005-02-26 14:28:01.000000000 +0200
51 +++ linux-2.6.9-5.0.3.EL/fs/namei.c 2005-04-01 18:15:29.743029208 +0300
56 +void intent_release(struct lookup_intent *it)
60 + if (it->it_magic != INTENT_MAGIC)
62 + if (it->it_op_release)
63 + it->it_op_release(it);
66 void path_release(struct nameidata *nd)
68 + intent_release(&nd->intent);
74 struct dentry * result;
75 struct inode *dir = parent->d_inode;
82 * First re-do the cached lookup just in case it was created
84 if (result->d_op && result->d_op->d_revalidate) {
85 if (!result->d_op->d_revalidate(result, nd) && !d_invalidate(result)) {
87 - result = ERR_PTR(-ENOENT);
89 + result = ERR_PTR(-ESTALE);
90 + if (!IS_ERR(result))
96 static inline int __vfs_follow_link(struct nameidata *nd, const char *link)
99 + struct lookup_intent it = nd->intent;
106 /* weird __emul_prefix() stuff did it */
109 + intent_init(&nd->intent, it.it_op);
110 + nd->intent.it_flags = it.it_flags;
111 + nd->intent.it_create_mode = it.it_create_mode;
112 res = link_path_walk(link, nd);
114 if (nd->depth || res || nd->last_type!=LAST_NORM)
116 return PTR_ERR(dentry);
119 +static int revalidate_special(struct nameidata *nd)
121 + struct dentry *dentry = nd->dentry;
122 + int err, counter = 0;
125 + if (!dentry->d_op || !dentry->d_op->d_revalidate)
127 + if (!dentry->d_op->d_revalidate(dentry, nd)) {
128 + struct dentry *new;
129 + if ((err = permission(dentry->d_parent->d_inode, MAY_EXEC, nd)))
131 + new = real_lookup(dentry->d_parent, &dentry->d_name, nd);
133 + return PTR_ERR(new);
134 + d_invalidate(dentry);
136 + nd->dentry = dentry = new;
139 + goto revalidate_again;
140 + printk("excessive revalidate_it loops\n");
152 if (inode->i_op->follow_link) {
153 + int save_flags = nd->flags;
155 + nd->flags |= LOOKUP_LINK_NOTLAST;
156 err = do_follow_link(next.dentry, nd);
157 + if (!(save_flags & LOOKUP_LINK_NOTLAST))
158 + nd->flags &= ~LOOKUP_LINK_NOTLAST;
162 @@ -791,14 +844,34 @@
163 inode = nd->dentry->d_inode;
166 + nd->flags |= LOOKUP_LAST;
167 + err = revalidate_special(nd);
168 + nd->flags &= ~LOOKUP_LAST;
169 + if (!nd->dentry->d_inode)
175 + if (lookup_flags & LOOKUP_DIRECTORY) {
177 + if(!nd->dentry->d_inode->i_op ||
178 + !nd->dentry->d_inode->i_op->lookup) {
186 if (nd->dentry->d_op && nd->dentry->d_op->d_hash) {
187 err = nd->dentry->d_op->d_hash(nd->dentry, &this);
191 + nd->flags |= LOOKUP_LAST;
192 err = do_lookup(nd, &this, &next, atomic);
193 + nd->flags &= ~LOOKUP_LAST;
196 follow_mount(&next.mnt, &next.dentry);
197 @@ -1016,7 +1089,7 @@
201 -struct dentry * lookup_one_len(const char * name, struct dentry * base, int len)
202 +struct dentry * lookup_one_len_it(const char * name, struct dentry * base, int len, struct nameidata *nd)
206 @@ -1036,11 +1109,16 @@
208 this.hash = end_name_hash(hash);
210 - return lookup_hash(&this, base);
211 + return __lookup_hash(&this, base, nd);
213 return ERR_PTR(-EACCES);
216 +struct dentry * lookup_one_len(const char * name, struct dentry * base, int len)
218 + return lookup_one_len_it(name, base, len, NULL);
224 @@ -1052,7 +1130,7 @@
225 * that namei follows links, while lnamei does not.
228 -int fastcall __user_walk(const char __user *name, unsigned flags, struct nameidata *nd)
229 +int fastcall __user_walk_it(const char __user *name, unsigned flags, struct nameidata *nd)
231 char *tmp = getname(name);
232 int err = PTR_ERR(tmp);
233 @@ -1064,6 +1142,12 @@
237 +int fastcall __user_walk(const char __user *name, unsigned flags, struct nameidata *nd)
239 + intent_init(&nd->intent, IT_LOOKUP);
240 + return __user_walk_it(name, flags, nd);
244 * It's inline, so penalty for filesystems that don't use sticky bit is
246 @@ -1347,8 +1431,8 @@
247 acc_mode |= MAY_APPEND;
249 /* Fill in the open() intent data */
250 - nd->intent.open.flags = flag;
251 - nd->intent.open.create_mode = mode;
252 + nd->intent.it_flags = flag;
253 + nd->intent.it_create_mode = mode;
256 * The simplest case - just a plain lookup.
257 @@ -1363,6 +1447,7 @@
259 * Create - we need to know the parent.
261 + nd->intent.it_op |= IT_CREAT;
262 error = path_lookup(pathname, LOOKUP_PARENT|LOOKUP_OPEN|LOOKUP_CREATE, nd);
265 @@ -1379,7 +1464,9 @@
267 nd->flags &= ~LOOKUP_PARENT;
268 down(&dir->d_inode->i_sem);
269 + nd->flags |= LOOKUP_LAST;
270 dentry = __lookup_hash(&nd->last, nd->dentry, nd);
271 + nd->flags &= ~LOOKUP_LAST;
274 error = PTR_ERR(dentry);
275 @@ -1492,7 +1579,9 @@
278 down(&dir->d_inode->i_sem);
279 + nd->flags |= LOOKUP_LAST;
280 dentry = __lookup_hash(&nd->last, nd->dentry, nd);
281 + nd->flags &= ~LOOKUP_LAST;
282 putname(nd->last.name);
285 Index: linux-2.6.9-5.0.3.EL/fs/namespace.c
286 ===================================================================
287 --- linux-2.6.9-5.0.3.EL.orig/fs/namespace.c 2005-02-26 14:28:01.000000000 +0200
288 +++ linux-2.6.9-5.0.3.EL/fs/namespace.c 2005-02-26 23:29:02.000000000 +0200
290 INIT_LIST_HEAD(&mnt->mnt_mounts);
291 INIT_LIST_HEAD(&mnt->mnt_list);
292 INIT_LIST_HEAD(&mnt->mnt_fslink);
293 + INIT_LIST_HEAD(&mnt->mnt_lustre_list);
295 int size = strlen(name)+1;
296 char *newname = kmalloc(size, GFP_KERNEL);
299 static void detach_mnt(struct vfsmount *mnt, struct nameidata *old_nd)
301 + memset(old_nd, 0, sizeof(*old_nd));
302 old_nd->dentry = mnt->mnt_mountpoint;
303 old_nd->mnt = mnt->mnt_parent;
304 mnt->mnt_parent = mnt;
307 struct super_block *sb = mnt->mnt_sb;
309 + spin_lock(&dcache_lock);
310 + list_del(&mnt->mnt_lustre_list);
311 + spin_unlock(&dcache_lock);
313 deactivate_super(sb);
319 + if (sb->s_op->umount_lustre)
320 + sb->s_op->umount_lustre(sb);
321 if( (flags&MNT_FORCE) && sb->s_op->umount_begin)
322 sb->s_op->umount_begin(sb);
326 if (!old_name || !*old_name)
328 + intent_init(&old_nd.intent, IT_LOOKUP);
329 err = path_lookup(old_name, LOOKUP_FOLLOW, &old_nd);
334 if (!old_name || !*old_name)
336 + intent_init(&old_nd.intent, IT_LOOKUP);
337 err = path_lookup(old_name, LOOKUP_FOLLOW, &old_nd);
340 @@ -1012,6 +1021,7 @@
344 + intent_init(&nd.intent, IT_LOOKUP);
346 if ((flags & MS_MGC_MSK) == MS_MGC_VAL)
347 flags &= ~MS_MGC_MSK;
348 Index: linux-2.6.9-5.0.3.EL/fs/open.c
349 ===================================================================
350 --- linux-2.6.9-5.0.3.EL.orig/fs/open.c 2005-02-26 14:28:01.000000000 +0200
351 +++ linux-2.6.9-5.0.3.EL/fs/open.c 2005-02-26 23:29:02.000000000 +0200
352 @@ -215,12 +215,12 @@
354 struct inode * inode;
357 + intent_init(&nd.intent, IT_GETATTR);
359 if (length < 0) /* sorry, but loff_t says... */
362 - error = user_path_walk(path, &nd);
363 + error = user_path_walk_it(path, &nd);
366 inode = nd.dentry->d_inode;
368 int old_fsuid, old_fsgid;
369 kernel_cap_t old_cap;
371 + intent_init(&nd.intent, IT_GETATTR);
373 if (mode & ~S_IRWXO) /* where's F_OK, X_OK, W_OK, R_OK? */
375 @@ -498,13 +499,14 @@
377 current->cap_effective = current->cap_permitted;
379 - res = __user_walk(filename, LOOKUP_FOLLOW|LOOKUP_ACCESS, &nd);
380 + res = __user_walk_it(filename, LOOKUP_FOLLOW|LOOKUP_ACCESS, &nd);
382 res = permission(nd.dentry->d_inode, mode, &nd);
383 /* SuS v2 requires we report a read only fs too */
384 if(!res && (mode & S_IWOTH) && IS_RDONLY(nd.dentry->d_inode)
385 && !special_file(nd.dentry->d_inode->i_mode))
395 + intent_init(&nd.intent, IT_GETATTR);
397 - error = __user_walk(filename, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, &nd);
398 + error = __user_walk_it(filename, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, &nd);
406 + intent_init(&nd.intent, IT_GETATTR);
408 - error = __user_walk(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY | LOOKUP_NOALT, &nd);
409 + error = __user_walk_it(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY | LOOKUP_NOALT, &nd);
414 * for the internal routines (ie open_namei()/follow_link() etc). 00 is
417 -struct file *filp_open(const char * filename, int flags, int mode)
419 - int namei_flags, error;
420 - struct nameidata nd;
422 - namei_flags = flags;
423 - if ((namei_flags+1) & O_ACCMODE)
425 - if (namei_flags & O_TRUNC)
428 - error = open_namei(filename, namei_flags, mode, &nd);
430 - return dentry_open(nd.dentry, nd.mnt, flags);
432 - return ERR_PTR(error);
435 -EXPORT_SYMBOL(filp_open);
437 -struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags)
438 +struct file *dentry_open_it(struct dentry *dentry, struct vfsmount *mnt, int flags,
439 + struct lookup_intent *it)
446 f->f_mode = ((flags+1) & O_ACCMODE) | FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE;
448 inode = dentry->d_inode;
449 if (f->f_mode & FMODE_WRITE) {
450 error = get_write_access(inode);
452 error = f->f_op->open(inode,f);
455 + intent_release(it);
457 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);
463 + intent_release(it);
466 return ERR_PTR(error);
469 EXPORT_SYMBOL(dentry_open);
471 +struct file *filp_open(const char * filename, int flags, int mode)
473 + int namei_flags, error;
474 + struct file * temp_filp;
475 + struct nameidata nd;
476 + intent_init(&nd.intent, IT_OPEN);
478 + namei_flags = flags;
479 + if ((namei_flags+1) & O_ACCMODE)
481 + if (namei_flags & O_TRUNC)
484 + error = open_namei(filename, namei_flags, mode, &nd);
486 + temp_filp = dentry_open_it(nd.dentry, nd.mnt, flags, &nd.intent);
489 + return ERR_PTR(error);
493 +struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags)
495 + struct lookup_intent it;
496 + intent_init(&it, IT_LOOKUP);
498 + return dentry_open_it(dentry, mnt, flags, &it);
502 * Find an empty file descriptor entry, and mark it busy.
504 Index: linux-2.6.9-5.0.3.EL/fs/stat.c
505 ===================================================================
506 --- linux-2.6.9-5.0.3.EL.orig/fs/stat.c 2005-02-26 14:28:01.000000000 +0200
507 +++ linux-2.6.9-5.0.3.EL/fs/stat.c 2005-02-26 23:29:02.000000000 +0200
510 EXPORT_SYMBOL(generic_fillattr);
512 -int vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
513 +int vfs_getattr_it(struct vfsmount *mnt, struct dentry *dentry, struct lookup_intent *it, struct kstat *stat)
515 struct inode *inode = dentry->d_inode;
521 + if (inode->i_op->getattr_it)
522 + return inode->i_op->getattr_it(mnt, dentry, it, stat);
523 if (inode->i_op->getattr)
524 return inode->i_op->getattr(mnt, dentry, stat);
528 EXPORT_SYMBOL(vfs_getattr);
530 +int vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
532 + return vfs_getattr_it(mnt, dentry, NULL, stat);
535 int vfs_stat(char __user *name, struct kstat *stat)
539 + intent_init(&nd.intent, IT_GETATTR);
541 - error = user_path_walk(name, &nd);
542 + error = user_path_walk_it(name, &nd);
544 - error = vfs_getattr(nd.mnt, nd.dentry, stat);
545 + error = vfs_getattr_it(nd.mnt, nd.dentry, &nd.intent, stat);
553 + intent_init(&nd.intent, IT_GETATTR);
555 - error = user_path_walk_link(name, &nd);
556 + error = user_path_walk_link_it(name, &nd);
558 - error = vfs_getattr(nd.mnt, nd.dentry, stat);
559 + error = vfs_getattr_it(nd.mnt, nd.dentry, &nd.intent, stat);
565 struct file *f = fget(fd);
567 + struct nameidata nd;
568 + intent_init(&nd.intent, IT_GETATTR);
571 - error = vfs_getattr(f->f_vfsmnt, f->f_dentry, stat);
572 + error = vfs_getattr_it(f->f_vfsmnt, f->f_dentry, &nd.intent, stat);
573 + intent_release(&nd.intent);
577 Index: linux-2.6.9-5.0.3.EL/fs/nfs/dir.c
578 ===================================================================
579 --- linux-2.6.9-5.0.3.EL.orig/fs/nfs/dir.c 2005-02-26 14:28:01.000000000 +0200
580 +++ linux-2.6.9-5.0.3.EL/fs/nfs/dir.c 2005-04-01 18:10:28.924760536 +0300
583 if (!nd || (nd->flags & LOOKUP_CONTINUE) || !(nd->flags & LOOKUP_CREATE))
585 - return (nd->intent.open.flags & O_EXCL) != 0;
586 + return (nd->intent.it_flags & O_EXCL) != 0;
589 static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *nd)
590 @@ -1043,7 +1043,7 @@
591 attr.ia_valid = ATTR_MODE;
593 if (nd && (nd->flags & LOOKUP_CREATE))
594 - open_flags = nd->intent.open.flags;
595 + open_flags = nd->intent.it_flags;
598 * The 0 argument passed into the create function should one day
599 Index: linux-2.6.9-5.0.3.EL/fs/inode.c
600 ===================================================================
601 --- linux-2.6.9-5.0.3.EL.orig/fs/inode.c 2005-02-26 14:28:01.000000000 +0200
602 +++ linux-2.6.9-5.0.3.EL/fs/inode.c 2005-02-26 23:29:02.000000000 +0200
604 inodes_stat.nr_unused--;
607 +EXPORT_SYMBOL(__iget);
609 * clear_inode - clear an inode
610 * @inode: inode to clear
611 Index: linux-2.6.9-5.0.3.EL/include/linux/dcache.h
612 ===================================================================
613 --- linux-2.6.9-5.0.3.EL.orig/include/linux/dcache.h 2005-02-26 14:28:01.000000000 +0200
614 +++ linux-2.6.9-5.0.3.EL/include/linux/dcache.h 2005-02-26 23:29:02.000000000 +0200
618 #include <asm/atomic.h>
619 +#include <linux/string.h>
620 #include <linux/list.h>
621 #include <linux/spinlock.h>
622 #include <linux/cache.h>
624 const unsigned char *name;
627 +#include <linux/namei.h>
629 struct dentry_stat_t {
632 Index: linux-2.6.9-5.0.3.EL/include/linux/fs.h
633 ===================================================================
634 --- linux-2.6.9-5.0.3.EL.orig/include/linux/fs.h 2005-02-26 14:28:01.000000000 +0200
635 +++ linux-2.6.9-5.0.3.EL/include/linux/fs.h 2005-02-26 23:29:02.000000000 +0200
639 #define FMODE_WRITE 2
640 +#define FMODE_EXEC 4
642 /* Internal kernel extensions */
643 #define FMODE_LSEEK 4
645 #define ATTR_ATTR_FLAG 1024
646 #define ATTR_KILL_SUID 2048
647 #define ATTR_KILL_SGID 4096
648 +#define ATTR_RAW 8192 /* file system, not vfs will massage attrs */
649 +#define ATTR_FROM_OPEN 16384 /* called from open path, ie O_TRUNC */
652 * This is the Inode Attributes structure, used for notify_change(). It
654 struct block_device *i_bdev;
657 + void *i_filterdata;
662 spinlock_t f_ep_lock;
663 #endif /* #ifdef CONFIG_EPOLL */
664 struct address_space *f_mapping;
665 + struct lookup_intent *f_it;
667 extern spinlock_t files_lock;
668 #define file_list_lock() spin_lock(&files_lock);
670 void (*truncate) (struct inode *);
671 int (*permission) (struct inode *, int, struct nameidata *);
672 int (*setattr) (struct dentry *, struct iattr *);
673 + int (*setattr_raw) (struct inode *, struct iattr *);
674 int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *);
675 + int (*getattr_it) (struct vfsmount *, struct dentry *, struct lookup_intent *, struct kstat *);
676 int (*setxattr) (struct dentry *, const char *,const void *,size_t,int);
677 ssize_t (*getxattr) (struct dentry *, const char *, void *, size_t);
678 ssize_t (*listxattr) (struct dentry *, char *, size_t);
680 int (*remount_fs) (struct super_block *, int *, char *);
681 void (*clear_inode) (struct inode *);
682 void (*umount_begin) (struct super_block *);
683 + void (*umount_lustre) (struct super_block *);
685 int (*show_options)(struct seq_file *, struct vfsmount *);
687 @@ -1164,6 +1172,7 @@
688 extern struct vfsmount *kern_mount(struct file_system_type *);
689 extern int may_umount_tree(struct vfsmount *);
690 extern int may_umount(struct vfsmount *);
691 +struct vfsmount *do_kern_mount(const char *type, int flags, const char *name, void *data);
692 extern long do_mount(char *, char *, char *, unsigned long, void *);
694 extern int vfs_statfs(struct super_block *, struct kstatfs *);
695 @@ -1228,6 +1237,7 @@
696 extern int do_truncate(struct dentry *, loff_t start);
697 extern struct file *filp_open(const char *, int, int);
698 extern struct file * dentry_open(struct dentry *, struct vfsmount *, int);
699 +extern struct file * dentry_open_it(struct dentry *, struct vfsmount *, int, struct lookup_intent *);
700 extern int filp_close(struct file *, fl_owner_t id);
701 extern char * getname(const char __user *);
703 Index: linux-2.6.9-5.0.3.EL/include/linux/namei.h
704 ===================================================================
705 --- linux-2.6.9-5.0.3.EL.orig/include/linux/namei.h 2005-02-26 14:28:01.000000000 +0200
706 +++ linux-2.6.9-5.0.3.EL/include/linux/namei.h 2005-02-26 23:29:02.000000000 +0200
708 #define _LINUX_NAMEI_H
710 #include <linux/linkage.h>
711 +#include <linux/string.h>
716 -struct open_intent {
719 +/* intent opcodes */
721 +#define IT_CREAT (1<<1)
722 +#define IT_READDIR (1<<2)
723 +#define IT_GETATTR (1<<3)
724 +#define IT_LOOKUP (1<<4)
725 +#define IT_UNLINK (1<<5)
726 +#define IT_TRUNC (1<<6)
727 +#define IT_GETXATTR (1<<7)
729 +struct lustre_intent_data {
730 + int it_disposition;
732 + __u64 it_lock_handle;
737 +#define INTENT_MAGIC 0x19620323
738 +struct lookup_intent {
740 + void (*it_op_release)(struct lookup_intent *);
743 + int it_create_mode;
745 + struct lustre_intent_data lustre;
749 +static inline void intent_init(struct lookup_intent *it, int op)
751 + memset(it, 0, sizeof(*it));
752 + it->it_magic = INTENT_MAGIC;
756 enum { MAX_NESTED_LINKS = 8 };
761 char *saved_names[MAX_NESTED_LINKS + 1];
765 - struct open_intent open;
767 + struct lookup_intent intent;
772 #define LOOKUP_PARENT 16
773 #define LOOKUP_NOALT 32
774 #define LOOKUP_ATOMIC 64
775 +#define LOOKUP_LAST (0x1000)
776 +#define LOOKUP_LINK_NOTLAST (0x2000)
781 #define LOOKUP_ACCESS (0x0400)
783 extern int FASTCALL(__user_walk(const char __user *, unsigned, struct nameidata *));
784 +extern int FASTCALL(__user_walk_it(const char __user *name, unsigned flags, struct nameidata *nd));
785 +#define user_path_walk_it(name,nd) \
786 + __user_walk_it(name, LOOKUP_FOLLOW, nd)
787 +#define user_path_walk_link_it(name,nd) \
788 + __user_walk_it(name, 0, nd)
789 +extern void intent_release(struct lookup_intent *);
790 #define user_path_walk(name,nd) \
791 __user_walk(name, LOOKUP_FOLLOW, nd)
792 #define user_path_walk_link(name,nd) \
795 extern struct dentry * lookup_one_len(const char *, struct dentry *, int);
796 extern struct dentry * lookup_hash(struct qstr *, struct dentry *);
798 extern int follow_down(struct vfsmount **, struct dentry **);
799 extern int follow_up(struct vfsmount **, struct dentry **);
801 Index: linux-2.6.9-5.0.3.EL/include/linux/mount.h
802 ===================================================================
803 --- linux-2.6.9-5.0.3.EL.orig/include/linux/mount.h 2005-02-26 14:28:01.000000000 +0200
804 +++ linux-2.6.9-5.0.3.EL/include/linux/mount.h 2005-02-26 23:29:02.000000000 +0200
806 struct list_head mnt_list;
807 struct list_head mnt_fslink; /* link in fs-specific expiry list */
808 struct namespace *mnt_namespace; /* containing namespace */
809 + struct list_head mnt_lustre_list; /* GNS mount list */
810 + unsigned long mnt_last_used; /* for GNS auto-umount (jiffies) */
813 static inline struct vfsmount *mntget(struct vfsmount *mnt)
814 Index: linux-2.6.9-5.0.3.EL/kernel/exit.c
815 ===================================================================
816 --- linux-2.6.9-5.0.3.EL.orig/kernel/exit.c 2005-02-26 14:28:01.000000000 +0200
817 +++ linux-2.6.9-5.0.3.EL/kernel/exit.c 2005-02-26 23:29:02.000000000 +0200
819 write_unlock_irq(&tasklist_lock);
822 +EXPORT_SYMBOL(reparent_to_init);
824 void __set_special_pids(pid_t session, pid_t pgrp)
826 struct task_struct *curr = current;
831 +EXPORT_SYMBOL(exit_files);
833 static inline void __put_fs_struct(struct fs_struct *fs)
835 /* No need to hold fs->lock if we are killing it */