Commit:     511105b3d7c2440ee84fc3f90d200569aac88162
Parent:     ca165b88927e41ad18908d7b37f08ef81eae0bf8
Author:     David Chinner <[EMAIL PROTECTED]>
AuthorDate: Thu May 24 15:21:57 2007 +1000
Committer:  Tim Shimmin <[EMAIL PROTECTED]>
CommitDate: Sat Jul 14 15:23:23 2007 +1000

    [XFS] Fix vmalloc leak on mount/unmount.
    When setting the length of the iclogbuf to write out we should just be
    changing the desired byte count rather completely reassociating the buffer
    memory with the buffer. Reassociating the buffer memory changes the
    apparent length of the buffer and hence when we free the buffer, we don't
    free all the vmap()d space we originally allocated.
    SGI-PV: 964983
    SGI-Modid: xfs-linux-melb:xfs-kern:28640a
    Signed-off-by: David Chinner <[EMAIL PROTECTED]>
    Signed-off-by: Christoph Hellwig <[EMAIL PROTECTED]>
    Signed-off-by: Tim Shimmin <[EMAIL PROTECTED]>
 fs/xfs/xfs_log.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index 5bb9020..fb50fd4 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -1436,7 +1436,7 @@ xlog_sync(xlog_t          *log,
        } else {
                iclog->ic_bwritecnt = 1;
-       XFS_BUF_SET_PTR(bp, (xfs_caddr_t) &(iclog->ic_header), count);
+       XFS_BUF_SET_COUNT(bp, count);
        XFS_BUF_SET_FSPRIVATE(bp, iclog);       /* save for later */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to