[miklos-vfs:overlayfs-next 64/64] fs//overlayfs/dir.c:607:20: error: 'I_CREATING' undeclared; did you mean 'I_FREEING'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-next
head:   9475938ce8cf589a34f66ca2ef17fa37e37d37bf
commit: 9475938ce8cf589a34f66ca2ef17fa37e37d37bf [64/64] ovl: set I_CREATING on inode being created
config: x86_64-randconfig-x016-08152109 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout 9475938ce8cf589a34f66ca2ef17fa37e37d37bf
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   fs//overlayfs/dir.c: In function 'ovl_create_object':
>> fs//overlayfs/dir.c:607:20: error: 'I_CREATING' undeclared (first use in this function); did you mean 'I_FREEING'?
     inode->i_state |= I_CREATING;
                       ^~~~~~~~~~
                       I_FREEING
   fs//overlayfs/dir.c:607:20: note: each undeclared identifier is reported only once for each function it appears in

vim +607 fs//overlayfs/dir.c

   585	
   586	static int ovl_create_object(struct dentry *dentry, int mode, dev_t rdev,
   587				     const char *link)
   588	{
   589		int err;
   590		struct inode *inode;
   591		struct ovl_cattr attr = {
   592			.rdev = rdev,
   593			.link = link,
   594		};
   595	
   596		err = ovl_want_write(dentry);
   597		if (err)
   598			goto out;
   599	
   600		/* Preallocate inode to be used by ovl_get_inode() */
   601		err = -ENOMEM;
   602		inode = ovl_new_inode(dentry->d_sb, mode, rdev);
   603		if (!inode)
   604			goto out_drop_write;
   605	
   606		spin_lock(&inode->i_lock);
 > 607		inode->i_state |= I_CREATING;
   608		spin_unlock(&inode->i_lock);
   609	
   610		inode_init_owner(inode, dentry->d_parent->d_inode, mode);
   611		attr.mode = inode->i_mode;
   612	
   613		err = ovl_create_or_link(dentry, inode, &attr, false);
   614		/* Did we end up using the preallocated inode? */
   615		if (inode != d_inode(dentry))
   616			iput(inode);
   617	
   618	out_drop_write:
   619		ovl_drop_write(dentry);
   620	out:
   621		return err;
   622	}
   623	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux