Skip to content

Commit

Permalink
fsstress: Build fix for recent include/linux/fs.h
Browse files Browse the repository at this point in the history
"struct fsxattr" is defined in include/linux/fs.h on recent kernel. So
don't redefine if FS_XFLAG_REALTIME is available.
  • Loading branch information
OGAWAHirofumi committed Jan 29, 2017
1 parent 521bdd9 commit e8a9147
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fsstress/xfscompat.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <stdint.h>
#include <sys/ioctl.h>
#include <linux/fs.h>
#include <linux/ioctl.h>

typedef signed short __s16;
Expand Down Expand Up @@ -39,10 +40,12 @@ typedef struct xfs_fsop_bulkreq {
__int32_t *ocount;
} xfs_fsop_bulkreq_t;

#ifndef FS_XFLAG_REALTIME
struct fsxattr {
__u32 fsx_xflags; /* xflags field value (get/set) */
__u32 fsx_extsize; /* extsize field value (get/set)*/
};
#endif

typedef struct xfs_error_injection {
__s32 fd;
Expand Down

0 comments on commit e8a9147

Please sign in to comment.