[PATCH 51/58] xfs: add clone file and clone range ioctls

kbuild test robot lkp at intel.com
Wed Oct 7 00:13:13 CDT 2015


Hi Darrick,

[auto build test WARNING on v4.3-rc4 -- if it's inappropriate base, please ignore]

config: i386-randconfig-i0-201540 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   fs/xfs/xfs_ioctl.c: In function 'xfs_file_ioctl':
>> fs/xfs/xfs_ioctl.c:1962:51: warning: large integer implicitly truncated to unsigned type [-Woverflow]
      error = xfs_ioctl_reflink(src.file, 0, filp, 0, ~0ULL);
                                                      ^

vim +1962 fs/xfs/xfs_ioctl.c

  1946			error = xfs_fs_eofblocks_from_user(&eofb, &keofb);
  1947			if (error)
  1948				return error;
  1949	
  1950			return xfs_icache_free_eofblocks(mp, &keofb);
  1951		}
  1952	
  1953		case XFS_IOC_CLONE: {
  1954			struct fd src;
  1955	
  1956			src = fdget(p);
  1957			if (!src.file)
  1958				return -EBADF;
  1959	
  1960			trace_xfs_ioctl_clone(file_inode(src.file), file_inode(filp));
  1961	
> 1962			error = xfs_ioctl_reflink(src.file, 0, filp, 0, ~0ULL);
  1963			fdput(src);
  1964			if (error > 0)
  1965				error = 0;
  1966	
  1967			return error;
  1968		}
  1969	
  1970		case XFS_IOC_CLONE_RANGE: {

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 19876 bytes
Desc: not available
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20151007/588d0b16/attachment-0001.obj>


More information about the xfs mailing list