Messages in this thread | | | Date | Wed, 19 Oct 2005 09:47:57 +0200 | From | Andrea Arcangeli <> | Subject | Re: [PATCH] fix nr_unused accounting, and avoid recursing in iput with I_WILL_FREE set |
| |
On Tue, Oct 18, 2005 at 05:13:35PM -0700, Andrew Morton wrote: > Well according to my assertion (below), the inode in __sync_single_inode() > cannot have a zero refcount, so the whole if() statement is never executed.
It can, but only if it comes from I_WILL_FREE path (generic_forget_inode). See the write_inode_now in generic_forget_inode.
My BUG_ON already makes sure that when i_count is zero, I_WILL_FREE is set (I_WILL_FREE will prevent the inode to be freed by the vm as well, so it's ok). - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |