This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster/gfs-kernel/src/gfs dir.c file.c file.h
- From: wcheng at sourceware dot org
- To: cluster-cvs at sources dot redhat dot com
- Date: 20 Feb 2006 03:55:31 -0000
- Subject: cluster/gfs-kernel/src/gfs dir.c file.c file.h
CVSROOT: /cvs/cluster
Module name: cluster
Branch: STABLE
Changes by: wcheng@sourceware.org 2006-02-20 03:55:31
Modified files:
gfs-kernel/src/gfs: dir.c file.c file.h
Log message:
Bugzilla 182057 - patch 3-1:
Fixes directory delete out of memory error. Found in customer environment
where gfs_inoded is deleting a max size of hash unit (0xffff entries). It
hangs in leaf_free() during gmalloc while kmallocing 0xffff*sizeof(uint64_t)
(=512K) of memroy. It did a kmalloc, zeroed out the buffer, then copied the
zeroed contents into bh buffer and subsequently sent the bh into gfs_writei
to write out to disk. This patch removes the unnecessary kmalloc plus the
memory copy by directly zero out the bh buffer.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/dir.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.8.6.1&r2=1.8.6.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/file.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.4.6.1&r2=1.4.6.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/file.h.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.2&r2=1.2.8.1