* [goldwynr:lock-rearrange 11/21] fs/btrfs/inode.c:7808:25: error: implicit declaration of function 'find_lock_delalloc_range'
@ 2023-03-11 6:34 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-11 6:34 UTC (permalink / raw)
To: Goldwyn Rodrigues; +Cc: oe-kbuild-all
tree: https://github.com/goldwynr/linux lock-rearrange
head: cf186c1bdf9992b2e1f6b970ec5db50595bfc363
commit: 970a0d3be13f4c873d5912b3b62cfabd6fa12215 [11/21] btrfs: locking extents for async writeback
config: nios2-randconfig-r025-20230310 (https://download.01.org/0day-ci/archive/20230311/202303111459.lVb8UUm5-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/goldwynr/linux/commit/970a0d3be13f4c873d5912b3b62cfabd6fa12215
git remote add goldwynr https://github.com/goldwynr/linux
git fetch --no-tags goldwynr lock-rearrange
git checkout 970a0d3be13f4c873d5912b3b62cfabd6fa12215
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=nios2 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=nios2 SHELL=/bin/bash fs/btrfs/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303111459.lVb8UUm5-lkp@intel.com/
All errors (new ones prefixed by >>):
fs/btrfs/inode.c: In function 'btrfs_writepages_async':
>> fs/btrfs/inode.c:7808:25: error: implicit declaration of function 'find_lock_delalloc_range' [-Werror=implicit-function-declaration]
7808 | found = find_lock_delalloc_range(&inode->vfs_inode, NULL, &cur_start, &cur_end);
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/find_lock_delalloc_range +7808 fs/btrfs/inode.c
7794
7795 static int btrfs_writepages_async(struct btrfs_inode *inode, struct writeback_control *wbc, u64 start, u64 end)
7796 {
7797 u64 last_start, cur_start = start;
7798 u64 cur_end;
7799 int ret = 0;
7800
7801 lock_extent(&inode->io_tree, start, end, NULL);
7802
7803 while (cur_start < end) {
7804 bool found;
7805 last_start = cur_start;
7806 cur_end = end;
7807
> 7808 found = find_lock_delalloc_range(&inode->vfs_inode, NULL, &cur_start, &cur_end);
7809 /* Nothing to writeback */
7810 if (!found) {
7811 unlock_extent(&inode->io_tree, cur_start, cur_end, NULL);
7812 cur_start = cur_end + 1;
7813 continue;
7814 }
7815
7816 /* A hole with no pages, unlock part therof */
7817 if (cur_start > last_start)
7818 unlock_extent(&inode->io_tree, last_start, cur_start - 1, NULL);
7819
7820 /* Got more than we requested for */
7821 if (cur_end > end) {
7822 if (try_lock_extent(&inode->io_tree, end + 1, cur_end, NULL)) {
7823 /* Try writing the whole extent */
7824 end = cur_end;
7825 } else {
7826 /*
7827 * Someone is holding the extent lock.
7828 * Unlock pages from last part of extent, and
7829 * write just as much writepage requested for
7830 */
7831 __unlock_for_delalloc(&inode->vfs_inode, NULL, end + 1, cur_end);
7832 cur_end = end;
7833 }
7834 }
7835
7836 ret = cow_file_range_async(inode, wbc, cur_start, cur_end);
7837 if (ret < 0) {
7838 unlock_extent(&inode->io_tree, cur_start, end, NULL);
7839 break;
7840 }
7841
7842 cur_start = cur_end + 1;
7843 }
7844
7845 return ret;
7846 }
7847
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-11 6:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11 6:34 [goldwynr:lock-rearrange 11/21] fs/btrfs/inode.c:7808:25: error: implicit declaration of function 'find_lock_delalloc_range' 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;
as well as URLs for NNTP newsgroup(s).