Skip to content

Commit

Permalink
vfs: align VFS_FILE_BUFFER_SIZE with ARCHITECTURE_WORD_BYTES
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian18 committed Feb 6, 2024
1 parent 0eddf4a commit 9e9238b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sys/include/vfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@
#include <sys/types.h> /* for off_t etc. */
#include <sys/statvfs.h> /* for struct statvfs */

#include "architecture.h"
#include "sched.h"
#include "clist.h"
#include "iolist.h"
#include "macros/math.h"
#include "mtd.h"
#include "xfa.h"

Expand Down Expand Up @@ -279,12 +281,12 @@ extern "C" {
* @attention Put the check in the public header file (.h), do not put the check in the
* implementation (.c) file.
*/
#define VFS_FILE_BUFFER_SIZE MAX5(FATFS_VFS_FILE_BUFFER_SIZE, \
LITTLEFS_VFS_FILE_BUFFER_SIZE, \
LITTLEFS2_VFS_FILE_BUFFER_SIZE,\
SPIFFS_VFS_FILE_BUFFER_SIZE, \
LWEXT4_VFS_FILE_BUFFER_SIZE \
)
#define VFS_FILE_BUFFER_SIZE MATH_ALIGN(MAX5(FATFS_VFS_FILE_BUFFER_SIZE, \
LITTLEFS_VFS_FILE_BUFFER_SIZE, \
LITTLEFS2_VFS_FILE_BUFFER_SIZE,\
SPIFFS_VFS_FILE_BUFFER_SIZE, \
LWEXT4_VFS_FILE_BUFFER_SIZE), \
ARCHITECTURE_WORD_BYTES)
#endif

#ifndef VFS_NAME_MAX
Expand Down

0 comments on commit 9e9238b

Please sign in to comment.