aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index c3f6daf749cc..78043da85e1f 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -786,6 +786,11 @@ struct inode {
786 void *i_private; /* fs or device private pointer */ 786 void *i_private; /* fs or device private pointer */
787}; 787};
788 788
789static inline int inode_unhashed(struct inode *inode)
790{
791 return hlist_unhashed(&inode->i_hash);
792}
793
789/* 794/*
790 * inode->i_mutex nesting subclasses for the lock validator: 795 * inode->i_mutex nesting subclasses for the lock validator:
791 * 796 *