0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-14 00:34:18 +01:00

ircd::fs: Minor cleanup/simplify.

This commit is contained in:
Jason Volk 2019-08-15 23:35:19 -07:00
parent 49e1fd1eea
commit 97b613bb82

View file

@ -1185,14 +1185,9 @@ ircd::fs::_write_pwritev2(const fd &fd,
opts.offset == -1 && !opts.update_offset? 0 : opts.offset
};
const auto &flags_
{
flags(opts)
};
ssize_t ret; do
{
ret = ::pwritev2(int(fd), iov.data(), iov.size(), opts.offset, flags_);
ret = ::pwritev2(int(fd), iov.data(), iov.size(), opts.offset, flags(opts));
}
while(!opts.interruptible && unlikely(ret == -1 && errno == EINTR));