xfs
[Top] [All Lists]

Re: Memory issues again

To: Dana Soward <dragon@xxxxxxxxxxx>
Subject: Re: Memory issues again
From: Steve Lord <lord@xxxxxxx>
Date: Mon, 21 May 2001 11:05:09 -0500
Cc: Steve Lord <lord@xxxxxxx>, linux-xfs@xxxxxxxxxxx
In-reply-to: Message from Dana Soward <dragon@xxxxxxxxxxx> of "Mon, 21 May 2001 08:53:09 PDT." <Pine.LNX.4.21.0105210851450.12990-100000@xxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
You have 98 Mbytes chewed up in inode caches, I just happen to be looking into
problems in this area at the moment. XFS is not releasing inodes in the
same manner as other filesystems. Try this patch and let me know what
happens.

Steve


===========================================================================
Index: linux/fs/xfs/xfs_vnodeops.c
===========================================================================

--- /usr/tmp/TmpDir.2645-0/linux/fs/xfs/xfs_vnodeops.c_1.502    Mon May 21 
11:00:44 2001
+++ linux/fs/xfs/xfs_vnodeops.c Mon May 21 10:50:35 2001
@@ -5133,6 +5133,10 @@
        vn_bhv_remove(VN_BHV_HEAD(vp), XFS_ITOBHV(ip));
        mrunlock(&ih->ih_lock);
 
+       if (!ip->i_update_core && (ip->i_itemp == NULL)) {
+               return xfs_finish_reclaim(ip, locked);
+       }
+
        if (locked) {
                xfs_ifunlock(ip);
                xfs_iunlock(ip, XFS_ILOCK_EXCL);




<Prev in Thread] Current Thread [Next in Thread>