summaryrefslogtreecommitdiff
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2023-10-03 02:09:35 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2023-10-05 02:53:36 +0300
commitd7e9a9037de27b642d5a3edef7c69e2a2b460287 (patch)
treee752a1d80d82b4ddd71932f338ad42dc41467aa0 /fs/f2fs/node.c
parent4ed33e69e136e7b295ff69449853beac605e8502 (diff)
downloadlinux-d7e9a9037de27b642d5a3edef7c69e2a2b460287.tar.xz
f2fs: Support Block Size == Page Size
This allows f2fs to support cases where the block size = page size for both 4K and 16K block sizes. Other sizes should work as well, should the need arise. This does not currently support 4K Block size filesystems if the page size is 16K. Signed-off-by: Daniel Rosenberg <drosen@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index ee2e1dd64f25..a2b2c6c7f66d 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -633,7 +633,7 @@ static void f2fs_ra_node_pages(struct page *parent, int start, int n)
/* Then, try readahead for siblings of the desired node */
end = start + n;
- end = min(end, NIDS_PER_BLOCK);
+ end = min(end, (int)NIDS_PER_BLOCK);
for (i = start; i < end; i++) {
nid = get_nid(parent, i, false);
f2fs_ra_node_page(sbi, nid);