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-25 13:43:02.688574384 +0200
4 +++ linux-2.6.9-5.0.3.EL/fs/exec.c 2005-02-25 13:43:42.442530864 +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-25 13:43:02.692573776 +0200
51 +++ linux-2.6.9-5.0.3.EL/fs/namei.c 2005-02-25 13:43:42.446530256 +0200
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;
124 + 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");
151 if (inode->i_op->follow_link) {
153 + nd->flags |= LOOKUP_LINK_NOTLAST;
154 err = do_follow_link(next.dentry, nd);
155 + nd->flags &= ~LOOKUP_LINK_NOTLAST;
159 @@ -791,14 +842,26 @@
160 inode = nd->dentry->d_inode;
163 + nd->flags |= LOOKUP_LAST;
164 + err = revalidate_special(nd);
165 + nd->flags &= ~LOOKUP_LAST;
166 + if (!nd->dentry->d_inode)
175 if (nd->dentry->d_op && nd->dentry->d_op->d_hash) {
176 err = nd->dentry->d_op->d_hash(nd->dentry, &this);
180 + nd->flags |= LOOKUP_LAST;
181 err = do_lookup(nd, &this, &next, atomic);
182 + nd->flags &= ~LOOKUP_LAST;
185 follow_mount(&next.mnt, &next.dentry);
186 @@ -1016,7 +1079,7 @@
190 -struct dentry * lookup_one_len(const char * name, struct dentry * base, int len)
191 +struct dentry * lookup_one_len_it(const char * name, struct dentry * base, int len, struct nameidata *nd)
195 @@ -1036,11 +1099,16 @@
197 this.hash = end_name_hash(hash);
199 - return lookup_hash(&this, base);
200 + return __lookup_hash(&this, base, nd);
202 return ERR_PTR(-EACCES);
205 +struct dentry * lookup_one_len(const char * name, struct dentry * base, int len)
207 + return lookup_one_len_it(name, base, len, NULL);
213 @@ -1052,7 +1120,7 @@
214 * that namei follows links, while lnamei does not.
217 -int fastcall __user_walk(const char __user *name, unsigned flags, struct nameidata *nd)
218 +int fastcall __user_walk_it(const char __user *name, unsigned flags, struct nameidata *nd)
220 char *tmp = getname(name);
221 int err = PTR_ERR(tmp);
222 @@ -1064,6 +1132,12 @@
226 +int fastcall __user_walk(const char __user *name, unsigned flags, struct nameidata *nd)
228 + intent_init(&nd->intent, IT_LOOKUP);
229 + return __user_walk_it(name, flags, nd);
233 * It's inline, so penalty for filesystems that don't use sticky bit is
235 @@ -1347,8 +1421,8 @@
236 acc_mode |= MAY_APPEND;
238 /* Fill in the open() intent data */
239 - nd->intent.open.flags = flag;
240 - nd->intent.open.create_mode = mode;
241 + nd->intent.it_flags = flag;
242 + nd->intent.it_create_mode = mode;
245 * The simplest case - just a plain lookup.
246 @@ -1363,6 +1437,7 @@
248 * Create - we need to know the parent.
250 + nd->intent.it_op |= IT_CREAT;
251 error = path_lookup(pathname, LOOKUP_PARENT|LOOKUP_OPEN|LOOKUP_CREATE, nd);
254 @@ -1379,7 +1454,9 @@
256 nd->flags &= ~LOOKUP_PARENT;
257 down(&dir->d_inode->i_sem);
258 + nd->flags |= LOOKUP_LAST;
259 dentry = __lookup_hash(&nd->last, nd->dentry, nd);
260 + nd->flags &= ~LOOKUP_LAST;
263 error = PTR_ERR(dentry);
264 @@ -1492,7 +1569,9 @@
267 down(&dir->d_inode->i_sem);
268 + nd->flags |= LOOKUP_LAST;
269 dentry = __lookup_hash(&nd->last, nd->dentry, nd);
270 + nd->flags &= ~LOOKUP_LAST;
271 putname(nd->last.name);
274 Index: linux-2.6.9-5.0.3.EL/fs/namespace.c
275 ===================================================================
276 --- linux-2.6.9-5.0.3.EL.orig/fs/namespace.c 2005-02-25 13:43:02.695573320 +0200
277 +++ linux-2.6.9-5.0.3.EL/fs/namespace.c 2005-02-25 13:43:42.448529952 +0200
279 INIT_LIST_HEAD(&mnt->mnt_mounts);
280 INIT_LIST_HEAD(&mnt->mnt_list);
281 INIT_LIST_HEAD(&mnt->mnt_fslink);
282 + INIT_LIST_HEAD(&mnt->mnt_lustre_list);
284 int size = strlen(name)+1;
285 char *newname = kmalloc(size, GFP_KERNEL);
288 static void detach_mnt(struct vfsmount *mnt, struct nameidata *old_nd)
290 + memset(old_nd, 0, sizeof(*old_nd));
291 old_nd->dentry = mnt->mnt_mountpoint;
292 old_nd->mnt = mnt->mnt_parent;
293 mnt->mnt_parent = mnt;
296 struct super_block *sb = mnt->mnt_sb;
298 + spin_lock(&dcache_lock);
299 + list_del(&mnt->mnt_lustre_list);
300 + spin_unlock(&dcache_lock);
302 deactivate_super(sb);
308 + if (sb->s_op->umount_lustre)
309 + sb->s_op->umount_lustre(sb);
310 if( (flags&MNT_FORCE) && sb->s_op->umount_begin)
311 sb->s_op->umount_begin(sb);
315 if (!old_name || !*old_name)
317 + intent_init(&old_nd.intent, IT_LOOKUP);
318 err = path_lookup(old_name, LOOKUP_FOLLOW, &old_nd);
323 if (!old_name || !*old_name)
325 + intent_init(&old_nd.intent, IT_LOOKUP);
326 err = path_lookup(old_name, LOOKUP_FOLLOW, &old_nd);
329 @@ -1012,6 +1021,7 @@
333 + intent_init(&nd.intent, IT_LOOKUP);
335 if ((flags & MS_MGC_MSK) == MS_MGC_VAL)
336 flags &= ~MS_MGC_MSK;
337 Index: linux-2.6.9-5.0.3.EL/fs/open.c
338 ===================================================================
339 --- linux-2.6.9-5.0.3.EL.orig/fs/open.c 2005-02-25 13:43:02.725568760 +0200
340 +++ linux-2.6.9-5.0.3.EL/fs/open.c 2005-02-25 13:43:42.451529496 +0200
341 @@ -215,12 +215,12 @@
343 struct inode * inode;
346 + intent_init(&nd.intent, IT_GETATTR);
348 if (length < 0) /* sorry, but loff_t says... */
351 - error = user_path_walk(path, &nd);
352 + error = user_path_walk_it(path, &nd);
355 inode = nd.dentry->d_inode;
357 int old_fsuid, old_fsgid;
358 kernel_cap_t old_cap;
360 + intent_init(&nd.intent, IT_GETATTR);
362 if (mode & ~S_IRWXO) /* where's F_OK, X_OK, W_OK, R_OK? */
364 @@ -498,13 +499,14 @@
366 current->cap_effective = current->cap_permitted;
368 - res = __user_walk(filename, LOOKUP_FOLLOW|LOOKUP_ACCESS, &nd);
369 + res = __user_walk_it(filename, LOOKUP_FOLLOW|LOOKUP_ACCESS, &nd);
371 res = permission(nd.dentry->d_inode, mode, &nd);
372 /* SuS v2 requires we report a read only fs too */
373 if(!res && (mode & S_IWOTH) && IS_RDONLY(nd.dentry->d_inode)
374 && !special_file(nd.dentry->d_inode->i_mode))
384 + intent_init(&nd.intent, IT_CHDIR);
386 - error = __user_walk(filename, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, &nd);
387 + error = __user_walk_it(filename, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, &nd);
395 + intent_init(&nd.intent, IT_GETATTR);
397 - error = __user_walk(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY | LOOKUP_NOALT, &nd);
398 + error = __user_walk_it(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY | LOOKUP_NOALT, &nd);
403 * for the internal routines (ie open_namei()/follow_link() etc). 00 is
406 -struct file *filp_open(const char * filename, int flags, int mode)
408 - int namei_flags, error;
409 - struct nameidata nd;
411 - namei_flags = flags;
412 - if ((namei_flags+1) & O_ACCMODE)
414 - if (namei_flags & O_TRUNC)
417 - error = open_namei(filename, namei_flags, mode, &nd);
419 - return dentry_open(nd.dentry, nd.mnt, flags);
421 - return ERR_PTR(error);
424 -EXPORT_SYMBOL(filp_open);
426 -struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags)
427 +struct file *dentry_open_it(struct dentry *dentry, struct vfsmount *mnt, int flags,
428 + struct lookup_intent *it)
435 f->f_mode = ((flags+1) & O_ACCMODE) | FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE;
437 inode = dentry->d_inode;
438 if (f->f_mode & FMODE_WRITE) {
439 error = get_write_access(inode);
441 error = f->f_op->open(inode,f);
444 + intent_release(it);
446 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);
452 + intent_release(it);
455 return ERR_PTR(error);
458 EXPORT_SYMBOL(dentry_open);
460 +struct file *filp_open(const char * filename, int flags, int mode)
462 + int namei_flags, error;
463 + struct file * temp_filp;
464 + struct nameidata nd;
465 + intent_init(&nd.intent, IT_OPEN);
467 + namei_flags = flags;
468 + if ((namei_flags+1) & O_ACCMODE)
470 + if (namei_flags & O_TRUNC)
473 + error = open_namei(filename, namei_flags, mode, &nd);
475 + temp_filp = dentry_open_it(nd.dentry, nd.mnt, flags, &nd.intent);
478 + return ERR_PTR(error);
482 +struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags)
484 + struct lookup_intent it;
485 + intent_init(&it, IT_LOOKUP);
487 + return dentry_open_it(dentry, mnt, flags, &it);
491 * Find an empty file descriptor entry, and mark it busy.
493 Index: linux-2.6.9-5.0.3.EL/fs/stat.c
494 ===================================================================
495 --- linux-2.6.9-5.0.3.EL.orig/fs/stat.c 2005-02-25 13:43:02.726568608 +0200
496 +++ linux-2.6.9-5.0.3.EL/fs/stat.c 2005-02-25 13:43:42.452529344 +0200
499 EXPORT_SYMBOL(generic_fillattr);
501 -int vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
502 +int vfs_getattr_it(struct vfsmount *mnt, struct dentry *dentry, struct lookup_intent *it, struct kstat *stat)
504 struct inode *inode = dentry->d_inode;
510 + if (inode->i_op->getattr_it)
511 + return inode->i_op->getattr_it(mnt, dentry, it, stat);
512 if (inode->i_op->getattr)
513 return inode->i_op->getattr(mnt, dentry, stat);
517 EXPORT_SYMBOL(vfs_getattr);
519 +int vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
521 + return vfs_getattr_it(mnt, dentry, NULL, stat);
524 int vfs_stat(char __user *name, struct kstat *stat)
528 + intent_init(&nd.intent, IT_GETATTR);
530 - error = user_path_walk(name, &nd);
531 + error = user_path_walk_it(name, &nd);
533 - error = vfs_getattr(nd.mnt, nd.dentry, stat);
534 + error = vfs_getattr_it(nd.mnt, nd.dentry, &nd.intent, stat);
542 + intent_init(&nd.intent, IT_GETATTR);
544 - error = user_path_walk_link(name, &nd);
545 + error = user_path_walk_link_it(name, &nd);
547 - error = vfs_getattr(nd.mnt, nd.dentry, stat);
548 + error = vfs_getattr_it(nd.mnt, nd.dentry, &nd.intent, stat);
554 struct file *f = fget(fd);
556 + struct nameidata nd;
557 + intent_init(&nd.intent, IT_GETATTR);
560 - error = vfs_getattr(f->f_vfsmnt, f->f_dentry, stat);
561 + error = vfs_getattr_it(f->f_vfsmnt, f->f_dentry, &nd.intent, stat);
562 + intent_release(&nd.intent);
566 Index: linux-2.6.9-5.0.3.EL/fs/nfs/dir.c
567 ===================================================================
568 --- linux-2.6.9-5.0.3.EL.orig/fs/nfs/dir.c 2005-02-25 13:43:02.729568152 +0200
569 +++ linux-2.6.9-5.0.3.EL/fs/nfs/dir.c 2005-02-25 13:52:18.971006600 +0200
572 if (!nd || (nd->flags & LOOKUP_CONTINUE) || !(nd->flags & LOOKUP_CREATE))
574 - return (nd->intent.open.flags & O_EXCL) != 0;
575 + return (nd->intent.it_flags & O_EXCL) != 0;
578 static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *nd)
579 @@ -1043,7 +1043,7 @@
580 attr.ia_valid = ATTR_MODE;
582 if (nd && (nd->flags & LOOKUP_CREATE))
583 - open_flags = nd->intent.open.flags;
584 + open_flags = nd->intent.it_flags;
587 * The 0 argument passed into the create function should one day
588 Index: linux-2.6.9-5.0.3.EL/fs/inode.c
589 ===================================================================
590 --- linux-2.6.9-5.0.3.EL.orig/fs/inode.c 2005-02-25 13:43:02.731567848 +0200
591 +++ linux-2.6.9-5.0.3.EL/fs/inode.c 2005-02-25 13:43:42.457528584 +0200
593 inodes_stat.nr_unused--;
596 +EXPORT_SYMBOL(__iget);
598 * clear_inode - clear an inode
599 * @inode: inode to clear
600 Index: linux-2.6.9-5.0.3.EL/include/linux/dcache.h
601 ===================================================================
602 --- linux-2.6.9-5.0.3.EL.orig/include/linux/dcache.h 2005-02-25 13:43:02.733567544 +0200
603 +++ linux-2.6.9-5.0.3.EL/include/linux/dcache.h 2005-02-25 13:43:42.459528280 +0200
607 #include <asm/atomic.h>
608 +#include <linux/string.h>
609 #include <linux/list.h>
610 #include <linux/spinlock.h>
611 #include <linux/cache.h>
613 const unsigned char *name;
616 +#include <linux/namei.h>
618 struct dentry_stat_t {
621 Index: linux-2.6.9-5.0.3.EL/include/linux/fs.h
622 ===================================================================
623 --- linux-2.6.9-5.0.3.EL.orig/include/linux/fs.h 2005-02-25 13:43:02.736567088 +0200
624 +++ linux-2.6.9-5.0.3.EL/include/linux/fs.h 2005-02-25 13:43:42.462527824 +0200
628 #define FMODE_WRITE 2
629 +#define FMODE_EXEC 4
631 /* Internal kernel extensions */
632 #define FMODE_LSEEK 4
634 #define ATTR_ATTR_FLAG 1024
635 #define ATTR_KILL_SUID 2048
636 #define ATTR_KILL_SGID 4096
637 +#define ATTR_RAW 8192 /* file system, not vfs will massage attrs */
638 +#define ATTR_FROM_OPEN 16384 /* called from open path, ie O_TRUNC */
641 * This is the Inode Attributes structure, used for notify_change(). It
643 struct block_device *i_bdev;
646 + void *i_filterdata;
651 spinlock_t f_ep_lock;
652 #endif /* #ifdef CONFIG_EPOLL */
653 struct address_space *f_mapping;
654 + struct lookup_intent *f_it;
656 extern spinlock_t files_lock;
657 #define file_list_lock() spin_lock(&files_lock);
659 void (*truncate) (struct inode *);
660 int (*permission) (struct inode *, int, struct nameidata *);
661 int (*setattr) (struct dentry *, struct iattr *);
662 + int (*setattr_raw) (struct inode *, struct iattr *);
663 int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *);
664 + int (*getattr_it) (struct vfsmount *, struct dentry *, struct lookup_intent *, struct kstat *);
665 int (*setxattr) (struct dentry *, const char *,const void *,size_t,int);
666 ssize_t (*getxattr) (struct dentry *, const char *, void *, size_t);
667 ssize_t (*listxattr) (struct dentry *, char *, size_t);
669 int (*remount_fs) (struct super_block *, int *, char *);
670 void (*clear_inode) (struct inode *);
671 void (*umount_begin) (struct super_block *);
672 + void (*umount_lustre) (struct super_block *);
674 int (*show_options)(struct seq_file *, struct vfsmount *);
676 @@ -1164,6 +1172,7 @@
677 extern struct vfsmount *kern_mount(struct file_system_type *);
678 extern int may_umount_tree(struct vfsmount *);
679 extern int may_umount(struct vfsmount *);
680 +struct vfsmount *do_kern_mount(const char *type, int flags, const char *name, void *data);
681 extern long do_mount(char *, char *, char *, unsigned long, void *);
683 extern int vfs_statfs(struct super_block *, struct kstatfs *);
684 @@ -1228,6 +1237,7 @@
685 extern int do_truncate(struct dentry *, loff_t start);
686 extern struct file *filp_open(const char *, int, int);
687 extern struct file * dentry_open(struct dentry *, struct vfsmount *, int);
688 +extern struct file * dentry_open_it(struct dentry *, struct vfsmount *, int, struct lookup_intent *);
689 extern int filp_close(struct file *, fl_owner_t id);
690 extern char * getname(const char __user *);
692 Index: linux-2.6.9-5.0.3.EL/include/linux/namei.h
693 ===================================================================
694 --- linux-2.6.9-5.0.3.EL.orig/include/linux/namei.h 2005-02-25 13:43:02.737566936 +0200
695 +++ linux-2.6.9-5.0.3.EL/include/linux/namei.h 2005-02-25 13:53:33.690647488 +0200
697 #define _LINUX_NAMEI_H
699 #include <linux/linkage.h>
700 +#include <linux/string.h>
705 -struct open_intent {
708 +/* intent opcodes */
710 +#define IT_CREAT (1<<1)
711 +#define IT_READDIR (1<<2)
712 +#define IT_GETATTR (1<<3)
713 +#define IT_LOOKUP (1<<4)
714 +#define IT_UNLINK (1<<5)
715 +#define IT_TRUNC (1<<6)
716 +#define IT_GETXATTR (1<<7)
717 +#define IT_CHDIR (1<<8)
719 +struct lustre_intent_data {
720 + int it_disposition;
722 + __u64 it_lock_handle;
727 +#define INTENT_MAGIC 0x19620323
728 +struct lookup_intent {
730 + void (*it_op_release)(struct lookup_intent *);
733 + int it_create_mode;
735 + struct lustre_intent_data lustre;
739 +static inline void intent_init(struct lookup_intent *it, int op)
741 + memset(it, 0, sizeof(*it));
742 + it->it_magic = INTENT_MAGIC;
746 enum { MAX_NESTED_LINKS = 8 };
752 char *saved_names[MAX_NESTED_LINKS + 1];
756 - struct open_intent open;
758 + struct lookup_intent intent;
763 #define LOOKUP_PARENT 16
764 #define LOOKUP_NOALT 32
765 #define LOOKUP_ATOMIC 64
766 +#define LOOKUP_LAST (1<<7)
767 +#define LOOKUP_LINK_NOTLAST (1<<8)
772 #define LOOKUP_ACCESS (0x0400)
774 extern int FASTCALL(__user_walk(const char __user *, unsigned, struct nameidata *));
775 +extern int FASTCALL(__user_walk_it(const char __user *name, unsigned flags, struct nameidata *nd));
776 +#define user_path_walk_it(name,nd) \
777 + __user_walk_it(name, LOOKUP_FOLLOW, nd)
778 +#define user_path_walk_link_it(name,nd) \
779 + __user_walk_it(name, 0, nd)
780 +extern void intent_release(struct lookup_intent *);
781 #define user_path_walk(name,nd) \
782 __user_walk(name, LOOKUP_FOLLOW, nd)
783 #define user_path_walk_link(name,nd) \
786 extern struct dentry * lookup_one_len(const char *, struct dentry *, int);
787 extern struct dentry * lookup_hash(struct qstr *, struct dentry *);
789 extern int follow_down(struct vfsmount **, struct dentry **);
790 extern int follow_up(struct vfsmount **, struct dentry **);
792 Index: linux-2.6.9-5.0.3.EL/include/linux/mount.h
793 ===================================================================
794 --- linux-2.6.9-5.0.3.EL.orig/include/linux/mount.h 2005-02-25 13:43:02.738566784 +0200
795 +++ linux-2.6.9-5.0.3.EL/include/linux/mount.h 2005-02-25 13:43:42.464527520 +0200
797 struct list_head mnt_list;
798 struct list_head mnt_fslink; /* link in fs-specific expiry list */
799 struct namespace *mnt_namespace; /* containing namespace */
800 + struct list_head mnt_lustre_list; /* GNS mount list */
801 + unsigned long mnt_last_used; /* for GNS auto-umount (jiffies) */
804 static inline struct vfsmount *mntget(struct vfsmount *mnt)
805 Index: linux-2.6.9-5.0.3.EL/kernel/exit.c
806 ===================================================================
807 --- linux-2.6.9-5.0.3.EL.orig/kernel/exit.c 2005-02-25 13:43:02.740566480 +0200
808 +++ linux-2.6.9-5.0.3.EL/kernel/exit.c 2005-02-25 13:43:42.466527216 +0200
810 write_unlock_irq(&tasklist_lock);
813 +EXPORT_SYMBOL(reparent_to_init);
815 void __set_special_pids(pid_t session, pid_t pgrp)
817 struct task_struct *curr = current;
822 +EXPORT_SYMBOL(exit_files);
824 static inline void __put_fs_struct(struct fs_struct *fs)
826 /* No need to hold fs->lock if we are killing it */