Index: trunk/server/common/patches/openafs-linux-3.4-end-writeback.patch
===================================================================
--- trunk/server/common/patches/openafs-linux-3.4-end-writeback.patch	(revision 2288)
+++ trunk/server/common/patches/openafs-linux-3.4-end-writeback.patch	(revision 2288)
@@ -0,0 +1,29 @@
+commit cc63cbbc138f60d6b5964fa859dcd778717b24c2
+Author: Marc Dionne <marc.c.dionne@gmail.com>
+Date:   Mon May 28 21:43:12 2012 -0400
+
+    Linux 3.4: replace end_writeback with clear_inode
+    
+    end_writeback() is renamed to clear_inode().  Add a configure test
+    and cope.
+    
+    Change-Id: Icaf5b6b54d0ee377fabcf0b295d690eaa6b4be5e
+    Reviewed-on: http://gerrit.openafs.org/7503
+    Reviewed-by: Derrick Brashear <shadow@dementix.org>
+    Tested-by: BuildBot <buildbot@rampaginggeek.com>
+    (cherry picked from commit 2b33384a4a7b88842281021129ffccc837d91d36)
+    Reviewed-on: http://gerrit.openafs.org/7578
+
+diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c
+index a6be1b3..bc951a2 100644
+--- a/src/afs/LINUX/osi_vfsops.c
++++ b/src/afs/LINUX/osi_vfsops.c
+@@ -284,7 +284,7 @@ afs_evict_inode(struct inode *ip)
+        osi_Panic("inode freed while still hashed");
+ 
+     truncate_inode_pages(&ip->i_data, 0);
++    clear_inode(ip);
+-    end_writeback(ip);
+ 
+ #if !defined(STRUCT_SUPER_OPERATIONS_HAS_ALLOC_INODE)
+     afs_osi_Free(ip->u.generic_ip, sizeof(struct vcache));
Index: trunk/server/common/patches/openafs-linux-3.5-encode-fh.patch
===================================================================
--- trunk/server/common/patches/openafs-linux-3.5-encode-fh.patch	(revision 2288)
+++ trunk/server/common/patches/openafs-linux-3.5-encode-fh.patch	(revision 2288)
@@ -0,0 +1,29 @@
+commit 407e7c90a97143d436ad3a6af6bbfa431c849191
+Author: Marc Dionne <marc.c.dionne@gmail.com>
+Date:   Sat Jun 2 21:35:53 2012 -0400
+
+    Linux 3.5: encode_fh API change
+    
+    The encode_fh export operation now expects two inode arguments
+    instead of a dentry and a "connectable" flag.  Use the inode of
+    the dentry we're interested in, and NULL as the parent inode which
+    is the same as passing a 0 flag in the previous API.
+    
+    Change-Id: I05cf146fb2a4bacdca20a9f108d04ccb11530804
+    Reviewed-on: http://gerrit.openafs.org/7523
+    Tested-by: BuildBot <buildbot@rampaginggeek.com>
+    Reviewed-by: Derrick Brashear <shadow@dementix.org>
+    (cherry picked from commit 5227148ae17949705487ea673d558ebfe143e635)
+    Reviewed-on: http://gerrit.openafs.org/7579
+
+--- a/src/afs/LINUX/osi_compat.h
++++ b/src/afs/LINUX/osi_compat.h
+@@ -333,7 +333,7 @@ afs_get_dentry_from_fh(struct super_block *afs_cacheSBp, afs_dcache_id_t *ainode
+ static inline int
+ afs_get_fh_from_dentry(struct dentry *dp, afs_ufs_dcache_id_t *ainode, int *max_lenp) {
+     if (dp->d_sb->s_export_op->encode_fh)
++        return dp->d_sb->s_export_op->encode_fh(dp->d_inode, &ainode->raw[0], max_lenp, NULL);
+-        return dp->d_sb->s_export_op->encode_fh(dp, &ainode->raw[0], max_lenp, 0);
+ #if defined(NEW_EXPORT_OPS)
+     /* If fs doesn't provide an encode_fh method, assume the default INO32 type */
+     *max_lenp = sizeof(struct fid)/4;
