<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/ext2/balloc.c, branch linux-6.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-11-28T14:01:48Z</updated>
<entry>
<title>fs/ext2: Fix code indentation</title>
<updated>2022-11-28T14:01:48Z</updated>
<author>
<name>Rong Tao</name>
</author>
<published>2022-11-28T12:05:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b41b98e12a954c306e8eb9527ada0a70db339683'/>
<id>urn:sha1:b41b98e12a954c306e8eb9527ada0a70db339683</id>
<content type='text'>
ts=4 can cause misunderstanding in code reading. It is better to replace
8 spaces with one tab.

Signed-off-by: Rong Tao &lt;rongtao@cestc.cn&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>ext2: replace bh_submit_read() helper with bh_read()</title>
<updated>2022-09-12T03:26:08Z</updated>
<author>
<name>Zhang Yi</name>
</author>
<published>2022-09-01T13:35:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=28cf75591008eef5e1649de31c4ddee5bf20081d'/>
<id>urn:sha1:28cf75591008eef5e1649de31c4ddee5bf20081d</id>
<content type='text'>
bh_submit_read() and the uptodate check logic in bh_uptodate_or_lock()
has been integrated in bh_read() helper, so switch to use it directly.

Link: https://lkml.kernel.org/r/20220901133505.2510834-14-yi.zhang@huawei.com
Signed-off-by: Zhang Yi &lt;yi.zhang@huawei.com&gt;
Reviewed-by: Jan Kara &lt;jack@suse.cz&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>ext2: fix sleeping in atomic bugs on error</title>
<updated>2021-09-22T11:05:23Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2021-09-21T20:32:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=372d1f3e1bfede719864d0d1fbf3146b1e638c88'/>
<id>urn:sha1:372d1f3e1bfede719864d0d1fbf3146b1e638c88</id>
<content type='text'>
The ext2_error() function syncs the filesystem so it sleeps.  The caller
is holding a spinlock so it's not allowed to sleep.

   ext2_statfs() &lt;- disables preempt
   -&gt; ext2_count_free_blocks()
      -&gt; ext2_get_group_desc()

Fix this by using WARN() to print an error message and a stack trace
instead of using ext2_error().

Link: https://lore.kernel.org/r/20210921203233.GA16529@kili
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>ext2: Fix some kernel-doc warnings in balloc.c</title>
<updated>2020-09-14T08:34:56Z</updated>
<author>
<name>Wang Hai</name>
</author>
<published>2020-09-11T11:40:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c53ec7bcc780fde4916e7a563d68b90b20b0b6bc'/>
<id>urn:sha1:c53ec7bcc780fde4916e7a563d68b90b20b0b6bc</id>
<content type='text'>
Fixes the following W=1 kernel build warning(s):

fs/ext2/balloc.c:203: warning: Excess function parameter 'rb_root' description in '__rsv_window_dump'
fs/ext2/balloc.c:294: warning: Excess function parameter 'rb_root' description in 'search_reserve_window'
fs/ext2/balloc.c:878: warning: Excess function parameter 'rsv' description in 'alloc_new_reservation'

Link: https://lore.kernel.org/r/20200911114036.60616-1-wanghai38@huawei.com
Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Wang Hai &lt;wanghai38@huawei.com&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>ext2: fix improper function comment</title>
<updated>2019-11-07T11:35:27Z</updated>
<author>
<name>Chengguang Xu</name>
</author>
<published>2019-11-04T11:40:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=355b9aae868512747c0ff90231e8ae8ea0278a60'/>
<id>urn:sha1:355b9aae868512747c0ff90231e8ae8ea0278a60</id>
<content type='text'>
Just fix a improper function comment.

Link: https://lore.kernel.org/r/20191104114036.9893-5-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu &lt;cgxu519@mykernel.net&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>ext2: code cleanup for ext2_try_to_allocate()</title>
<updated>2019-11-07T11:35:27Z</updated>
<author>
<name>Chengguang Xu</name>
</author>
<published>2019-11-04T11:40:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=44dd6161338ef528b5b011184639beadcf038b14'/>
<id>urn:sha1:44dd6161338ef528b5b011184639beadcf038b14</id>
<content type='text'>
Code cleanup by removing duplicated code.

Link: https://lore.kernel.org/r/20191104114036.9893-4-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu &lt;cgxu519@mykernel.net&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>ext2: skip unnecessary operations in ext2_try_to_allocate()</title>
<updated>2019-11-07T11:35:27Z</updated>
<author>
<name>Chengguang Xu</name>
</author>
<published>2019-11-04T11:40:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ac3820f8222b6563580605f427ff03474a2f003a'/>
<id>urn:sha1:ac3820f8222b6563580605f427ff03474a2f003a</id>
<content type='text'>
Move 'repeat' tag to proper place so that we can
skip unnecessary operations in ext2_try_to_allocate().

Link: https://lore.kernel.org/r/20191104114036.9893-3-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu &lt;cgxu519@mykernel.net&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>ext2: Simplify initialization in ext2_try_to_allocate()</title>
<updated>2019-11-07T11:35:22Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2019-11-06T15:39:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cf4eb321b3ad63248069a8038df126fcf9ed9100'/>
<id>urn:sha1:cf4eb321b3ad63248069a8038df126fcf9ed9100</id>
<content type='text'>
Somewhat simplify the logic initializing search start and end in
ext2_try_to_allocate(). No functional change.

Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>ext2: code cleanup by calling ext2_group_last_block_no()</title>
<updated>2019-11-06T15:25:15Z</updated>
<author>
<name>Chengguang Xu</name>
</author>
<published>2019-11-04T11:40:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=90f3741c2b567d3f16c13d574dbd5d42ed076b2e'/>
<id>urn:sha1:90f3741c2b567d3f16c13d574dbd5d42ed076b2e</id>
<content type='text'>
Call common helper ext2_group_last_block_no() to
calculate group last block number.

Link: https://lore.kernel.org/r/20191104114036.9893-2-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu &lt;cgxu519@mykernel.net&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>ext2: don't set *count in the case of failure in ext2_try_to_allocate()</title>
<updated>2019-10-31T14:40:44Z</updated>
<author>
<name>Chengguang Xu</name>
</author>
<published>2019-10-26T09:07:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=30ef0e4085070312101be26c015f36277f02e12b'/>
<id>urn:sha1:30ef0e4085070312101be26c015f36277f02e12b</id>
<content type='text'>
Currently we set *count to num(value 0) in the failure
of block allocation in ext2_try_to_allocate(). Without
reservation, we reuse *count(value 0) to retry block
allocation and wrong *count will cause only allocating
maximum 1 block even though having sufficent free blocks
in that block group. Finally, it probably cause significant
fragmentation.

Link: https://lore.kernel.org/r/20191026090721.23794-1-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu &lt;cgxu519@mykernel.net&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
</feed>
