diff options
author | Nathan Scott <nathans@sgi.com> | 2006-03-13 21:18:19 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-03-13 21:18:19 -0500 |
commit | 8758280fcc6129be89503efe93bb59eaf2f85d28 (patch) | |
tree | 395246120b571385c1f3efad773b83a932d008da /fs/xfs/linux-2.6/xfs_buf.c | |
parent | 8d280b98cfe3c0b69c37d355218975c1c0279bb0 (diff) |
[XFS] Cleanup the use of zones/slabs, more consistent and allows flags to
be passed.
SGI-PV: 949073
SGI-Modid: xfs-linux-melb:xfs-kern:25122a
Signed-off-by: Nathan Scott <nathans@sgi.com>
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 bfb4f2917bb6..cdb905ab4dba 100644 --- a/fs/xfs/linux-2.6/xfs_buf.c +++ b/fs/xfs/linux-2.6/xfs_buf.c | |||
@@ -1805,13 +1805,12 @@ xfs_flush_buftarg( | |||
1805 | int __init | 1805 | int __init |
1806 | xfs_buf_init(void) | 1806 | xfs_buf_init(void) |
1807 | { | 1807 | { |
1808 | int error = -ENOMEM; | ||
1809 | |||
1810 | #ifdef XFS_BUF_TRACE | 1808 | #ifdef XFS_BUF_TRACE |
1811 | xfs_buf_trace_buf = ktrace_alloc(XFS_BUF_TRACE_SIZE, KM_SLEEP); | 1809 | xfs_buf_trace_buf = ktrace_alloc(XFS_BUF_TRACE_SIZE, KM_SLEEP); |
1812 | #endif | 1810 | #endif |
1813 | 1811 | ||
1814 | xfs_buf_zone = kmem_zone_init(sizeof(xfs_buf_t), "xfs_buf"); | 1812 | xfs_buf_zone = kmem_zone_init_flags(sizeof(xfs_buf_t), "xfs_buf", |
1813 | KM_ZONE_HWALIGN, NULL); | ||
1815 | if (!xfs_buf_zone) | 1814 | if (!xfs_buf_zone) |
1816 | goto out_free_trace_buf; | 1815 | goto out_free_trace_buf; |
1817 | 1816 | ||
@@ -1839,7 +1838,7 @@ xfs_buf_init(void) | |||
1839 | #ifdef XFS_BUF_TRACE | 1838 | #ifdef XFS_BUF_TRACE |
1840 | ktrace_free(xfs_buf_trace_buf); | 1839 | ktrace_free(xfs_buf_trace_buf); |
1841 | #endif | 1840 | #endif |
1842 | return error; | 1841 | return -ENOMEM; |
1843 | } | 1842 | } |
1844 | 1843 | ||
1845 | void | 1844 | void |