diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_buf.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c index 8cdfa4151659..9fb0312665ca 100644 --- a/fs/xfs/linux-2.6/xfs_buf.c +++ b/fs/xfs/linux-2.6/xfs_buf.c | |||
@@ -1806,13 +1806,12 @@ xfs_flush_buftarg( | |||
1806 | int __init | 1806 | int __init |
1807 | xfs_buf_init(void) | 1807 | xfs_buf_init(void) |
1808 | { | 1808 | { |
1809 | int error = -ENOMEM; | ||
1810 | |||
1811 | #ifdef XFS_BUF_TRACE | 1809 | #ifdef XFS_BUF_TRACE |
1812 | xfs_buf_trace_buf = ktrace_alloc(XFS_BUF_TRACE_SIZE, KM_SLEEP); | 1810 | xfs_buf_trace_buf = ktrace_alloc(XFS_BUF_TRACE_SIZE, KM_SLEEP); |
1813 | #endif | 1811 | #endif |
1814 | 1812 | ||
1815 | xfs_buf_zone = kmem_zone_init(sizeof(xfs_buf_t), "xfs_buf"); | 1813 | xfs_buf_zone = kmem_zone_init_flags(sizeof(xfs_buf_t), "xfs_buf", |
1814 | KM_ZONE_HWALIGN, NULL); | ||
1816 | if (!xfs_buf_zone) | 1815 | if (!xfs_buf_zone) |
1817 | goto out_free_trace_buf; | 1816 | goto out_free_trace_buf; |
1818 | 1817 | ||
@@ -1840,7 +1839,7 @@ xfs_buf_init(void) | |||
1840 | #ifdef XFS_BUF_TRACE | 1839 | #ifdef XFS_BUF_TRACE |
1841 | ktrace_free(xfs_buf_trace_buf); | 1840 | ktrace_free(xfs_buf_trace_buf); |
1842 | #endif | 1841 | #endif |
1843 | return error; | 1842 | return -ENOMEM; |
1844 | } | 1843 | } |
1845 | 1844 | ||
1846 | void | 1845 | void |