diff options
author | Alex Shi <alex.shi@linaro.org> | 2016-05-20 12:16:40 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2016-05-20 12:16:40 +0800 |
commit | 023861726fc0899139add9dd47905b8de7644257 (patch) | |
tree | 5bf6b578027b3d9910da0d99f01eaf5cfa0a5e02 /include/linux/dcache.h | |
parent | b3f09bff3f6f291d4ef5d400426278856bf24c27 (diff) | |
parent | 510d0a3f869611dcd001a2b7627fa5dded4579af (diff) |
Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-androidlsk-v4.4-16.05-android
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r-- | include/linux/dcache.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index e4221f7c5b53..d184e283cf81 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -593,4 +593,16 @@ static inline struct dentry *d_real(struct dentry *dentry) return dentry; } +static inline struct inode *vfs_select_inode(struct dentry *dentry, + unsigned open_flags) +{ + struct inode *inode = d_inode(dentry); + + if (inode && unlikely(dentry->d_flags & DCACHE_OP_SELECT_INODE)) + inode = dentry->d_op->d_select_inode(dentry, open_flags); + + return inode; +} + + #endif /* __LINUX_DCACHE_H */ |