<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/ocfs2/suballoc.c, branch linux-2.6.28.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2008-10-14T18:51:57Z</updated>
<entry>
<title>ocfs2: Simplify ocfs2_read_block()</title>
<updated>2008-10-14T18:51:57Z</updated>
<author>
<name>Joel Becker</name>
</author>
<published>2008-10-10T00:20:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0fcaa56a2a020dd6f90c202b7084e6f4cbedb6c2'/>
<id>urn:sha1:0fcaa56a2a020dd6f90c202b7084e6f4cbedb6c2</id>
<content type='text'>
More than 30 callers of ocfs2_read_block() pass exactly OCFS2_BH_CACHED.
Only six pass a different flag set.  Rather than have every caller care,
let's make ocfs2_read_block() take no flags and always do a cached read.
The remaining six places can call ocfs2_read_blocks() directly.

Signed-off-by: Joel Becker &lt;joel.becker@oracle.com&gt;
Signed-off-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Require an inode for ocfs2_read_block(s)().</title>
<updated>2008-10-14T18:43:29Z</updated>
<author>
<name>Joel Becker</name>
</author>
<published>2008-10-10T00:20:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=31d33073ca38603dea705dae45e094a64ca062d6'/>
<id>urn:sha1:31d33073ca38603dea705dae45e094a64ca062d6</id>
<content type='text'>
Now that synchronous readers are using ocfs2_read_blocks_sync(), all
callers of ocfs2_read_blocks() are passing an inode.  Use it
unconditionally.  Since it's there, we don't need to pass the
ocfs2_super either.

Signed-off-by: Joel Becker &lt;joel.becker@oracle.com&gt;
Signed-off-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Don't check for NULL before brelse()</title>
<updated>2008-10-14T00:02:44Z</updated>
<author>
<name>Mark Fasheh</name>
</author>
<published>2008-10-07T21:25:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a81cb88b64a479b78c6dd5666678d50171865db8'/>
<id>urn:sha1:a81cb88b64a479b78c6dd5666678d50171865db8</id>
<content type='text'>
This is pointless as brelse() already does the check.

Signed-off-by: Mark Fasheh
</content>
</entry>
<entry>
<title>ocfs2: Add the 'inode64' mount option.</title>
<updated>2008-10-13T23:57:08Z</updated>
<author>
<name>Joel Becker</name>
</author>
<published>2008-09-04T03:03:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=12462f1d9f0b96389497438dc2730c6f7410be82'/>
<id>urn:sha1:12462f1d9f0b96389497438dc2730c6f7410be82</id>
<content type='text'>
Now that ocfs2 limits inode numbers to 32bits, add a mount option to
disable the limit.  This parallels XFS.  64bit systems can handle the
larger inode numbers.

[ Added description of inode64 mount option in ocfs2.txt. --Mark ]

Signed-off-by: Joel Becker &lt;joel.becker@oracle.com&gt;
Signed-off-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Limit inode allocation to 32bits.</title>
<updated>2008-10-13T23:57:07Z</updated>
<author>
<name>Joel Becker</name>
</author>
<published>2008-09-04T03:03:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1187c968852e3c668f3b9376083851f81f6eee22'/>
<id>urn:sha1:1187c968852e3c668f3b9376083851f81f6eee22</id>
<content type='text'>
ocfs2 inode numbers are block numbers.  For any filesystem with less
than 2^32 blocks, this is not a problem.  However, when ocfs2 starts
using JDB2, it will be able to support filesystems with more than 2^32
blocks.  This would result in inode numbers higher than 2^32.

The problem is that stat(2) can't handle those numbers on 32bit
machines.  The simple solution is to have ocfs2 allocate all inodes
below that boundary.

The suballoc code is changed to honor an optional block limit.  Only the
inode suballocator sets that limit - all other allocations stay unlimited.

The biggest trick is to grow the inode suballocator beneath that limit.
There's no point in allocating block groups that are above the limit,
then rejecting their elements later on.  We want to prevent the inode
allocator from ever having block groups above the limit.  This involves
a little gyration with the local alloc code.  If the local alloc window
is above the limit, it signals the caller to try the global bitmap but
does not disable the local alloc file (which can be used for other
allocations).

[ Minor cleanup - removed an ML_NOTICE comment. --Mark ]

Signed-off-by: Joel Becker &lt;joel.becker@oracle.com&gt;
Signed-off-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Make ocfs2_extent_tree the first-class representation of a tree.</title>
<updated>2008-10-13T23:57:05Z</updated>
<author>
<name>Joel Becker</name>
</author>
<published>2008-08-21T02:36:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f99b9b7ccf6a691f653cec45f36bfdd1e94769c7'/>
<id>urn:sha1:f99b9b7ccf6a691f653cec45f36bfdd1e94769c7</id>
<content type='text'>
We now have three different kinds of extent trees in ocfs2: inode data
(dinode), extended attributes (xattr_tree), and extended attribute
values (xattr_value).  There is a nice abstraction for them,
ocfs2_extent_tree, but it is hidden in alloc.c.  All the calling
functions have to pick amongst a varied API and pass in type bits and
often extraneous pointers.

A better way is to make ocfs2_extent_tree a first-class object.
Everyone converts their object to an ocfs2_extent_tree() via the
ocfs2_get_*_extent_tree() calls, then uses the ocfs2_extent_tree for all
tree calls to alloc.c.

This simplifies a lot of callers, making for readability.  It also
provides an easy way to add additional extent tree types, as they only
need to be defined in alloc.c with a ocfs2_get_&lt;new&gt;_extent_tree()
function.

Signed-off-by: Joel Becker &lt;joel.becker@oracle.com&gt;
Signed-off-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Add extended attribute support</title>
<updated>2008-10-13T23:57:02Z</updated>
<author>
<name>Tiger Yang</name>
</author>
<published>2008-08-18T09:11:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cf1d6c763fbcb115263114302485ad17e7933d87'/>
<id>urn:sha1:cf1d6c763fbcb115263114302485ad17e7933d87</id>
<content type='text'>
This patch implements storing extended attributes both in inode or a single
external block. We only store EA's in-inode when blocksize &gt; 512 or that
inode block has free space for it. When an EA's value is larger than 80
bytes, we will store the value via b-tree outside inode or block.

Signed-off-by: Tiger Yang &lt;tiger.yang@oracle.com&gt;
Signed-off-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Add extent tree operation for xattr value btrees</title>
<updated>2008-10-13T23:57:01Z</updated>
<author>
<name>Tao Ma</name>
</author>
<published>2008-08-18T09:38:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f56654c435c06f2b2bd5751889b1a08a3add7d6c'/>
<id>urn:sha1:f56654c435c06f2b2bd5751889b1a08a3add7d6c</id>
<content type='text'>
Add some thin wrappers around ocfs2_insert_extent() for each of the 3
different btree types, ocfs2_inode_insert_extent(),
ocfs2_xattr_value_insert_extent() and ocfs2_xattr_tree_insert_extent(). The
last is for the xattr index btree, which will be used in a followup patch.

All the old callers in file.c etc will call ocfs2_dinode_insert_extent(),
while the other two handle the xattr issue. And the init of extent tree are
handled by these functions.

When storing xattr value which is too large, we will allocate some clusters
for it and here ocfs2_extent_list and ocfs2_extent_rec will also be used. In
order to re-use the b-tree operation code, a new parameter named "private"
is added into ocfs2_extent_tree and it is used to indicate the root of
ocfs2_exent_list. The reason is that we can't deduce the root from the
buffer_head now. It may be in an inode, an ocfs2_xattr_block or even worse,
in any place in an ocfs2_xattr_bucket.

Signed-off-by: Tao Ma &lt;tao.ma@oracle.com&gt;
Signed-off-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Abstract ocfs2_extent_tree in b-tree operations.</title>
<updated>2008-10-13T20:57:58Z</updated>
<author>
<name>Tao Ma</name>
</author>
<published>2008-08-18T09:38:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e7d4cb6bc19658646357eeff134645cd9bc3479f'/>
<id>urn:sha1:e7d4cb6bc19658646357eeff134645cd9bc3479f</id>
<content type='text'>
In the old extent tree operation, we take the hypothesis that we
are using the ocfs2_extent_list in ocfs2_dinode as the tree root.
As xattr will also use ocfs2_extent_list to store large value
for a xattr entry, we refactor the tree operation so that xattr
can use it directly.

The refactoring includes 4 steps:
1. Abstract set/get of last_eb_blk and update_clusters since they may
   be stored in different location for dinode and xattr.
2. Add a new structure named ocfs2_extent_tree to indicate the
   extent tree the operation will work on.
3. Remove all the use of fe_bh and di, use root_bh and root_el in
   extent tree instead. So now all the fe_bh is replaced with
   et-&gt;root_bh, el with root_el accordingly.
4. Make ocfs2_lock_allocators generic. Now it is limited to be only used
   in file extend allocation. But the whole function is useful when we want
   to store large EAs.

Note: This patch doesn't touch ocfs2_commit_truncate() since it is not used
for anything other than truncate inode data btrees.

Signed-off-by: Tao Ma &lt;tao.ma@oracle.com&gt;
Signed-off-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Use ocfs2_extent_list instead of ocfs2_dinode.</title>
<updated>2008-10-13T20:57:58Z</updated>
<author>
<name>Tao Ma</name>
</author>
<published>2008-08-18T09:38:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=811f933df1e55615fd0bb4818f31e3868a8e6e23'/>
<id>urn:sha1:811f933df1e55615fd0bb4818f31e3868a8e6e23</id>
<content type='text'>
ocfs2_extend_meta_needed(), ocfs2_calc_extend_credits() and
ocfs2_reserve_new_metadata() are all useful for extent tree operations. But
they are all limited to an inode btree because they use a struct
ocfs2_dinode parameter. Change their parameter to struct ocfs2_extent_list
(the part of an ocfs2_dinode they actually use) so that the xattr btree code
can use these functions.

Signed-off-by: Tao Ma &lt;tao.ma@oracle.com&gt;
Signed-off-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
</content>
</entry>
</feed>
