]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.kabi/xfs-dquot-pincount-kabi.patch
Fix oinkmaster patch.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.kabi / xfs-dquot-pincount-kabi.patch
CommitLineData
82094b55
AF
1From: Tony Ernst <tee@sgi.com>
2Subject: hide harmless xfs kabi changes to be compatible with the GA kernel
3
4In bug 482148, a KABI breakage was introduced into xfs. An SGI engineer
5approved this because it was internal to xfs, and he believed it wouldn't
6affect any of our other products. But the CRC checking doesn't work the way he
7thought it did. So we now have a problem where one of our add-ons gets a
8dependency error with the latest kernel update.
9
10So we've made a small patch that restores the old xfs CRC (same as SLES11 GA).
11We need to get this patch into the next SLES11 kernel update. I'll attach the
12patch.
13
14Acked-by: Michal Marek <mmarek@suse.cz>
15
16Index: linux-2.6.27.25-0.gwehrman/fs/xfs/quota/xfs_dquot.h
17===================================================================
18--- linux-2.6.27.25-0.gwehrman.orig/fs/xfs/quota/xfs_dquot.h
19+++ linux-2.6.27.25-0.gwehrman/fs/xfs/quota/xfs_dquot.h
20@@ -83,8 +83,13 @@ typedef struct xfs_dquot {
21 xfs_qcnt_t q_res_rtbcount;/* total realtime blks used+reserved */
22 mutex_t q_qlock; /* quota lock */
23 struct completion q_flush; /* flush completion queue */
24+#ifdef __GENKSYMS__
25+ uint q_pincount; /* dquot pin count */
26+ sv_t q_pinwait; /* dquot pinning wait queue */
27+#else
28 atomic_t q_pincount; /* dquot pin count */
29 wait_queue_head_t q_pinwait; /* dquot pinning wait queue */
30+#endif
31
32 #ifdef XFS_DQUOT_TRACE
33 struct ktrace *q_trace; /* trace header structure */
34Index: linux-2.6.27.25-0.gwehrman/fs/xfs/quota/xfs_qm.h
35===================================================================
36--- linux-2.6.27.25-0.gwehrman.orig/fs/xfs/quota/xfs_qm.h
37+++ linux-2.6.27.25-0.gwehrman/fs/xfs/quota/xfs_qm.h
38@@ -106,6 +106,9 @@ typedef struct xfs_qm {
39 typedef struct xfs_quotainfo {
40 xfs_inode_t *qi_uquotaip; /* user quota inode */
41 xfs_inode_t *qi_gquotaip; /* group quota inode */
42+#ifdef __GENKSYMS__
43+ spinlock_t qi_pinlock; /* dquot pinning lock */
44+#endif
45 xfs_dqlist_t qi_dqlist; /* all dquots in filesys */
46 int qi_dqreclaims; /* a change here indicates
47 a removal in the dqlist */