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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent 19e0486 commit f508057

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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)