xfs
[Top] [All Lists]

PARTIAL TAKE 977823 - fix inode leak in xfs_iget_core()

To: sgi.bugs.xfs@xxxxxxxxxxxx, xfs@xxxxxxxxxxx
Subject: PARTIAL TAKE 977823 - fix inode leak in xfs_iget_core()
From: lachlan@xxxxxxx (Lachlan McIlroy)
Date: Mon, 3 Mar 2008 15:16:10 +1100 (EST)
Sender: xfs-bounce@xxxxxxxxxxx
fix inode leak in xfs_iget_core()

If the radix_tree_preload() fails, we need to destroy the
inode we just read in before trying again. This could leak
xfs_vnode structures when there is memory pressure. Noticed
by Christoph Hellwig.

Signed-off-by: Dave Chinner <dgc@xxxxxxx>

Date:  Mon Mar  3 15:15:23 AEDT 2008
Workarea:  redback.melbourne.sgi.com:/home/lachlan/isms/2.6.x-xfs
Inspected by:  hch
Author:  lachlan

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb


Modid:  xfs-linux-melb:xfs-kern:30606a
fs/xfs/xfs_iget.c - 1.240 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_iget.c.diff?r1=text&tr1=1.240&r2=text&tr2=1.239&f=h
        - fix inode leak in xfs_iget_core()




<Prev in Thread] Current Thread [Next in Thread>
  • PARTIAL TAKE 977823 - fix inode leak in xfs_iget_core(), Lachlan McIlroy <=