[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130115195741.GG17719@thunk.org>
Date: Tue, 15 Jan 2013 14:57:41 -0500
From: Theodore Ts'o <tytso@....edu>
To: Phillip Susi <psusi@...ntu.com>
Cc: Zheng Liu <gnehzuil.liu@...il.com>, linux-ext4@...r.kernel.org,
Zheng Liu <wenqing.lz@...bao.com>
Subject: Re: [PATCH 3/3] mke2fs: document bigalloc and cluster-size
On Tue, Jan 15, 2013 at 02:46:17PM -0500, Phillip Susi wrote:
>
> Does this mean that a cluster is the minimum allocation unit, or can
> two small files allocate different blocks in the same cluster, leaving
> the cluster partially used? If the former, then how is this different
> than just using a larger block size?
The former. The difference is that we use units of blocks in the
indirect blocks and extents --- and the reason for this is because
there's a pretty fundamental limitation baked into the MM layer that
the file system block size is less than or equal to the page size. So
on architectures where we have 16k page sizes, we can use a 16k block
size --- but then you won't be able to mount that file system on an
x86 system.
So bigalloc is basically a hack because it was easier to make this
change in the file system than it is to deal with block sizes greater
than the page size.
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists