From: David Howells Date: Thu, 29 Jan 2015 12:02:29 +0000 (+0000) Subject: VFS: Split DCACHE_FILE_TYPE into regular and special types X-Git-Tag: fixes-v4.0-rc1~19^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44bdb5e5f6382ba88f7678d6f535f879324522ae;p=pandora-kernel.git VFS: Split DCACHE_FILE_TYPE into regular and special types Split DCACHE_FILE_TYPE into DCACHE_REGULAR_TYPE (dentries representing regular files) and DCACHE_SPECIAL_TYPE (representing blockdev, chardev, FIFO and socket files). d_is_reg() and d_is_special() are added to detect these subtypes and d_is_file() is left as the union of the two. This allows a number of places that use S_ISREG(dentry->d_inode->i_mode) to use d_is_reg(dentry) instead. Signed-off-by: David Howells Signed-off-by: Al Viro --- Reading git-diff-tree failed