1 QA output created by 040
2 --- xfsprogs/libxfs/xfs_alloc.c
3 +++ kernel/libxfs/xfs_alloc.c
5 pag->pagf_refcount_level = be32_to_cpu(agf->agf_refcount_level);
6 spin_lock_init(&pag->pagb_lock);
8 - /* XXX: pagb_tree doesn't exist in userspace */
9 - //pag->pagb_tree = RB_ROOT;
10 + pag->pagb_tree = RB_ROOT;
14 --- xfsprogs/libxfs/xfs_btree.c
15 +++ kernel/libxfs/xfs_btree.c
21 struct xfs_btree_split_args {
22 struct xfs_btree_cur *cur;
25 destroy_work_on_stack(&args.work);
29 -#define xfs_btree_split __xfs_btree_split
34 --- xfsprogs/libxfs/xfs_dir2_sf.c
35 +++ kernel/libxfs/xfs_dir2_sf.c
37 * Calculate the new size, see if we should give up yet.
39 size = xfs_dir2_sf_hdr_size(i8count) + /* header */
40 - count * 3 * sizeof(__u8) + /* namelen + offset */
41 + count * 3 * sizeof(u8) + /* namelen + offset */
43 (i8count ? /* inumber */
44 count * XFS_INO64_SIZE :
45 --- xfsprogs/libxfs/xfs_fs.h
46 +++ kernel/libxfs/xfs_fs.h
51 - * Flags for the bs_xflags/fsx_xflags field in XFS_IOC_FS[GS]ETXATTR[A]
52 - * These are for backwards compatibility only. New code should
53 - * use the kernel [4.5 onwards] defined FS_XFLAG_* definitions directly.
55 -#define XFS_XFLAG_REALTIME FS_XFLAG_REALTIME
56 -#define XFS_XFLAG_PREALLOC FS_XFLAG_PREALLOC
57 -#define XFS_XFLAG_IMMUTABLE FS_XFLAG_IMMUTABLE
58 -#define XFS_XFLAG_APPEND FS_XFLAG_APPEND
59 -#define XFS_XFLAG_SYNC FS_XFLAG_SYNC
60 -#define XFS_XFLAG_NOATIME FS_XFLAG_NOATIME
61 -#define XFS_XFLAG_NODUMP FS_XFLAG_NODUMP
62 -#define XFS_XFLAG_RTINHERIT FS_XFLAG_RTINHERIT
63 -#define XFS_XFLAG_PROJINHERIT FS_XFLAG_PROJINHERIT
64 -#define XFS_XFLAG_NOSYMLINKS FS_XFLAG_NOSYMLINKS
65 -#define XFS_XFLAG_EXTSIZE FS_XFLAG_EXTSIZE
66 -#define XFS_XFLAG_EXTSZINHERIT FS_XFLAG_EXTSZINHERIT
67 -#define XFS_XFLAG_NODEFRAG FS_XFLAG_NODEFRAG
68 -#define XFS_XFLAG_FILESTREAM FS_XFLAG_FILESTREAM
69 -#define XFS_XFLAG_HASATTR FS_XFLAG_HASATTR
72 * Structure for XFS_IOC_GETBMAP.
73 * On input, fill in bmv_offset and bmv_length of the first structure
74 * to indicate the area of interest in the file, and bmv_entries with
76 #define XFS_IOC_GET_AG_RESBLKS _IOR ('X', 126, struct xfs_fsop_ag_resblks)
77 /* XFS_IOC_GETFSUUID ---------- deprecated 140 */
79 -/* reflink ioctls; these MUST match the btrfs ioctl definitions */
80 -/* from struct btrfs_ioctl_clone_range_args */
81 -struct xfs_clone_args {
88 -/* extent-same (dedupe) ioctls; these MUST match the btrfs ioctl definitions */
89 -#define XFS_EXTENT_DATA_SAME 0
90 -#define XFS_EXTENT_DATA_DIFFERS 1
92 -/* from struct btrfs_ioctl_file_extent_same_info */
93 -struct xfs_extent_data_info {
94 - __s64 fd; /* in - destination file */
95 - __u64 logical_offset; /* in - start of extent in destination */
96 - __u64 bytes_deduped; /* out - total # of bytes we were able
97 - * to dedupe from this file */
98 - /* status of this dedupe operation:
100 - * == XFS_EXTENT_DATA_SAME if dedupe succeeds
101 - * == XFS_EXTENT_DATA_DIFFERS if data differs
103 - __s32 status; /* out - see above description */
107 -/* from struct btrfs_ioctl_file_extent_same_args */
108 -struct xfs_extent_data {
109 - __u64 logical_offset; /* in - start of extent in source */
110 - __u64 length; /* in - length of extent */
111 - __u16 dest_count; /* in - total elements in info array */
114 - struct xfs_extent_data_info info[0];
117 -#define XFS_IOC_CLONE _IOW (0x94, 9, int)
118 -#define XFS_IOC_CLONE_RANGE _IOW (0x94, 13, struct xfs_clone_args)
119 -#define XFS_IOC_FILE_EXTENT_SAME _IOWR(0x94, 54, struct xfs_extent_data)
121 #ifndef HAVE_BBMACROS
123 --- xfsprogs/libxfs/xfs_inode_fork.c
124 +++ kernel/libxfs/xfs_inode_fork.c
125 @@ -XXXX,X +YYYY,Y @@
126 xfs_ifork_t *ifp, /* inode fork pointer */
127 int new_size) /* new indirection array size */
130 int nlists; /* number of irec's (ex lists) */
131 int size; /* current indirection array size */
133 @@ -XXXX,X +YYYY,Y @@
134 size = nlists * sizeof(xfs_ext_irec_t);
135 ASSERT(ifp->if_real_bytes);
136 ASSERT((new_size >= 0) && (new_size != size));
139 xfs_iext_destroy(ifp);
141 --- xfsprogs/libxfs/xfs_sb.c
142 +++ kernel/libxfs/xfs_sb.c
143 @@ -XXXX,X +YYYY,Y @@
147 + * Until this is fixed only page-sized or smaller data blocks work.
149 + if (unlikely(sbp->sb_blocksize > PAGE_SIZE)) {
151 + "File system with blocksize %d bytes. "
152 + "Only pagesize (%ld) or less will currently work.",
153 + sbp->sb_blocksize, PAGE_SIZE);
158 * Currently only very few inode sizes are supported.
160 switch (sbp->sb_inodesize) {
161 @@ -XXXX,X +YYYY,Y @@
165 + if (check_inprogress && sbp->sb_inprogress) {
166 + xfs_warn(mp, "Offline file system operation in progress!");
167 + return -EFSCORRUPTED;