diff options
author | Christoph Hellwig <hch@lst.de> | 2016-10-30 12:42:02 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-10-30 13:09:42 -0400 |
commit | 723c038475b78edc9327eb952f95f9881cc9d79d (patch) | |
tree | 551fe8d35221c67853a44a14bd5713f927bfe1b4 /fs | |
parent | 0b944d3a4bba6b25f43aed530f4fa85c04d162a6 (diff) |
fs: remove the never implemented aio_fsync file operation
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/aio.c | 14 | ||||
-rw-r--r-- | fs/ntfs/dir.c | 2 |
2 files changed, 0 insertions, 16 deletions
@@ -1472,20 +1472,6 @@ rw_common: | |||
1472 | kfree(iovec); | 1472 | kfree(iovec); |
1473 | break; | 1473 | break; |
1474 | 1474 | ||
1475 | case IOCB_CMD_FDSYNC: | ||
1476 | if (!file->f_op->aio_fsync) | ||
1477 | return -EINVAL; | ||
1478 | |||
1479 | ret = file->f_op->aio_fsync(req, 1); | ||
1480 | break; | ||
1481 | |||
1482 | case IOCB_CMD_FSYNC: | ||
1483 | if (!file->f_op->aio_fsync) | ||
1484 | return -EINVAL; | ||
1485 | |||
1486 | ret = file->f_op->aio_fsync(req, 0); | ||
1487 | break; | ||
1488 | |||
1489 | default: | 1475 | default: |
1490 | pr_debug("EINVAL: no operation provided\n"); | 1476 | pr_debug("EINVAL: no operation provided\n"); |
1491 | return -EINVAL; | 1477 | return -EINVAL; |
diff --git a/fs/ntfs/dir.c b/fs/ntfs/dir.c index a18613579001..0ee19ecc982d 100644 --- a/fs/ntfs/dir.c +++ b/fs/ntfs/dir.c | |||
@@ -1544,8 +1544,6 @@ const struct file_operations ntfs_dir_ops = { | |||
1544 | .iterate = ntfs_readdir, /* Read directory contents. */ | 1544 | .iterate = ntfs_readdir, /* Read directory contents. */ |
1545 | #ifdef NTFS_RW | 1545 | #ifdef NTFS_RW |
1546 | .fsync = ntfs_dir_fsync, /* Sync a directory to disk. */ | 1546 | .fsync = ntfs_dir_fsync, /* Sync a directory to disk. */ |
1547 | /*.aio_fsync = ,*/ /* Sync all outstanding async | ||
1548 | i/o operations on a kiocb. */ | ||
1549 | #endif /* NTFS_RW */ | 1547 | #endif /* NTFS_RW */ |
1550 | /*.ioctl = ,*/ /* Perform function on the | 1548 | /*.ioctl = ,*/ /* Perform function on the |
1551 | mounted filesystem. */ | 1549 | mounted filesystem. */ |