diff --git a/include/linux/fs.h b/include/linux/fs.h --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -66,13 +66,24 @@ extern int dir_notify_enable; #define RW_MASK 1 #define RWA_MASK 2 -#define READ 0 -#define WRITE 1 -#define READA 2 /* read-ahead - don't block if no resources */ -#define SPECIAL 4 /* For non-blockdevice requests in request queue */ -#define READ_SYNC (READ | (1 << BIO_RW_SYNC)) -#define WRITE_SYNC (WRITE | (1 << BIO_RW_SYNC)) -#define WRITE_BARRIER ((1 << BIO_RW) | (1 << BIO_RW_BARRIER)) +#define RQ_READ 0 +#define RQ_WRITE 1 +#define RQ_READA 2 /* read-ahead - don't block if no resources */ +#define RQ_SPECIAL 4 /* For non-blockdevice requests in request queue */ +#define RQ_READ_SYNC (READ | (1 << BIO_RW_SYNC)) +#define RQ_WRITE_SYNC (WRITE | (1 << BIO_RW_SYNC)) +#define RQ_WRITE_BARRIER ((1 << BIO_RW) | (1 << BIO_RW_BARRIER)) +#define RQ_FLUSH 7 +#define RQ_PM_EVENT 8 + +/* compatibility with existing code */ +#define READ RQ_READ +#define WRITE RQ_WRITE +#define READA RQ_READA +#define SPECIAL RQ_SPECIAL +#define READ_SYNC RQ_READ_SYNC +#define WRITE_SYNC RQ_WRITE_SYNC +#define WRITE_BARRIER RQ_WRITE_BARRIER #define SEL_IN 1 #define SEL_OUT 2