]> git.baikalelectronics.ru Git - kernel.git/commit
VFS: Split DCACHE_FILE_TYPE into regular and special types
authorDavid Howells <dhowells@redhat.com>
Thu, 29 Jan 2015 12:02:29 +0000 (12:02 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Feb 2015 16:38:38 +0000 (11:38 -0500)
commitd47f2156ac6d6905cc8d91200bfbbf69ae3d1c58
treee9aab8e53a78446f60e4036cb617c9dd10655228
parent47deac21788ceacccdcf96dd905dc7fe07c139bf
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 <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c
include/linux/dcache.h