linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] fix a bug in ext2_max_size
@ 2019-01-23 13:14 yangerkun
  2019-01-23 13:14 ` [PATCH 1/2] ext2: remove static of ext2_block_to_path yangerkun
  2019-01-23 13:14 ` [PATCH 2/2] ext2: get the exact max filesize in ext2_max_size yangerkun
  0 siblings, 2 replies; 5+ messages in thread
From: yangerkun @ 2019-01-23 13:14 UTC (permalink / raw)
  To: jack; +Cc: miaoxie, yi.zhang, houtao1, yangerkun, linux-ext4

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(-)

-- 
2.9.5


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-31 11:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-23 13:14 [PATCH 0/2] fix a bug in ext2_max_size yangerkun
2019-01-23 13:14 ` [PATCH 1/2] ext2: remove static of ext2_block_to_path yangerkun
2019-01-23 13:14 ` [PATCH 2/2] ext2: get the exact max filesize in ext2_max_size yangerkun
2019-01-29 16:42   ` Jan Kara
2019-01-31 11:42     ` yangerkun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).