Re: [PATCH 01/13] vfs: add d_is_dir()

From: J. Bruce Fields
Date: Fri Feb 07 2014 - 12:36:48 EST


On Fri, Feb 07, 2014 at 05:48:59PM +0100, Miklos Szeredi wrote:
> From: Miklos Szeredi <mszeredi@xxxxxxx>
>
> Add d_is_dir(dentry) helper which is analogous to S_ISDIR().

While trying to get up to speed I notice that these flags were
introduced by b18825a7c8e37a7cf6abb97a12a6ad71af160de7 "VFS: Put a small
type field into struct dentry::d_flags" whose changelog tells me "what"
but not "why". So out of curiosity: was that some kind of optimization,
or was there some other reason for it?

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