fix a bug in ext2_max_size
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ext2: remove static of ext2_block_to_pathfs/ fs/ | +9 | 0 replies | |
| 2/2 | ext2: get the exact max filesize in ext2_max_sizefs/ | +92 | 2 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | yangerkun |
|---|---|
| 1/2 | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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