Skip to content
Snippets Groups Projects
Commit 2e68b981 authored by scjody's avatar scjody
Browse files

Branch HEAD

Remove client patches from SLES 10 kernel.  This causes SLES 10 clients to
behave as patchless clients even on a Lustre-patched (server) kernel.

b=12411
i=adilger
i=nathan
parent 26e765d0
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
* Recommended e2fsprogs version: 1.40.2-cfs1 * Recommended e2fsprogs version: 1.40.2-cfs1
* Note that reiserfs quotas are disabled on SLES 10 in this kernel. * Note that reiserfs quotas are disabled on SLES 10 in this kernel.
Bugzilla : 12411
Description: Remove client patches from SLES 10 kernel.
Details : This causes SLES 10 clients to behave as patchless clients
even on a Lustre-patched (server) kernel.
Severity : enhancement Severity : enhancement
Bugzilla : 2262 Bugzilla : 2262
Description: self-adjustable client's lru lists Description: self-adjustable client's lru lists
......
Index: linux-2.6.4-51.0/Documentation/filesystems/ext2.txt Index: linux-2.6.16.46-0.14/Documentation/filesystems/ext2.txt
=================================================================== ===================================================================
--- linux-2.6.4-51.0.orig/Documentation/filesystems/ext2.txt 2004-05-06 22:21:26.000000000 -0400 --- linux-2.6.16.46-0.14.orig/Documentation/filesystems/ext2.txt
+++ linux-2.6.4-51.0/Documentation/filesystems/ext2.txt 2004-05-06 22:24:42.000000000 -0400 +++ linux-2.6.16.46-0.14/Documentation/filesystems/ext2.txt
@@ -35,6 +35,22 @@ @@ -58,6 +58,22 @@ nobh Do not attach buffer_heads to fi
sb=n Use alternate superblock at this location. xip Use execute in place (no caching) if possible
+iopen Makes an invisible pseudo-directory called +iopen Makes an invisible pseudo-directory called
+ __iopen__ available in the root directory + __iopen__ available in the root directory
...@@ -25,11 +25,41 @@ Index: linux-2.6.4-51.0/Documentation/filesystems/ext2.txt ...@@ -25,11 +25,41 @@ Index: linux-2.6.4-51.0/Documentation/filesystems/ext2.txt
grpquota,noquota,quota,usrquota Quota options are silently ignored by ext2. grpquota,noquota,quota,usrquota Quota options are silently ignored by ext2.
Index: linux-2.6.4-51.0/fs/dcache.c Index: linux-2.6.16.46-0.14/fs/dcache.c
=================================================================== ===================================================================
--- linux-2.6.4-51.0.orig/fs/dcache.c 2004-05-06 22:24:42.000000000 -0400 --- linux-2.6.16.46-0.14.orig/fs/dcache.c
+++ linux-2.6.4-51.0/fs/dcache.c 2004-05-06 22:58:37.000000000 -0400 +++ linux-2.6.16.46-0.14/fs/dcache.c
@@ -1195,14 +1195,13 @@ @@ -1309,17 +1309,26 @@ static void __d_rehash(struct dentry * e
* Adds a dentry to the hash according to its name.
*/
-void d_rehash(struct dentry * entry)
+void d_rehash_cond(struct dentry * entry, int lock)
{
struct hlist_head *list = d_hash(entry->d_parent, entry->d_name.hash);
- spin_lock(&dcache_lock);
+ if (lock)
+ spin_lock(&dcache_lock);
spin_lock(&entry->d_lock);
__d_rehash(entry, list);
spin_unlock(&entry->d_lock);
- spin_unlock(&dcache_lock);
+ if (lock)
+ spin_unlock(&dcache_lock);
}
+EXPORT_SYMBOL(d_rehash_cond);
+
+void d_rehash(struct dentry * entry)
+{
+ d_rehash_cond(entry, 1);
+ }
+
#define do_switch(x,y) do { \
__typeof__ (x) __tmp = x; \
x = y; y = __tmp; } while (0)
@@ -1392,14 +1401,13 @@ static void switch_names(struct dentry *
* dcache entries should not be moved in this way. * dcache entries should not be moved in this way.
*/ */
...@@ -45,8 +75,8 @@ Index: linux-2.6.4-51.0/fs/dcache.c ...@@ -45,8 +75,8 @@ Index: linux-2.6.4-51.0/fs/dcache.c
write_seqlock(&rename_lock); write_seqlock(&rename_lock);
/* /*
* XXXX: do we really need to take target->d_lock? * XXXX: do we really need to take target->d_lock?
@@ -1253,6 +1252,14 @@ @@ -1450,6 +1458,14 @@ already_unhashed:
spin_unlock(&target->d_lock); fsnotify_d_move(dentry);
spin_unlock(&dentry->d_lock); spin_unlock(&dentry->d_lock);
write_sequnlock(&rename_lock); write_sequnlock(&rename_lock);
+} +}
...@@ -60,11 +90,11 @@ Index: linux-2.6.4-51.0/fs/dcache.c ...@@ -60,11 +90,11 @@ Index: linux-2.6.4-51.0/fs/dcache.c
spin_unlock(&dcache_lock); spin_unlock(&dcache_lock);
} }
Index: linux-2.6.4-51.0/include/linux/dcache.h Index: linux-2.6.16.46-0.14/include/linux/dcache.h
=================================================================== ===================================================================
--- linux-2.6.4-51.0.orig/include/linux/dcache.h 2004-05-06 22:24:42.000000000 -0400 --- linux-2.6.16.46-0.14.orig/include/linux/dcache.h
+++ linux-2.6.4-51.0/include/linux/dcache.h 2004-05-06 23:03:43.000000000 -0400 +++ linux-2.6.16.46-0.14/include/linux/dcache.h
@@ -234,6 +234,7 @@ @@ -236,6 +236,7 @@ extern int have_submounts(struct dentry
* This adds the entry to the hash queues. * This adds the entry to the hash queues.
*/ */
extern void d_rehash(struct dentry *); extern void d_rehash(struct dentry *);
...@@ -72,7 +102,7 @@ Index: linux-2.6.4-51.0/include/linux/dcache.h ...@@ -72,7 +102,7 @@ Index: linux-2.6.4-51.0/include/linux/dcache.h
/** /**
* d_add - add dentry to hash queues * d_add - add dentry to hash queues
@@ -252,6 +253,7 @@ @@ -271,6 +272,7 @@ static inline struct dentry *d_add_uniqu
/* used for rename() and baskets */ /* used for rename() and baskets */
extern void d_move(struct dentry *, struct dentry *); extern void d_move(struct dentry *, struct dentry *);
......
lustre_version.patch lustre_version.patch
vfs_intent-2.6-sles10.patch
vfs_races-2.6.18-vanilla.patch
ext3-wantedi-misc-2.6-suse.patch ext3-wantedi-misc-2.6-suse.patch
jbd-2.6.10-jcberr.patch jbd-2.6.10-jcberr.patch
iopen-misc-2.6.12.patch iopen-misc-2.6.12.patch
export-truncate-2.6-suse.patch
export_symbols-2.6.12.patch export_symbols-2.6.12.patch
dev_read_only-2.6-fc5.patch dev_read_only-2.6-fc5.patch
export-2.6-fc5.patch export-2.6-fc5.patch
lookup_bdev_init_intent.patch
remove-suid-2.6-suse.patch
export-show_task-2.6-fc5.patch export-show_task-2.6-fc5.patch
sd_iostats-2.6-rhel4.patch sd_iostats-2.6-rhel4.patch
export_symbol_numa-2.6-fc5.patch export_symbol_numa-2.6-fc5.patch
blkdev_tunables-2.6-sles10.patch blkdev_tunables-2.6-sles10.patch
jbd-stats-2.6-sles10.patch jbd-stats-2.6-sles10.patch
i_filter_data.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment