diff options
-rw-r--r-- | lib/libstand/nandfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/nandfs.c b/lib/libstand/nandfs.c index 3d039cf..e530fa6 100644 --- a/lib/libstand/nandfs.c +++ b/lib/libstand/nandfs.c @@ -1017,7 +1017,7 @@ ioread(struct open_file *f, off_t pos, void *buf, u_int length) off = pos % bsize; pos /= bsize; - nsec = (length + (bsize - 1)) / bsize; + nsec = howmany(length, bsize); NANDFS_DEBUG("pos=%lld length=%d off=%d nsec=%d\n", pos, length, off, nsec); |