diff options
Diffstat (limited to 'fs/xfs/xfs_qm.c')
-rw-r--r-- | fs/xfs/xfs_qm.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index d68f23021af3..79fb19dd9c83 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include "xfs_trans_resv.h" | 23 | #include "xfs_trans_resv.h" |
24 | #include "xfs_bit.h" | 24 | #include "xfs_bit.h" |
25 | #include "xfs_sb.h" | 25 | #include "xfs_sb.h" |
26 | #include "xfs_ag.h" | ||
27 | #include "xfs_mount.h" | 26 | #include "xfs_mount.h" |
28 | #include "xfs_inode.h" | 27 | #include "xfs_inode.h" |
29 | #include "xfs_ialloc.h" | 28 | #include "xfs_ialloc.h" |
@@ -38,7 +37,6 @@ | |||
38 | #include "xfs_trace.h" | 37 | #include "xfs_trace.h" |
39 | #include "xfs_icache.h" | 38 | #include "xfs_icache.h" |
40 | #include "xfs_cksum.h" | 39 | #include "xfs_cksum.h" |
41 | #include "xfs_dinode.h" | ||
42 | 40 | ||
43 | /* | 41 | /* |
44 | * The global quota manager. There is only one of these for the entire | 42 | * The global quota manager. There is only one of these for the entire |
@@ -1749,23 +1747,21 @@ xfs_qm_vop_dqalloc( | |||
1749 | xfs_iunlock(ip, lockflags); | 1747 | xfs_iunlock(ip, lockflags); |
1750 | if (O_udqpp) | 1748 | if (O_udqpp) |
1751 | *O_udqpp = uq; | 1749 | *O_udqpp = uq; |
1752 | else if (uq) | 1750 | else |
1753 | xfs_qm_dqrele(uq); | 1751 | xfs_qm_dqrele(uq); |
1754 | if (O_gdqpp) | 1752 | if (O_gdqpp) |
1755 | *O_gdqpp = gq; | 1753 | *O_gdqpp = gq; |
1756 | else if (gq) | 1754 | else |
1757 | xfs_qm_dqrele(gq); | 1755 | xfs_qm_dqrele(gq); |
1758 | if (O_pdqpp) | 1756 | if (O_pdqpp) |
1759 | *O_pdqpp = pq; | 1757 | *O_pdqpp = pq; |
1760 | else if (pq) | 1758 | else |
1761 | xfs_qm_dqrele(pq); | 1759 | xfs_qm_dqrele(pq); |
1762 | return 0; | 1760 | return 0; |
1763 | 1761 | ||
1764 | error_rele: | 1762 | error_rele: |
1765 | if (gq) | 1763 | xfs_qm_dqrele(gq); |
1766 | xfs_qm_dqrele(gq); | 1764 | xfs_qm_dqrele(uq); |
1767 | if (uq) | ||
1768 | xfs_qm_dqrele(uq); | ||
1769 | return error; | 1765 | return error; |
1770 | } | 1766 | } |
1771 | 1767 | ||