Skip to content

Commit f508057

Browse files
Christoph Hellwigbrauner
authored andcommitted
xfs: drop fop_flags for directories
Directories have non of the capabilities, so drop the flags. Note that the current state is harmless as no one actually checks for the flags either. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20240423124608.537794-3-hch@lst.de Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 19e0486 commit f508057

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

fs/xfs/xfs_file.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,4 @@ const struct file_operations xfs_dir_file_operations = {
15101510
.compat_ioctl = xfs_file_compat_ioctl,
15111511
#endif
15121512
.fsync = xfs_dir_fsync,
1513-
.fop_flags = FOP_MMAP_SYNC | FOP_BUFFER_RASYNC |
1514-
FOP_BUFFER_WASYNC | FOP_DIO_PARALLEL_WRITE,
15151513
};

0 commit comments

Comments
 (0)