Cleanup copy functions (#1500)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled

This commit is contained in:
trapexit 2025-07-27 16:23:45 -05:00 • committed by GitHub
parent e8cd74cab0
commit 33fc26f81f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 164 additions and 151 deletions

View file

@ -25,17 +25,16 @@
#include <stddef.h>
int
fs::copydata(const int src_fd_,
const int dst_fd_,
const size_t count_)
s64
fs::copydata(const int src_fd_,
const int dst_fd_,
const u64 count_)
{
int rv;
s64 rv;
rv = fs::ficlone(src_fd_,dst_fd_);
if(rv >= 0)
return rv;
return count_;
fs::fadvise_willneed(src_fd_,0,count_);
fs::fadvise_sequential(src_fd_,0,count_);