new helper: is_root_inode()
[deliverable/linux.git] / include / linux / fs.h
index 00c8e4f65cb6aaa32eb2851d1a0e71cc59c3c09c..1c12c681803feac79366a6fb43e0a60cc6948e49 100644 (file)
@@ -2789,6 +2789,11 @@ static inline void inode_has_no_xattr(struct inode *inode)
                inode->i_flags |= S_NOSEC;
 }
 
+static inline bool is_root_inode(struct inode *inode)
+{
+       return inode == inode->i_sb->s_root->d_inode;
+}
+
 static inline bool dir_emit(struct dir_context *ctx,
                            const char *name, int namelen,
                            u64 ino, unsigned type)
This page took 0.026291 seconds and 5 git commands to generate.