We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af153bb commit 3eb7e95Copy full SHA for 3eb7e95
include/linux/fs.h
@@ -792,6 +792,8 @@ struct inode {
792
793
static inline void inode_set_cached_link(struct inode *inode, char *link, int linklen)
794
{
795
+ VFS_WARN_ON_INODE(strlen(link) != linklen, inode);
796
+ VFS_WARN_ON_INODE(inode->i_opflags & IOP_CACHED_LINK, inode);
797
inode->i_link = link;
798
inode->i_linklen = linklen;
799
inode->i_opflags |= IOP_CACHED_LINK;
0 commit comments