Skip to content

Commit 0733ad8

Browse files
Christoph Hellwigaxboe
authored andcommitted
fs: remove the now unused FMODE_* flags
FMODE_NDELAY, FMODE_EXCL and FMODE_WRITE_IOCTL were only used for block internal purposed and are now entirely unused, so remove them. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Christian Brauner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent ee3249a commit 0733ad8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

include/linux/fs.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,6 @@ typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset,
119119
#define FMODE_PWRITE ((__force fmode_t)0x10)
120120
/* File is opened for execution with sys_execve / sys_uselib */
121121
#define FMODE_EXEC ((__force fmode_t)0x20)
122-
/* File is opened with O_NDELAY (only set for block devices) */
123-
#define FMODE_NDELAY ((__force fmode_t)0x40)
124-
/* File is opened with O_EXCL (only set for block devices) */
125-
#define FMODE_EXCL ((__force fmode_t)0x80)
126-
/* File is opened using open(.., 3, ..) and is writeable only for ioctls
127-
(specialy hack for floppy.c) */
128-
#define FMODE_WRITE_IOCTL ((__force fmode_t)0x100)
129122
/* 32bit hashes as llseek() offset (for directories) */
130123
#define FMODE_32BITHASH ((__force fmode_t)0x200)
131124
/* 64bit hashes as llseek() offset (for directories) */

0 commit comments

Comments
 (0)