* [jlayton:dir-deleg 4/27] fs/namei.c:4179:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
@ 2026-04-11 1:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-11 1:27 UTC (permalink / raw)
To: Jeff Layton; +Cc: llvm, oe-kbuild-all, Jan Kara
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git dir-deleg
head: 340042c418d5b1b9287c2cdd19cae0f1c012da40
commit: 9c7ece0d6dc6e427217c4086f7d90e1932a9acad [4/27] filelock: add support for ignoring deleg breaks for dir change events
config: arm-randconfig-003-20260411 (https://download.01.org/0day-ci/archive/20260411/202604110909.gP0Ck8Ov-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project ae825cb8cea7f3ac8e5e4096f22713845cf5e501)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260411/202604110909.gP0Ck8Ov-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604110909.gP0Ck8Ov-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/namei.c:4179:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
4179 | error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, di);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c:4478:38: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
4478 | error = try_break_deleg(dir_inode, LEASE_BREAK_DIR_CREATE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c:5094:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
5094 | error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c:5235:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
5235 | error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
>> fs/namei.c:5340:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_DELETE'
5340 | error = try_break_deleg(dir, LEASE_BREAK_DIR_DELETE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c:5470:33: error: use of undeclared identifier 'LEASE_BREAK_DIR_DELETE'
5470 | error = try_break_deleg(dir, LEASE_BREAK_DIR_DELETE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c:5617:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
5617 | error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c:5748:32: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
5748 | error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
>> fs/namei.c:6015:26: error: use of undeclared identifier 'LEASE_BREAK_DIR_RENAME'
6015 | old_dir == new_dir ? LEASE_BREAK_DIR_RENAME :
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c:6016:12: error: use of undeclared identifier 'LEASE_BREAK_DIR_DELETE'
6016 | LEASE_BREAK_DIR_DELETE,
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c:6021:36: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
6021 | error = try_break_deleg(new_dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
11 errors generated.
vim +/LEASE_BREAK_DIR_CREATE +4179 fs/namei.c
4146
4147 /**
4148 * vfs_create - create new file
4149 * @idmap: idmap of the mount the inode was found from
4150 * @dentry: dentry of the child file
4151 * @mode: mode of the child file
4152 * @di: returns parent inode, if the inode is delegated.
4153 *
4154 * Create a new file.
4155 *
4156 * If the inode has been found through an idmapped mount the idmap of
4157 * the vfsmount must be passed through @idmap. This function will then take
4158 * care to map the inode according to @idmap before checking permissions.
4159 * On non-idmapped mounts or if permission checking is to be performed on the
4160 * raw inode simply pass @nop_mnt_idmap.
4161 */
4162 int vfs_create(struct mnt_idmap *idmap, struct dentry *dentry, umode_t mode,
4163 struct delegated_inode *di)
4164 {
4165 struct inode *dir = d_inode(dentry->d_parent);
4166 int error;
4167
4168 error = may_create_dentry(idmap, dir, dentry);
4169 if (error)
4170 return error;
4171
4172 if (!dir->i_op->create)
4173 return -EACCES; /* shouldn't it be ENOSYS? */
4174
4175 mode = vfs_prepare_mode(idmap, dir, mode, S_IALLUGO, S_IFREG);
4176 error = security_inode_create(dir, dentry, mode);
4177 if (error)
4178 return error;
> 4179 error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, di);
4180 if (error)
4181 return error;
4182 error = dir->i_op->create(idmap, dir, dentry, mode, true);
4183 if (!error)
4184 fsnotify_create(dir, dentry);
4185 return error;
4186 }
4187 EXPORT_SYMBOL(vfs_create);
4188
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-11 1:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-11 1:27 [jlayton:dir-deleg 4/27] fs/namei.c:4179:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox