1 Index: linux-2.6.7/fs/exec.c
2 ===================================================================
3 --- linux-2.6.7.orig/fs/exec.c 2004-08-26 17:12:39.000000000 +0400
4 +++ linux-2.6.7/fs/exec.c 2005-01-18 11:27:18.069500328 +0300
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.7/fs/namei.c
49 ===================================================================
50 --- linux-2.6.7.orig/fs/namei.c 2004-08-26 17:12:40.000000000 +0400
51 +++ linux-2.6.7/fs/namei.c 2005-01-18 11:27:30.762570688 +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 return PTR_ERR(dentry);
99 +static int revalidate_special(struct nameidata *nd)
101 + struct dentry *dentry = nd->dentry;
102 + int err, counter = 0;
104 + if (!dentry->d_op || !dentry->d_op->d_revalidate)
107 + if (!dentry->d_op->d_revalidate(dentry, nd)) {
108 + struct dentry *new;
109 + if ((err = permission(dentry->d_parent->d_inode, MAY_EXEC, nd)))
111 + new = real_lookup(dentry->d_parent, &dentry->d_name, nd);
113 + return PTR_ERR(new);
114 + d_invalidate(dentry);
116 + nd->dentry = dentry = new;
119 + goto revalidate_again;
120 + printk("excessive revalidate_it loops\n");
131 if (inode->i_op->follow_link) {
133 + nd->flags |= LOOKUP_LINK_NOTLAST;
134 err = do_follow_link(next.dentry, nd);
135 + nd->flags &= ~LOOKUP_LINK_NOTLAST;
139 @@ -705,14 +751,26 @@
140 inode = nd->dentry->d_inode;
143 + nd->flags |= LOOKUP_LAST;
144 + err = revalidate_special(nd);
145 + nd->flags &= ~LOOKUP_LAST;
146 + if (!nd->dentry->d_inode)
155 if (nd->dentry->d_op && nd->dentry->d_op->d_hash) {
156 err = nd->dentry->d_op->d_hash(nd->dentry, &this);
160 + nd->flags |= LOOKUP_LAST;
161 err = do_lookup(nd, &this, &next);
162 + nd->flags &= ~LOOKUP_LAST;
165 follow_mount(&next.mnt, &next.dentry);
170 -struct dentry * lookup_one_len(const char * name, struct dentry * base, int len)
171 +struct dentry * lookup_one_len_it(const char * name, struct dentry * base, int len, struct nameidata *nd)
175 @@ -966,11 +1024,16 @@
177 this.hash = end_name_hash(hash);
179 - return lookup_hash(&this, base);
180 + return __lookup_hash(&this, base, nd);
182 return ERR_PTR(-EACCES);
185 +struct dentry * lookup_one_len(const char * name, struct dentry * base, int len)
187 + return lookup_one_len_it(name, base, len, NULL);
194 * that namei follows links, while lnamei does not.
197 -int fastcall __user_walk(const char __user *name, unsigned flags, struct nameidata *nd)
198 +int fastcall __user_walk_it(const char __user *name, unsigned flags, struct nameidata *nd)
200 char *tmp = getname(name);
201 int err = PTR_ERR(tmp);
202 @@ -994,6 +1057,12 @@
206 +int fastcall __user_walk(const char __user *name, unsigned flags, struct nameidata *nd)
208 + intent_init(&nd->intent, IT_LOOKUP);
209 + return __user_walk_it(name, flags, nd);
213 * It's inline, so penalty for filesystems that don't use sticky bit is
215 @@ -1266,8 +1335,8 @@
216 acc_mode |= MAY_APPEND;
218 /* Fill in the open() intent data */
219 - nd->intent.open.flags = flag;
220 - nd->intent.open.create_mode = mode;
221 + nd->intent.it_flags = flag;
222 + nd->intent.it_create_mode = mode;
225 * The simplest case - just a plain lookup.
226 @@ -1282,6 +1351,7 @@
228 * Create - we need to know the parent.
230 + nd->intent.it_op |= IT_CREAT;
231 error = path_lookup(pathname, LOOKUP_PARENT|LOOKUP_OPEN|LOOKUP_CREATE, nd);
234 @@ -1298,7 +1368,9 @@
236 nd->flags &= ~LOOKUP_PARENT;
237 down(&dir->d_inode->i_sem);
238 + nd->flags |= LOOKUP_LAST;
239 dentry = __lookup_hash(&nd->last, nd->dentry, nd);
240 + nd->flags &= ~LOOKUP_LAST;
243 error = PTR_ERR(dentry);
244 @@ -1403,7 +1475,9 @@
247 down(&dir->d_inode->i_sem);
248 + nd->flags |= LOOKUP_LAST;
249 dentry = __lookup_hash(&nd->last, nd->dentry, nd);
250 + nd->flags &= ~LOOKUP_LAST;
251 putname(nd->last.name);
254 @@ -2165,7 +2239,9 @@
255 __vfs_follow_link(struct nameidata *nd, const char *link)
258 + struct lookup_intent it = nd->intent;
264 @@ -2175,6 +2251,10 @@
265 /* weird __emul_prefix() stuff did it */
269 + intent_init(&nd->intent, it.it_op);
270 + nd->intent.it_flags = it.it_flags;
271 + nd->intent.it_create_mode = it.it_create_mode;
272 res = link_path_walk(link, nd);
274 if (current->link_count || res || nd->last_type!=LAST_NORM)
275 Index: linux-2.6.7/fs/namespace.c
276 ===================================================================
277 --- linux-2.6.7.orig/fs/namespace.c 2004-08-26 17:12:40.000000000 +0400
278 +++ linux-2.6.7/fs/namespace.c 2005-01-18 11:27:18.077499112 +0300
280 INIT_LIST_HEAD(&mnt->mnt_child);
281 INIT_LIST_HEAD(&mnt->mnt_mounts);
282 INIT_LIST_HEAD(&mnt->mnt_list);
283 + INIT_LIST_HEAD(&mnt->mnt_lustre_list);
285 int size = strlen(name)+1;
286 char *newname = kmalloc(size, GFP_KERNEL);
289 static void detach_mnt(struct vfsmount *mnt, struct nameidata *old_nd)
291 + memset(old_nd, 0, sizeof(*old_nd));
292 old_nd->dentry = mnt->mnt_mountpoint;
293 old_nd->mnt = mnt->mnt_parent;
294 mnt->mnt_parent = mnt;
297 struct super_block *sb = mnt->mnt_sb;
299 + spin_lock(&dcache_lock);
300 + list_del(&mnt->mnt_lustre_list);
301 + spin_unlock(&dcache_lock);
303 deactivate_super(sb);
309 + if (sb->s_op->umount_lustre)
310 + sb->s_op->umount_lustre(sb);
311 if( (flags&MNT_FORCE) && sb->s_op->umount_begin)
312 sb->s_op->umount_begin(sb);
316 if (!old_name || !*old_name)
318 + intent_init(&old_nd.intent, IT_LOOKUP);
319 err = path_lookup(old_name, LOOKUP_FOLLOW, &old_nd);
324 if (!old_name || !*old_name)
326 + intent_init(&old_nd.intent, IT_LOOKUP);
327 err = path_lookup(old_name, LOOKUP_FOLLOW, &old_nd);
334 + intent_init(&nd.intent, IT_LOOKUP);
336 if ((flags & MS_MGC_MSK) == MS_MGC_VAL)
337 flags &= ~MS_MGC_MSK;
338 Index: linux-2.6.7/fs/open.c
339 ===================================================================
340 --- linux-2.6.7.orig/fs/open.c 2004-08-26 17:12:40.000000000 +0400
341 +++ linux-2.6.7/fs/open.c 2005-01-18 11:27:18.080498656 +0300
342 @@ -215,12 +215,12 @@
344 struct inode * inode;
347 + intent_init(&nd.intent, IT_GETATTR);
349 if (length < 0) /* sorry, but loff_t says... */
352 - error = user_path_walk(path, &nd);
353 + error = user_path_walk_it(path, &nd);
356 inode = nd.dentry->d_inode;
358 int old_fsuid, old_fsgid;
359 kernel_cap_t old_cap;
361 + intent_init(&nd.intent, IT_GETATTR);
363 if (mode & ~S_IRWXO) /* where's F_OK, X_OK, W_OK, R_OK? */
365 @@ -498,13 +499,14 @@
367 current->cap_effective = current->cap_permitted;
369 - res = __user_walk(filename, LOOKUP_FOLLOW|LOOKUP_ACCESS, &nd);
370 + res = __user_walk_it(filename, LOOKUP_FOLLOW|LOOKUP_ACCESS, &nd);
372 res = permission(nd.dentry->d_inode, mode, &nd);
373 /* SuS v2 requires we report a read only fs too */
374 if(!res && (mode & S_IWOTH) && IS_RDONLY(nd.dentry->d_inode)
375 && !special_file(nd.dentry->d_inode->i_mode))
385 + intent_init(&nd.intent, IT_CHDIR);
387 - error = __user_walk(filename, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, &nd);
388 + error = __user_walk_it(filename, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, &nd);
396 + intent_init(&nd.intent, IT_GETATTR);
398 - error = __user_walk(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY | LOOKUP_NOALT, &nd);
399 + error = __user_walk_it(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY | LOOKUP_NOALT, &nd);
404 * for the internal routines (ie open_namei()/follow_link() etc). 00 is
407 -struct file *filp_open(const char * filename, int flags, int mode)
409 - int namei_flags, error;
410 - struct nameidata nd;
412 - namei_flags = flags;
413 - if ((namei_flags+1) & O_ACCMODE)
415 - if (namei_flags & O_TRUNC)
418 - error = open_namei(filename, namei_flags, mode, &nd);
420 - return dentry_open(nd.dentry, nd.mnt, flags);
422 - return ERR_PTR(error);
425 -EXPORT_SYMBOL(filp_open);
427 -struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags)
428 +struct file *dentry_open_it(struct dentry *dentry, struct vfsmount *mnt, int flags,
429 + struct lookup_intent *it)
436 f->f_mode = (flags+1) & O_ACCMODE;
438 inode = dentry->d_inode;
439 if (f->f_mode & FMODE_WRITE) {
440 error = get_write_access(inode);
442 error = f->f_op->open(inode,f);
445 + intent_release(it);
447 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);
453 + intent_release(it);
456 return ERR_PTR(error);
459 EXPORT_SYMBOL(dentry_open);
461 +struct file *filp_open(const char * filename, int flags, int mode)
463 + int namei_flags, error;
464 + struct file * temp_filp;
465 + struct nameidata nd;
466 + intent_init(&nd.intent, IT_OPEN);
468 + namei_flags = flags;
469 + if ((namei_flags+1) & O_ACCMODE)
471 + if (namei_flags & O_TRUNC)
474 + error = open_namei(filename, namei_flags, mode, &nd);
476 + temp_filp = dentry_open_it(nd.dentry, nd.mnt, flags, &nd.intent);
479 + return ERR_PTR(error);
483 +struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags)
485 + struct lookup_intent it;
486 + intent_init(&it, IT_LOOKUP);
488 + return dentry_open_it(dentry, mnt, flags, &it);
492 * Find an empty file descriptor entry, and mark it busy.
494 Index: linux-2.6.7/fs/stat.c
495 ===================================================================
496 --- linux-2.6.7.orig/fs/stat.c 2004-08-26 17:12:40.000000000 +0400
497 +++ linux-2.6.7/fs/stat.c 2005-01-18 11:27:18.082498352 +0300
500 EXPORT_SYMBOL(generic_fillattr);
502 -int vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
503 +int vfs_getattr_it(struct vfsmount *mnt, struct dentry *dentry, struct lookup_intent *it, struct kstat *stat)
505 struct inode *inode = dentry->d_inode;
511 + if (inode->i_op->getattr_it)
512 + return inode->i_op->getattr_it(mnt, dentry, it, stat);
513 if (inode->i_op->getattr)
514 return inode->i_op->getattr(mnt, dentry, stat);
518 EXPORT_SYMBOL(vfs_getattr);
520 +int vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
522 + return vfs_getattr_it(mnt, dentry, NULL, stat);
525 int vfs_stat(char __user *name, struct kstat *stat)
529 + intent_init(&nd.intent, IT_GETATTR);
531 - error = user_path_walk(name, &nd);
532 + error = user_path_walk_it(name, &nd);
534 - error = vfs_getattr(nd.mnt, nd.dentry, stat);
535 + error = vfs_getattr_it(nd.mnt, nd.dentry, &nd.intent, stat);
543 + intent_init(&nd.intent, IT_GETATTR);
545 - error = user_path_walk_link(name, &nd);
546 + error = user_path_walk_link_it(name, &nd);
548 - error = vfs_getattr(nd.mnt, nd.dentry, stat);
549 + error = vfs_getattr_it(nd.mnt, nd.dentry, &nd.intent, stat);
555 struct file *f = fget(fd);
557 + struct nameidata nd;
558 + intent_init(&nd.intent, IT_GETATTR);
561 - error = vfs_getattr(f->f_vfsmnt, f->f_dentry, stat);
562 + error = vfs_getattr_it(f->f_vfsmnt, f->f_dentry, &nd.intent, stat);
563 + intent_release(&nd.intent);
567 Index: linux-2.6.7/fs/nfs/dir.c
568 ===================================================================
569 --- linux-2.6.7.orig/fs/nfs/dir.c 2004-08-26 17:11:31.000000000 +0400
570 +++ linux-2.6.7/fs/nfs/dir.c 2005-01-18 11:27:18.084498048 +0300
573 if (!nd || (nd->flags & LOOKUP_CONTINUE) || !(nd->flags & LOOKUP_CREATE))
575 - return (nd->intent.open.flags & O_EXCL) != 0;
576 + return (nd->intent.it_flags & O_EXCL) != 0;
579 static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, struct nameidata *nd)
580 @@ -1022,7 +1022,7 @@
581 attr.ia_valid = ATTR_MODE;
583 if (nd && (nd->flags & LOOKUP_CREATE))
584 - open_flags = nd->intent.open.flags;
585 + open_flags = nd->intent.it_flags;
588 * The 0 argument passed into the create function should one day
589 Index: linux-2.6.7/fs/inode.c
590 ===================================================================
591 --- linux-2.6.7.orig/fs/inode.c 2004-08-26 17:12:40.000000000 +0400
592 +++ linux-2.6.7/fs/inode.c 2005-01-18 11:27:18.086497744 +0300
594 inodes_stat.nr_unused--;
597 +EXPORT_SYMBOL(__iget);
599 * clear_inode - clear an inode
600 * @inode: inode to clear
601 Index: linux-2.6.7/fs/super.c
602 ===================================================================
603 --- linux-2.6.7.orig/fs/super.c 2004-08-26 17:12:40.000000000 +0400
604 +++ linux-2.6.7/fs/super.c 2005-01-18 11:27:18.088497440 +0300
606 return (struct vfsmount *)sb;
609 +EXPORT_SYMBOL(do_kern_mount);
611 struct vfsmount *kern_mount(struct file_system_type *type)
613 return do_kern_mount(type->name, 0, type->name, NULL);
614 Index: linux-2.6.7/include/linux/dcache.h
615 ===================================================================
616 --- linux-2.6.7.orig/include/linux/dcache.h 2004-08-26 17:12:41.000000000 +0400
617 +++ linux-2.6.7/include/linux/dcache.h 2005-01-18 11:27:18.089497288 +0300
621 #include <asm/atomic.h>
622 +#include <linux/string.h>
623 #include <linux/list.h>
624 #include <linux/spinlock.h>
625 #include <linux/cache.h>
630 +#include <linux/namei.h>
632 struct dentry_stat_t {
635 Index: linux-2.6.7/include/linux/fs.h
636 ===================================================================
637 --- linux-2.6.7.old/include/linux/fs.h 2005-01-31 14:27:16.000000000 +0800
638 +++ linux-2.6.7/include/linux/fs.h 2005-01-31 14:32:19.000000000 +0800
639 @@ -74,6 +74,7 @@ extern int leases_enable, dir_notify_ena
642 #define FMODE_WRITE 2
643 +#define FMODE_EXEC 4
647 @@ -250,6 +251,13 @@ typedef void (dio_iodone_t)(struct inode
648 #define ATTR_ATTR_FLAG 1024
649 #define ATTR_KILL_SUID 2048
650 #define ATTR_KILL_SGID 4096
651 +#define ATTR_RAW 8192 /* file system, not vfs will massage attrs */
652 +#define ATTR_FROM_OPEN 16384 /* called from open path, ie O_TRUNC */
654 +#define ATTR_CTIME_SET 0x2000
656 +#define ATTR_EA 0x40000
657 +#define ATTR_EA_RM 0x80000
660 * This is the Inode Attributes structure, used for notify_change(). It
661 @@ -446,6 +454,7 @@ struct inode {
662 struct block_device *i_bdev;
665 + void *i_filterdata;
667 unsigned long i_dnotify_mask; /* Directory notify events */
668 struct dnotify_struct *i_dnotify; /* for directory notifications */
669 @@ -579,6 +588,7 @@ struct file {
670 spinlock_t f_ep_lock;
671 #endif /* #ifdef CONFIG_EPOLL */
672 struct address_space *f_mapping;
673 + struct lookup_intent *f_it;
675 extern spinlock_t files_lock;
676 #define file_list_lock() spin_lock(&files_lock);
677 @@ -903,7 +913,9 @@ struct inode_operations {
678 void (*truncate) (struct inode *);
679 int (*permission) (struct inode *, int, struct nameidata *);
680 int (*setattr) (struct dentry *, struct iattr *);
681 + int (*setattr_raw) (struct inode *, struct iattr *);
682 int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *);
683 + int (*getattr_it) (struct vfsmount *, struct dentry *, struct lookup_intent *, struct kstat *);
684 int (*setxattr) (struct dentry *, const char *,const void *,size_t,int);
685 ssize_t (*getxattr) (struct dentry *, const char *, void *, size_t);
686 ssize_t (*listxattr) (struct dentry *, char *, size_t);
687 @@ -943,6 +955,7 @@ struct super_operations {
688 int (*remount_fs) (struct super_block *, int *, char *);
689 void (*clear_inode) (struct inode *);
690 void (*umount_begin) (struct super_block *);
691 + void (*umount_lustre) (struct super_block *);
693 int (*show_options)(struct seq_file *, struct vfsmount *);
695 @@ -1131,6 +1144,7 @@ extern int unregister_filesystem(struct
696 extern struct vfsmount *kern_mount(struct file_system_type *);
697 extern int may_umount_tree(struct vfsmount *);
698 extern int may_umount(struct vfsmount *);
699 +struct vfsmount *do_kern_mount(const char *type, int flags, const char *name, void *data);
700 extern long do_mount(char *, char *, char *, unsigned long, void *);
702 extern int vfs_statfs(struct super_block *, struct kstatfs *);
703 @@ -1195,6 +1209,7 @@ static inline int break_lease(struct ino
704 extern int do_truncate(struct dentry *, loff_t start);
705 extern struct file *filp_open(const char *, int, int);
706 extern struct file * dentry_open(struct dentry *, struct vfsmount *, int);
707 +extern struct file * dentry_open_it(struct dentry *, struct vfsmount *, int, struct lookup_intent *);
708 extern int filp_close(struct file *, fl_owner_t id);
709 extern char * getname(const char __user *);
711 Index: linux-2.6.7/include/linux/namei.h
712 ===================================================================
713 --- linux-2.6.7.orig/include/linux/namei.h 2003-07-24 15:52:31.000000000 +0400
714 +++ linux-2.6.7/include/linux/namei.h 2005-01-18 11:27:18.094496528 +0300
716 #define _LINUX_NAMEI_H
718 #include <linux/linkage.h>
719 +#include <linux/string.h>
724 -struct open_intent {
727 +/* intent opcodes */
729 +#define IT_CREAT (1<<1)
730 +#define IT_READDIR (1<<2)
731 +#define IT_GETATTR (1<<3)
732 +#define IT_LOOKUP (1<<4)
733 +#define IT_UNLINK (1<<5)
734 +#define IT_TRUNC (1<<6)
735 +#define IT_GETXATTR (1<<7)
736 +#define IT_CHDIR (1<<8)
738 +struct lustre_intent_data {
739 + int it_disposition;
741 + __u64 it_lock_handle;
746 +#define INTENT_MAGIC 0x19620323
747 +struct lookup_intent {
749 + void (*it_op_release)(struct lookup_intent *);
752 + int it_create_mode;
754 + struct lustre_intent_data lustre;
758 +static inline void intent_init(struct lookup_intent *it, int op)
760 + memset(it, 0, sizeof(*it));
761 + it->it_magic = INTENT_MAGIC;
766 struct dentry *dentry;
767 struct vfsmount *mnt;
774 - struct open_intent open;
776 + struct lookup_intent intent;
781 #define LOOKUP_CONTINUE 4
782 #define LOOKUP_PARENT 16
783 #define LOOKUP_NOALT 32
784 +#define LOOKUP_LAST (1<<6)
785 +#define LOOKUP_LINK_NOTLAST (1<<7)
791 #define LOOKUP_ACCESS (0x0400)
793 extern int FASTCALL(__user_walk(const char __user *, unsigned, struct nameidata *));
794 +extern int FASTCALL(__user_walk_it(const char __user *name, unsigned flags, struct nameidata *nd));
795 +#define user_path_walk_it(name,nd) \
796 + __user_walk_it(name, LOOKUP_FOLLOW, nd)
797 +#define user_path_walk_link_it(name,nd) \
798 + __user_walk_it(name, 0, nd)
799 +extern void intent_release(struct lookup_intent *);
800 #define user_path_walk(name,nd) \
801 __user_walk(name, LOOKUP_FOLLOW, nd)
802 #define user_path_walk_link(name,nd) \
805 extern struct dentry * lookup_one_len(const char *, struct dentry *, int);
806 extern struct dentry * lookup_hash(struct qstr *, struct dentry *);
808 extern int follow_down(struct vfsmount **, struct dentry **);
809 extern int follow_up(struct vfsmount **, struct dentry **);
811 Index: linux-2.6.7/include/linux/mount.h
812 ===================================================================
813 --- linux-2.6.7.orig/include/linux/mount.h 2003-07-24 15:52:47.000000000 +0400
814 +++ linux-2.6.7/include/linux/mount.h 2005-01-18 11:27:18.094496528 +0300
817 char *mnt_devname; /* Name of device e.g. /dev/dsk/hda1 */
818 struct list_head mnt_list;
819 + struct list_head mnt_lustre_list; /* GNS mount list */
820 + unsigned long mnt_last_used; /* for GNS auto-umount (jiffies) */
823 static inline struct vfsmount *mntget(struct vfsmount *mnt)
824 Index: linux-2.6.7/kernel/exit.c
825 ===================================================================
826 --- linux-2.6.7.orig/kernel/exit.c 2004-08-26 17:12:42.000000000 +0400
827 +++ linux-2.6.7/kernel/exit.c 2005-01-18 11:27:18.096496224 +0300
829 write_unlock_irq(&tasklist_lock);
832 +EXPORT_SYMBOL(reparent_to_init);
834 void __set_special_pids(pid_t session, pid_t pgrp)
836 struct task_struct *curr = current;
841 +EXPORT_SYMBOL(exit_files);
843 static inline void __put_fs_struct(struct fs_struct *fs)
845 /* No need to hold fs->lock if we are killing it */