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.373228096 +0200
4 +++ linux-2.6.9-5.0.3.EL/fs/exec.c 2005-02-26 14:32:04.728232512 +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.378227336 +0200
51 +++ linux-2.6.9-5.0.3.EL/fs/namei.c 2005-02-26 14:32:04.732231904 +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,34 @@
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)
172 + if (lookup_flags & LOOKUP_DIRECTORY) {
174 + if(!nd->dentry->d_inode->i_op ||
175 + !nd->dentry->d_inode->i_op->lookup) {
183 if (nd->dentry->d_op && nd->dentry->d_op->d_hash) {
184 err = nd->dentry->d_op->d_hash(nd->dentry, &this);
188 + nd->flags |= LOOKUP_LAST;
189 err = do_lookup(nd, &this, &next, atomic);
190 + nd->flags &= ~LOOKUP_LAST;
193 follow_mount(&next.mnt, &next.dentry);
194 @@ -1016,7 +1087,7 @@
198 -struct dentry * lookup_one_len(const char * name, struct dentry * base, int len)
199 +struct dentry * lookup_one_len_it(const char * name, struct dentry * base, int len, struct nameidata *nd)
203 @@ -1036,11 +1107,16 @@
205 this.hash = end_name_hash(hash);
207 - return lookup_hash(&this, base);
208 + return __lookup_hash(&this, base, nd);
210 return ERR_PTR(-EACCES);
213 +struct dentry * lookup_one_len(const char * name, struct dentry * base, int len)
215 + return lookup_one_len_it(name, base, len, NULL);
221 @@ -1052,7 +1128,7 @@
222 * that namei follows links, while lnamei does not.
225 -int fastcall __user_walk(const char __user *name, unsigned flags, struct nameidata *nd)
226 +int fastcall __user_walk_it(const char __user *name, unsigned flags, struct nameidata *nd)
228 char *tmp = getname(name);
229 int err = PTR_ERR(tmp);
230 @@ -1064,6 +1140,12 @@
234 +int fastcall __user_walk(const char __user *name, unsigned flags, struct nameidata *nd)
236 + intent_init(&nd->intent, IT_LOOKUP);
237 + return __user_walk_it(name, flags, nd);
241 * It's inline, so penalty for filesystems that don't use sticky bit is
243 @@ -1347,8 +1429,8 @@
244 acc_mode |= MAY_APPEND;
246 /* Fill in the open() intent data */
247 - nd->intent.open.flags = flag;
248 - nd->intent.open.create_mode = mode;
249 + nd->intent.it_flags = flag;
250 + nd->intent.it_create_mode = mode;
253 * The simplest case - just a plain lookup.
254 @@ -1363,6 +1445,7 @@
256 * Create - we need to know the parent.
258 + nd->intent.it_op |= IT_CREAT;
259 error = path_lookup(pathname, LOOKUP_PARENT|LOOKUP_OPEN|LOOKUP_CREATE, nd);
262 @@ -1379,7 +1462,9 @@
264 nd->flags &= ~LOOKUP_PARENT;
265 down(&dir->d_inode->i_sem);
266 + nd->flags |= LOOKUP_LAST;
267 dentry = __lookup_hash(&nd->last, nd->dentry, nd);
268 + nd->flags &= ~LOOKUP_LAST;
271 error = PTR_ERR(dentry);
272 @@ -1492,7 +1577,9 @@
275 down(&dir->d_inode->i_sem);
276 + nd->flags |= LOOKUP_LAST;
277 dentry = __lookup_hash(&nd->last, nd->dentry, nd);
278 + nd->flags &= ~LOOKUP_LAST;
279 putname(nd->last.name);
282 Index: linux-2.6.9-5.0.3.EL/fs/namespace.c
283 ===================================================================
284 --- linux-2.6.9-5.0.3.EL.orig/fs/namespace.c 2005-02-26 14:28:01.381226880 +0200
285 +++ linux-2.6.9-5.0.3.EL/fs/namespace.c 2005-02-26 14:32:04.734231600 +0200
287 INIT_LIST_HEAD(&mnt->mnt_mounts);
288 INIT_LIST_HEAD(&mnt->mnt_list);
289 INIT_LIST_HEAD(&mnt->mnt_fslink);
290 + INIT_LIST_HEAD(&mnt->mnt_lustre_list);
292 int size = strlen(name)+1;
293 char *newname = kmalloc(size, GFP_KERNEL);
296 static void detach_mnt(struct vfsmount *mnt, struct nameidata *old_nd)
298 + memset(old_nd, 0, sizeof(*old_nd));
299 old_nd->dentry = mnt->mnt_mountpoint;
300 old_nd->mnt = mnt->mnt_parent;
301 mnt->mnt_parent = mnt;
304 struct super_block *sb = mnt->mnt_sb;
306 + spin_lock(&dcache_lock);
307 + list_del(&mnt->mnt_lustre_list);
308 + spin_unlock(&dcache_lock);
310 deactivate_super(sb);
316 + if (sb->s_op->umount_lustre)
317 + sb->s_op->umount_lustre(sb);
318 if( (flags&MNT_FORCE) && sb->s_op->umount_begin)
319 sb->s_op->umount_begin(sb);
323 if (!old_name || !*old_name)
325 + intent_init(&old_nd.intent, IT_LOOKUP);
326 err = path_lookup(old_name, LOOKUP_FOLLOW, &old_nd);
331 if (!old_name || !*old_name)
333 + intent_init(&old_nd.intent, IT_LOOKUP);
334 err = path_lookup(old_name, LOOKUP_FOLLOW, &old_nd);
337 @@ -1012,6 +1021,7 @@
341 + intent_init(&nd.intent, IT_LOOKUP);
343 if ((flags & MS_MGC_MSK) == MS_MGC_VAL)
344 flags &= ~MS_MGC_MSK;
345 Index: linux-2.6.9-5.0.3.EL/fs/open.c
346 ===================================================================
347 --- linux-2.6.9-5.0.3.EL.orig/fs/open.c 2005-02-26 14:28:01.383226576 +0200
348 +++ linux-2.6.9-5.0.3.EL/fs/open.c 2005-02-26 14:32:04.736231296 +0200
349 @@ -215,12 +215,12 @@
351 struct inode * inode;
354 + intent_init(&nd.intent, IT_GETATTR);
356 if (length < 0) /* sorry, but loff_t says... */
359 - error = user_path_walk(path, &nd);
360 + error = user_path_walk_it(path, &nd);
363 inode = nd.dentry->d_inode;
365 int old_fsuid, old_fsgid;
366 kernel_cap_t old_cap;
368 + intent_init(&nd.intent, IT_GETATTR);
370 if (mode & ~S_IRWXO) /* where's F_OK, X_OK, W_OK, R_OK? */
372 @@ -498,13 +499,14 @@
374 current->cap_effective = current->cap_permitted;
376 - res = __user_walk(filename, LOOKUP_FOLLOW|LOOKUP_ACCESS, &nd);
377 + res = __user_walk_it(filename, LOOKUP_FOLLOW|LOOKUP_ACCESS, &nd);
379 res = permission(nd.dentry->d_inode, mode, &nd);
380 /* SuS v2 requires we report a read only fs too */
381 if(!res && (mode & S_IWOTH) && IS_RDONLY(nd.dentry->d_inode)
382 && !special_file(nd.dentry->d_inode->i_mode))
392 + intent_init(&nd.intent, IT_GETATTR);
394 - error = __user_walk(filename, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, &nd);
395 + error = __user_walk_it(filename, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, &nd);
403 + intent_init(&nd.intent, IT_GETATTR);
405 - error = __user_walk(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY | LOOKUP_NOALT, &nd);
406 + error = __user_walk_it(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY | LOOKUP_NOALT, &nd);
411 * for the internal routines (ie open_namei()/follow_link() etc). 00 is
414 -struct file *filp_open(const char * filename, int flags, int mode)
416 - int namei_flags, error;
417 - struct nameidata nd;
419 - namei_flags = flags;
420 - if ((namei_flags+1) & O_ACCMODE)
422 - if (namei_flags & O_TRUNC)
425 - error = open_namei(filename, namei_flags, mode, &nd);
427 - return dentry_open(nd.dentry, nd.mnt, flags);
429 - return ERR_PTR(error);
432 -EXPORT_SYMBOL(filp_open);
434 -struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags)
435 +struct file *dentry_open_it(struct dentry *dentry, struct vfsmount *mnt, int flags,
436 + struct lookup_intent *it)
443 f->f_mode = ((flags+1) & O_ACCMODE) | FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE;
445 inode = dentry->d_inode;
446 if (f->f_mode & FMODE_WRITE) {
447 error = get_write_access(inode);
449 error = f->f_op->open(inode,f);
452 + intent_release(it);
454 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);
460 + intent_release(it);
463 return ERR_PTR(error);
466 EXPORT_SYMBOL(dentry_open);
468 +struct file *filp_open(const char * filename, int flags, int mode)
470 + int namei_flags, error;
471 + struct file * temp_filp;
472 + struct nameidata nd;
473 + intent_init(&nd.intent, IT_OPEN);
475 + namei_flags = flags;
476 + if ((namei_flags+1) & O_ACCMODE)
478 + if (namei_flags & O_TRUNC)
481 + error = open_namei(filename, namei_flags, mode, &nd);
483 + temp_filp = dentry_open_it(nd.dentry, nd.mnt, flags, &nd.intent);
486 + return ERR_PTR(error);
490 +struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags)
492 + struct lookup_intent it;
493 + intent_init(&it, IT_LOOKUP);
495 + return dentry_open_it(dentry, mnt, flags, &it);
499 * Find an empty file descriptor entry, and mark it busy.
501 Index: linux-2.6.9-5.0.3.EL/fs/stat.c
502 ===================================================================
503 --- linux-2.6.9-5.0.3.EL.orig/fs/stat.c 2005-02-26 14:28:01.384226424 +0200
504 +++ linux-2.6.9-5.0.3.EL/fs/stat.c 2005-02-26 14:32:04.738230992 +0200
507 EXPORT_SYMBOL(generic_fillattr);
509 -int vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
510 +int vfs_getattr_it(struct vfsmount *mnt, struct dentry *dentry, struct lookup_intent *it, struct kstat *stat)
512 struct inode *inode = dentry->d_inode;
518 + if (inode->i_op->getattr_it)
519 + return inode->i_op->getattr_it(mnt, dentry, it, stat);
520 if (inode->i_op->getattr)
521 return inode->i_op->getattr(mnt, dentry, stat);
525 EXPORT_SYMBOL(vfs_getattr);
527 +int vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
529 + return vfs_getattr_it(mnt, dentry, NULL, stat);
532 int vfs_stat(char __user *name, struct kstat *stat)
536 + intent_init(&nd.intent, IT_GETATTR);
538 - error = user_path_walk(name, &nd);
539 + error = user_path_walk_it(name, &nd);
541 - error = vfs_getattr(nd.mnt, nd.dentry, stat);
542 + error = vfs_getattr_it(nd.mnt, nd.dentry, &nd.intent, stat);
550 + intent_init(&nd.intent, IT_GETATTR);
552 - error = user_path_walk_link(name, &nd);
553 + error = user_path_walk_link_it(name, &nd);
555 - error = vfs_getattr(nd.mnt, nd.dentry, stat);
556 + error = vfs_getattr_it(nd.mnt, nd.dentry, &nd.intent, stat);
562 struct file *f = fget(fd);
564 + struct nameidata nd;
565 + intent_init(&nd.intent, IT_GETATTR);
568 - error = vfs_getattr(f->f_vfsmnt, f->f_dentry, stat);
569 + error = vfs_getattr_it(f->f_vfsmnt, f->f_dentry, &nd.intent, stat);
570 + intent_release(&nd.intent);
574 Index: linux-2.6.9-5.0.3.EL/fs/nfs/dir.c
575 ===================================================================
576 --- linux-2.6.9-5.0.3.EL.orig/fs/nfs/dir.c 2005-02-26 14:28:01.387225968 +0200
577 +++ linux-2.6.9-5.0.3.EL/fs/nfs/dir.c 2005-02-26 14:32:04.740230688 +0200
580 if (!nd || (nd->flags & LOOKUP_CONTINUE) || !(nd->flags & LOOKUP_CREATE))
582 - return (nd->intent.open.flags & O_EXCL) != 0;
583 + return (nd->intent.it_flags & O_EXCL) != 0;
586 static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *nd)
587 @@ -1043,7 +1043,7 @@
588 attr.ia_valid = ATTR_MODE;
590 if (nd && (nd->flags & LOOKUP_CREATE))
591 - open_flags = nd->intent.open.flags;
592 + open_flags = nd->intent.it_flags;
595 * The 0 argument passed into the create function should one day
596 Index: linux-2.6.9-5.0.3.EL/fs/inode.c
597 ===================================================================
598 --- linux-2.6.9-5.0.3.EL.orig/fs/inode.c 2005-02-26 14:28:01.389225664 +0200
599 +++ linux-2.6.9-5.0.3.EL/fs/inode.c 2005-02-26 14:32:04.742230384 +0200
601 inodes_stat.nr_unused--;
604 +EXPORT_SYMBOL(__iget);
606 * clear_inode - clear an inode
607 * @inode: inode to clear
608 Index: linux-2.6.9-5.0.3.EL/include/linux/dcache.h
609 ===================================================================
610 --- linux-2.6.9-5.0.3.EL.orig/include/linux/dcache.h 2005-02-26 14:28:01.390225512 +0200
611 +++ linux-2.6.9-5.0.3.EL/include/linux/dcache.h 2005-02-26 14:32:04.743230232 +0200
615 #include <asm/atomic.h>
616 +#include <linux/string.h>
617 #include <linux/list.h>
618 #include <linux/spinlock.h>
619 #include <linux/cache.h>
621 const unsigned char *name;
624 +#include <linux/namei.h>
626 struct dentry_stat_t {
629 Index: linux-2.6.9-5.0.3.EL/include/linux/fs.h
630 ===================================================================
631 --- linux-2.6.9-5.0.3.EL.orig/include/linux/fs.h 2005-02-26 14:28:01.393225056 +0200
632 +++ linux-2.6.9-5.0.3.EL/include/linux/fs.h 2005-02-26 14:32:04.745229928 +0200
636 #define FMODE_WRITE 2
637 +#define FMODE_EXEC 4
639 /* Internal kernel extensions */
640 #define FMODE_LSEEK 4
642 #define ATTR_ATTR_FLAG 1024
643 #define ATTR_KILL_SUID 2048
644 #define ATTR_KILL_SGID 4096
645 +#define ATTR_RAW 8192 /* file system, not vfs will massage attrs */
646 +#define ATTR_FROM_OPEN 16384 /* called from open path, ie O_TRUNC */
649 * This is the Inode Attributes structure, used for notify_change(). It
651 struct block_device *i_bdev;
654 + void *i_filterdata;
659 spinlock_t f_ep_lock;
660 #endif /* #ifdef CONFIG_EPOLL */
661 struct address_space *f_mapping;
662 + struct lookup_intent *f_it;
664 extern spinlock_t files_lock;
665 #define file_list_lock() spin_lock(&files_lock);
667 void (*truncate) (struct inode *);
668 int (*permission) (struct inode *, int, struct nameidata *);
669 int (*setattr) (struct dentry *, struct iattr *);
670 + int (*setattr_raw) (struct inode *, struct iattr *);
671 int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *);
672 + int (*getattr_it) (struct vfsmount *, struct dentry *, struct lookup_intent *, struct kstat *);
673 int (*setxattr) (struct dentry *, const char *,const void *,size_t,int);
674 ssize_t (*getxattr) (struct dentry *, const char *, void *, size_t);
675 ssize_t (*listxattr) (struct dentry *, char *, size_t);
677 int (*remount_fs) (struct super_block *, int *, char *);
678 void (*clear_inode) (struct inode *);
679 void (*umount_begin) (struct super_block *);
680 + void (*umount_lustre) (struct super_block *);
682 int (*show_options)(struct seq_file *, struct vfsmount *);
684 @@ -1164,6 +1172,7 @@
685 extern struct vfsmount *kern_mount(struct file_system_type *);
686 extern int may_umount_tree(struct vfsmount *);
687 extern int may_umount(struct vfsmount *);
688 +struct vfsmount *do_kern_mount(const char *type, int flags, const char *name, void *data);
689 extern long do_mount(char *, char *, char *, unsigned long, void *);
691 extern int vfs_statfs(struct super_block *, struct kstatfs *);
692 @@ -1228,6 +1237,7 @@
693 extern int do_truncate(struct dentry *, loff_t start);
694 extern struct file *filp_open(const char *, int, int);
695 extern struct file * dentry_open(struct dentry *, struct vfsmount *, int);
696 +extern struct file * dentry_open_it(struct dentry *, struct vfsmount *, int, struct lookup_intent *);
697 extern int filp_close(struct file *, fl_owner_t id);
698 extern char * getname(const char __user *);
700 Index: linux-2.6.9-5.0.3.EL/include/linux/namei.h
701 ===================================================================
702 --- linux-2.6.9-5.0.3.EL.orig/include/linux/namei.h 2005-02-26 14:28:01.396224600 +0200
703 +++ linux-2.6.9-5.0.3.EL/include/linux/namei.h 2005-02-26 14:32:04.747229624 +0200
705 #define _LINUX_NAMEI_H
707 #include <linux/linkage.h>
708 +#include <linux/string.h>
713 -struct open_intent {
716 +/* intent opcodes */
718 +#define IT_CREAT (1<<1)
719 +#define IT_READDIR (1<<2)
720 +#define IT_GETATTR (1<<3)
721 +#define IT_LOOKUP (1<<4)
722 +#define IT_UNLINK (1<<5)
723 +#define IT_TRUNC (1<<6)
724 +#define IT_GETXATTR (1<<7)
726 +struct lustre_intent_data {
727 + int it_disposition;
729 + __u64 it_lock_handle;
734 +#define INTENT_MAGIC 0x19620323
735 +struct lookup_intent {
737 + void (*it_op_release)(struct lookup_intent *);
740 + int it_create_mode;
742 + struct lustre_intent_data lustre;
746 +static inline void intent_init(struct lookup_intent *it, int op)
748 + memset(it, 0, sizeof(*it));
749 + it->it_magic = INTENT_MAGIC;
753 enum { MAX_NESTED_LINKS = 8 };
758 char *saved_names[MAX_NESTED_LINKS + 1];
762 - struct open_intent open;
764 + struct lookup_intent intent;
769 #define LOOKUP_PARENT 16
770 #define LOOKUP_NOALT 32
771 #define LOOKUP_ATOMIC 64
772 +#define LOOKUP_LAST (0x1000)
773 +#define LOOKUP_LINK_NOTLAST (0x2000)
778 #define LOOKUP_ACCESS (0x0400)
780 extern int FASTCALL(__user_walk(const char __user *, unsigned, struct nameidata *));
781 +extern int FASTCALL(__user_walk_it(const char __user *name, unsigned flags, struct nameidata *nd));
782 +#define user_path_walk_it(name,nd) \
783 + __user_walk_it(name, LOOKUP_FOLLOW, nd)
784 +#define user_path_walk_link_it(name,nd) \
785 + __user_walk_it(name, 0, nd)
786 +extern void intent_release(struct lookup_intent *);
787 #define user_path_walk(name,nd) \
788 __user_walk(name, LOOKUP_FOLLOW, nd)
789 #define user_path_walk_link(name,nd) \
792 extern struct dentry * lookup_one_len(const char *, struct dentry *, int);
793 extern struct dentry * lookup_hash(struct qstr *, struct dentry *);
795 extern int follow_down(struct vfsmount **, struct dentry **);
796 extern int follow_up(struct vfsmount **, struct dentry **);
798 Index: linux-2.6.9-5.0.3.EL/include/linux/mount.h
799 ===================================================================
800 --- linux-2.6.9-5.0.3.EL.orig/include/linux/mount.h 2005-02-26 14:28:01.397224448 +0200
801 +++ linux-2.6.9-5.0.3.EL/include/linux/mount.h 2005-02-26 14:32:04.748229472 +0200
803 struct list_head mnt_list;
804 struct list_head mnt_fslink; /* link in fs-specific expiry list */
805 struct namespace *mnt_namespace; /* containing namespace */
806 + struct list_head mnt_lustre_list; /* GNS mount list */
807 + unsigned long mnt_last_used; /* for GNS auto-umount (jiffies) */
810 static inline struct vfsmount *mntget(struct vfsmount *mnt)
811 Index: linux-2.6.9-5.0.3.EL/kernel/exit.c
812 ===================================================================
813 --- linux-2.6.9-5.0.3.EL.orig/kernel/exit.c 2005-02-26 14:28:01.399224144 +0200
814 +++ linux-2.6.9-5.0.3.EL/kernel/exit.c 2005-02-26 14:32:04.750229168 +0200
816 write_unlock_irq(&tasklist_lock);
819 +EXPORT_SYMBOL(reparent_to_init);
821 void __set_special_pids(pid_t session, pid_t pgrp)
823 struct task_struct *curr = current;
828 +EXPORT_SYMBOL(exit_files);
830 static inline void __put_fs_struct(struct fs_struct *fs)
832 /* No need to hold fs->lock if we are killing it */