Merge branch 'xfs-4.9-log-recovery-fixes' into for-next
authorDave Chinner <david@fromorbit.com>
Sun, 2 Oct 2016 22:56:28 +0000 (09:56 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 2 Oct 2016 22:56:28 +0000 (09:56 +1100)
1  2 
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/xfs_filestream.c
fs/xfs/xfs_super.c
fs/xfs/xfs_trace.h

Simple merge
@@@ -85,12 -85,12 +85,12 @@@ typedef struct xfs_alloc_arg 
        xfs_extlen_t    len;            /* output: actual size of extent */
        xfs_alloctype_t type;           /* allocation type XFS_ALLOCTYPE_... */
        xfs_alloctype_t otype;          /* original allocation type */
+       int             datatype;       /* mask defining data type treatment */
        char            wasdel;         /* set if allocation was prev delayed */
        char            wasfromfl;      /* set if allocation is from freelist */
-       char            userdata;       /* mask defining userdata treatment */
 -      char            isfl;           /* set if is freelist blocks - !acctg */
        xfs_fsblock_t   firstblock;     /* io first block allocated */
        struct xfs_owner_info   oinfo;  /* owner of blocks being allocated */
 +      enum xfs_ag_resv_type   resv;   /* block reservation to use */
  } xfs_alloc_arg_t;
  
  /*
@@@ -3783,9 -3785,9 +3787,9 @@@ xfs_bmap_btalloc
        }
        args.minleft = ap->minleft;
        args.wasdel = ap->wasdel;
 -      args.isfl = 0;
 +      args.resv = XFS_AG_RESV_NONE;
-       args.userdata = ap->userdata;
-       if (ap->userdata & XFS_ALLOC_USERDATA_ZERO)
+       args.datatype = ap->datatype;
+       if (ap->datatype & XFS_ALLOC_USERDATA_ZERO)
                args.ip = ap->ip;
  
        error = xfs_alloc_vextent(&args);
Simple merge
Simple merge
Simple merge
@@@ -1623,8 -1622,8 +1623,8 @@@ DECLARE_EVENT_CLASS(xfs_alloc_class
                __field(short, otype)
                __field(char, wasdel)
                __field(char, wasfromfl)
 -              __field(char, isfl)
 +              __field(int, resv)
-               __field(char, userdata)
+               __field(int, datatype)
                __field(xfs_fsblock_t, firstblock)
        ),
        TP_fast_assign(
                __entry->otype = args->otype;
                __entry->wasdel = args->wasdel;
                __entry->wasfromfl = args->wasfromfl;
 -              __entry->isfl = args->isfl;
 +              __entry->resv = args->resv;
-               __entry->userdata = args->userdata;
+               __entry->datatype = args->datatype;
                __entry->firstblock = args->firstblock;
        ),
        TP_printk("dev %d:%d agno %u agbno %u minlen %u maxlen %u mod %u "
                  "prod %u minleft %u total %u alignment %u minalignslop %u "
 -                "len %u type %s otype %s wasdel %d wasfromfl %d isfl %d "
 +                "len %u type %s otype %s wasdel %d wasfromfl %d resv %d "
-                 "userdata %d firstblock 0x%llx",
+                 "datatype 0x%x firstblock 0x%llx",
                  MAJOR(__entry->dev), MINOR(__entry->dev),
                  __entry->agno,
                  __entry->agbno,
                  __print_symbolic(__entry->otype, XFS_ALLOC_TYPES),
                  __entry->wasdel,
                  __entry->wasfromfl,
 -                __entry->isfl,
 +                __entry->resv,
-                 __entry->userdata,
+                 __entry->datatype,
                  (unsigned long long)__entry->firstblock)
  )