| Date | Fri, 7 Feb 2014 12:36:36 -0500 | From | "J. Bruce Fields" <> | Subject | Re: [PATCH 01/13] vfs: add d_is_dir() |
| |
On Fri, Feb 07, 2014 at 05:48:59PM +0100, Miklos Szeredi wrote: > From: Miklos Szeredi <mszeredi@suse.cz> > > 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.
|