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>
This commit is contained in:

committed by
Al Viro

parent
0b944d3a4b
commit
723c038475
14
fs/aio.c
14
fs/aio.c
@@ -1472,20 +1472,6 @@ rw_common:
|
||||
kfree(iovec);
|
||||
break;
|
||||
|
||||
case IOCB_CMD_FDSYNC:
|
||||
if (!file->f_op->aio_fsync)
|
||||
return -EINVAL;
|
||||
|
||||
ret = file->f_op->aio_fsync(req, 1);
|
||||
break;
|
||||
|
||||
case IOCB_CMD_FSYNC:
|
||||
if (!file->f_op->aio_fsync)
|
||||
return -EINVAL;
|
||||
|
||||
ret = file->f_op->aio_fsync(req, 0);
|
||||
break;
|
||||
|
||||
default:
|
||||
pr_debug("EINVAL: no operation provided\n");
|
||||
return -EINVAL;
|
||||
|
Reference in New Issue
Block a user