Re: [PATCH V16 16/18] Btrfs: btrfs_clone: Flush dirty blocks of a page that do not map the clone range

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

 



Hi Chandan,

[auto build test ERROR on tip/perf/core]
[also build test ERROR on v4.6-rc3 next-20160414]
[cannot apply to btrfs/next]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Chandan-Rajendra/Allow-I-O-on-blocks-whose-size-is-less-than-page-size/20160414-163922
config: x86_64-randconfig-x006-201615 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

Note: the linux-review/Chandan-Rajendra/Allow-I-O-on-blocks-whose-size-is-less-than-page-size/20160414-163922 HEAD 753cfebe561d4ba706b6095f0df83e345888dd92 builds fine.
      It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/linkage.h:4:0,
                    from include/linux/kernel.h:6,
                    from fs/btrfs/ioctl.c:19:
   fs/btrfs/ioctl.c: In function 'btrfs_clone_files':
>> fs/btrfs/ioctl.c:3913:27: error: 'PAGE_CACHE_SIZE' undeclared (first use in this function)
     if ((round_down(destoff, PAGE_CACHE_SIZE) < inode->i_size) &&
                              ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^
>> fs/btrfs/ioctl.c:3913:2: note: in expansion of macro 'if'
     if ((round_down(destoff, PAGE_CACHE_SIZE) < inode->i_size) &&
     ^
>> include/linux/kernel.h:64:34: note: in expansion of macro '__round_mask'
    #define round_down(x, y) ((x) & ~__round_mask(x, y))
                                     ^
>> fs/btrfs/ioctl.c:3913:7: note: in expansion of macro 'round_down'
     if ((round_down(destoff, PAGE_CACHE_SIZE) < inode->i_size) &&
          ^
   fs/btrfs/ioctl.c:3913:27: note: each undeclared identifier is reported only once for each function it appears in
     if ((round_down(destoff, PAGE_CACHE_SIZE) < inode->i_size) &&
                              ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^
>> fs/btrfs/ioctl.c:3913:2: note: in expansion of macro 'if'
     if ((round_down(destoff, PAGE_CACHE_SIZE) < inode->i_size) &&
     ^
>> include/linux/kernel.h:64:34: note: in expansion of macro '__round_mask'
    #define round_down(x, y) ((x) & ~__round_mask(x, y))
                                     ^
>> fs/btrfs/ioctl.c:3913:7: note: in expansion of macro 'round_down'
     if ((round_down(destoff, PAGE_CACHE_SIZE) < inode->i_size) &&
          ^

vim +/PAGE_CACHE_SIZE +3913 fs/btrfs/ioctl.c

  3907		/* verify if ranges are overlapped within the same file */
  3908		if (same_inode) {
  3909			if (destoff + len > off && destoff < off + len)
  3910				goto out_unlock;
  3911		}
  3912	
> 3913		if ((round_down(destoff, PAGE_CACHE_SIZE) < inode->i_size) &&
  3914			!IS_ALIGNED(destoff, PAGE_CACHE_SIZE)) {
  3915			ret = filemap_write_and_wait_range(inode->i_mapping,
  3916						round_down(destoff, PAGE_CACHE_SIZE),

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

Attachment: .config.gz
Description: Binary data


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

  Powered by Linux