Skip to content

fix a bug in ext2_max_size

yangerkun linux-ext4 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ext2: remove static of ext2_block_to_pathfs/ext2/ext2.h fs/ext2/inode.c+9 -80 replies
2/2ext2: get the exact max filesize in ext2_max_sizefs/ext2/super.c+92 -232 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

Patchyangerkun
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] fix a bug in ext2_max_size

When mkfs.ext2 with '-b 65536' and mount(arm 64KB page size), function mount_fs will trigger WARNNING since ext2_max_size will return value less than 0. Also, we cannot write any file in this fs since the sb->maxbytes is less than 0.

Fix it by get the exact max file size.

yangerkun (2):
ext2: remove static of ext2_block_to_path
ext2: get the exact max filesize in ext2_max_size

 fs/ext2/ext2.h  |   1 +
 fs/ext2/inode.c |  16 ++++----
 fs/ext2/super.c | 115 ++++++++++++++++++++++++++++++++++++++++++++------------
 3 files changed, 101 insertions(+), 31 deletions(-)
Signature · 1 line
2.9.5