| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] xfsprog: remove duplicate vector memalign from xfs_io |
| From: | Mark Tinguely <tinguely@xxxxxxx> |
| Date: | Tue, 25 Sep 2012 09:24:15 -0500 |
| References: | <20120925142414.660506845@xxxxxxx> |
| User-agent: | quilt/0.51-1 |
The vector feature of xfs_io uses its own memory buffer in the iov structure
and does not use the buffer entry. Remove the duplicate memalign.
Signed-off-by: Mark Tinguely <tinguely@xxxxxxx>
---
io/pread.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Index: b/io/pread.c
===================================================================
--- a/io/pread.c
+++ b/io/pread.c
@@ -76,8 +76,7 @@ alloc_iovec(
buffersize = 0;
for (i = 0; i < vectors; i++) {
iov[i].iov_base = memalign(pagesize, bsize);
- buffer = memalign(pagesize, bsize);
- if (!buffer) {
+ if (!iov[i].iov_base) {
perror("memalign");
goto unwind;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 4/6] xfs: Fix mp->m_maxagi update during inode64 remount, Carlos Maiolino |
|---|---|
| Next by Date: | Re: [PATCH 0/3] xfs: allocation worker causes freelist buffer lock hang, Mark Tinguely |
| Previous by Thread: | userspace releases?, Christoph Hellwig |
| Next by Thread: | Re: [PATCH] xfsprog: remove duplicate vector memalign from xfs_io, Ben Myers |
| Indexes: | [Date] [Thread] [Top] [All Lists] |