Re: Question about ext2

Bill Hawes (whawes@transmeta.com)
Fri, 25 Sep 1998 08:31:12 -0700


Jan Kara wrote:

> Hello.
>
> When I was reading ext2 code I found out that ext2 calls ext2_discard_prealloc()
> on each ext2_put_inode (that means on each iput). Wouldn't it be better
> to call it only when inode -> i_count == 1 (that means on last iput)?

In practice it shouldn't really matter -- lookups are done at the dentry level so
that most inodes go through life with a use count of just 1.

Regards,
Bill

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/