<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/ocfs2/suballoc.c, branch linux-2.6.37.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.37.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-10-15T20:03:09Z</updated>
<entry>
<title>Merge branch 'globalheartbeat-2' of git://oss.oracle.com/git/smushran/linux-2.6 into ocfs2-merge-window</title>
<updated>2010-10-15T20:03:09Z</updated>
<author>
<name>Joel Becker</name>
</author>
<published>2010-10-15T20:03:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc3718918f13ad72827d62d36ea0f5fb55090644'/>
<id>urn:sha1:fc3718918f13ad72827d62d36ea0f5fb55090644</id>
<content type='text'>
Conflicts:
	fs/ocfs2/ocfs2.h
</content>
</entry>
<entry>
<title>ocfs2: validate bg_free_bits_count after update</title>
<updated>2010-10-11T20:43:24Z</updated>
<author>
<name>Srinivas Eeda</name>
</author>
<published>2010-10-05T22:53:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9b5cd10e4c14a1a642076ace6a73be3d33c91fb6'/>
<id>urn:sha1:9b5cd10e4c14a1a642076ace6a73be3d33c91fb6</id>
<content type='text'>
This patch adds a safe check to ensure bg_free_bits_count doesn't exceed
bg_bits in a group descriptor. This is to avoid on disk corruption that was
seen recently.

debugfs: group &lt;52803072&gt;
       Group Chain: 179   Parent Inode: 11  Generation: 2959379682
       CRC32: 00000000   ECC: 0000
       ##   Block#            Total    Used     Free     Contig   Size
       0    52803072          32256    4294965350   34202    18207    4032
       ......

Signed-off-by: Srinivas Eeda &lt;srinivas.eeda@oracle.com&gt;
Signed-off-by: Joel Becker &lt;joel.becker@oracle.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Use cpu_to_le16 for e_leaf_clusters in ocfs2_bg_discontig_add_extent.</title>
<updated>2010-09-23T21:16:34Z</updated>
<author>
<name>Tao Ma</name>
</author>
<published>2010-09-13T07:13:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=47dea423799d98c53793237ab386a94976f305d5'/>
<id>urn:sha1:47dea423799d98c53793237ab386a94976f305d5</id>
<content type='text'>
e_leaf_clusters is a le16, so use cpu_to_le16 instead
of cpu_to_le32.

What's more, we change 'clusters' to unsigned int to
signify that the size of 'clusters' isn't important here.

Signed-off-by: Tao Ma &lt;tao.ma@oracle.com&gt;
Signed-off-by: Joel Becker &lt;joel.becker@oracle.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: allow return of new inode block location before allocation of the inode</title>
<updated>2010-09-08T06:25:59Z</updated>
<author>
<name>Mark Fasheh</name>
</author>
<published>2010-08-13T22:15:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e49e27674d1dd2717ad90b21ece8f83102153315'/>
<id>urn:sha1:e49e27674d1dd2717ad90b21ece8f83102153315</id>
<content type='text'>
This allows code which needs to know the eventual block number of an inode
but can't allocate it yet due to transaction or lock ordering. For example,
ocfs2_create_inode_in_orphan() currently gives a junk blkno for preparation
of the orphan dir because it can't yet know where the actual inode is placed
- that code is actually in ocfs2_mknod_locked. This is a problem when the
orphan dirs are indexed as the junk inode number will create an index entry
which goes unused (and fails the later removal from the orphan dir).  Now
with these interfaces, ocfs2_create_inode_in_orphan() can run the block
group search (and get back the inode block number) *before* any actual
allocation occurs.

Signed-off-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
Signed-off-by: Tao Ma &lt;tao.ma@oracle.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: use ocfs2_alloc_dinode_update_counts() instead of open coding</title>
<updated>2010-09-08T06:25:58Z</updated>
<author>
<name>Mark Fasheh</name>
</author>
<published>2010-08-13T22:15:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d51349829c378c06ba4aa7d4b16ca23739858608'/>
<id>urn:sha1:d51349829c378c06ba4aa7d4b16ca23739858608</id>
<content type='text'>
ocfs2_search_chain() makes the same updates as
ocfs2_alloc_dinode_update_counts to the alloc inode. Instead of open coding
the bitmap update, use our helper function.

Signed-off-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
Signed-off-by: Tao Ma &lt;tao.ma@oracle.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: properly set and use inode group alloc hint</title>
<updated>2010-09-08T06:25:56Z</updated>
<author>
<name>Mark Fasheh</name>
</author>
<published>2010-08-26T20:06:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b2b6ebf5f740e015b2155343958f067e594323ea'/>
<id>urn:sha1:b2b6ebf5f740e015b2155343958f067e594323ea</id>
<content type='text'>
We were setting ac-&gt;ac_last_group in ocfs2_claim_suballoc_bits from
res-&gt;sr_bg_blkno.  Unfortunately, res-&gt;sr_bg_blkno is going to be zero under
normal (non-fragmented) circumstances. The discontig block group patches
effectively turned off that feature. Fix this by correctly calculating what
the next group hint should be.

Acked-by: Tao Ma &lt;tao.ma@oracle.com&gt;
Signed-off-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
Tested-by: Goldwyn Rodrigues &lt;rgoldwyn@suse.de&gt;
Signed-off-by: Tao Ma &lt;tao.ma@oracle.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Use the right group in nfs sync check.</title>
<updated>2010-09-08T06:25:56Z</updated>
<author>
<name>Tao Ma</name>
</author>
<published>2010-09-02T05:10:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=889f004a8c83d515f275078687f859bc0d5ede9d'/>
<id>urn:sha1:889f004a8c83d515f275078687f859bc0d5ede9d</id>
<content type='text'>
We have added discontig block group now, and now an inode
can be allocated in an discontig block group. So get
it in ocfs2_get_suballoc_slot_bit.

The old ocfs2_test_suballoc_bit gets group block no
from the allocation inode which is wrong. Fix it by
passing the right group.

Acked-by: Mark Fasheh &lt;mfasheh@suse.com&gt;
Signed-off-by: Tao Ma &lt;tao.ma@oracle.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Remove the redundant cpu_to_le64.</title>
<updated>2010-07-12T20:56:18Z</updated>
<author>
<name>Tao Ma</name>
</author>
<published>2010-07-08T03:11:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0a463b74e7e6856b24e613de2b85237c6e11890b'/>
<id>urn:sha1:0a463b74e7e6856b24e613de2b85237c6e11890b</id>
<content type='text'>
In ocfs2_block_group_alloc, we set c_blkno by bg-&gt;bg_blkno.
But actually bg-&gt;bg_blkno is already changed to little endian
in ocfs2_block_group_fill. So remove the extra cpu_to_le64.

Reported-by: Marcos Matsunaga &lt;Marcos.Matsunaga@oracle.com&gt;
Signed-off-by: Tao Ma &lt;tao.ma@oracle.com&gt;
Signed-off-by: Joel Becker &lt;joel.becker@oracle.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Silence a gcc warning.</title>
<updated>2010-05-18T23:48:41Z</updated>
<author>
<name>Joel Becker</name>
</author>
<published>2010-05-18T23:47:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=18d3a98f3c1b0e27ce026afa4d1ef042f2903726'/>
<id>urn:sha1:18d3a98f3c1b0e27ce026afa4d1ef042f2903726</id>
<content type='text'>
ocfs2_block_group_claim_bits() is never called with min_bits=0, but we
shouldn't leave status undefined if it ever is.

Signed-off-by: Joel Becker &lt;joel.becker@oracle.com&gt;
</content>
</entry>
<entry>
<title>ocfs2: Set ac_last_group properly with discontig group.</title>
<updated>2010-04-27T00:30:36Z</updated>
<author>
<name>Tao Ma</name>
</author>
<published>2010-04-27T00:30:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=abf1b3cb5b20fbad27ca9c7497235eeb4dd3f4fd'/>
<id>urn:sha1:abf1b3cb5b20fbad27ca9c7497235eeb4dd3f4fd</id>
<content type='text'>
ac_last_group is used to record the last block group we
used during allocation. But the initialization process
only calls ocfs2_which_suballoc_group and fails to
use suballoc_loc properly. So let us do it.
Another function ocfs2_test_suballoc_bit also needs fix.

I have searched all the callers of ocfs2_which_suballoc_group,
and all the callers notices suballoc_loc now.

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