<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/f2fs/super.c, branch linux-3.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2013-01-22T01:48:38Z</updated>
<entry>
<title>f2fs: add __init to functions in init_f2fs_fs</title>
<updated>2013-01-22T01:48:38Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2013-01-16T15:08:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6e6093a8f144414d904575da5fdea40cf14fb63e'/>
<id>urn:sha1:6e6093a8f144414d904575da5fdea40cf14fb63e</id>
<content type='text'>
Add __init to functions in init_f2fs_fs for code consistency.

Signed-off-by: Namjae Jeon &lt;namjae.jeon@samsung.com&gt;
Signed-off-by: Amit Sahrawat &lt;a.sahrawat@samsung.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk.kim@samsung.com&gt;
</content>
</entry>
<entry>
<title>f2fs: fix the debugfs entry creation path</title>
<updated>2013-01-15T11:19:15Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2013-01-15T10:58:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4589d25d015c2d02bb5f7075d0cbf6dcf23a33c0'/>
<id>urn:sha1:4589d25d015c2d02bb5f7075d0cbf6dcf23a33c0</id>
<content type='text'>
As the "status" debugfs entry will be maintained for entire F2FS filesystem
irrespective of the number of partitions.
So, we can move the initialization to the init part of the f2fs and destroy will
be done from exit part. After making changes, for individual partition mount -
entry creation code will not be executed.

Signed-off-by: Jianpeng Ma &lt;majianpeng@gmail.com&gt;
Signed-off-by: Namjae Jeon &lt;namjae.jeon@samsung.com&gt;
Signed-off-by: Amit Sahrawat &lt;a.sahrawat@samsung.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk.kim@samsung.com&gt;
</content>
</entry>
<entry>
<title>f2fs: remove redundant call to set_blocksize in f2fs_fill_super</title>
<updated>2013-01-14T00:41:30Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2013-01-12T05:41:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ff9234ad4e974768455071c91bd76402e4af8a28'/>
<id>urn:sha1:ff9234ad4e974768455071c91bd76402e4af8a28</id>
<content type='text'>
Since, f2fs supports only 4KB blocksize, which is set at the beginning in
f2fs_fill_super. So, we do not need to again check this blocksize setting
in such case.

Signed-off-by: Namjae Jeon &lt;namjae.jeon@samsung.com&gt;
Signed-off-by: Amit Sahrawat &lt;a.sahrawat@samsung.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk.kim@samsung.com&gt;
</content>
</entry>
<entry>
<title>f2fs: add f2fs_balance_fs in several interfaces</title>
<updated>2013-01-11T06:09:17Z</updated>
<author>
<name>Jaegeuk Kim</name>
</author>
<published>2013-01-11T04:10:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7d82db83165dbac8c3f6d47b73c84f38e3996e30'/>
<id>urn:sha1:7d82db83165dbac8c3f6d47b73c84f38e3996e30</id>
<content type='text'>
The f2fs_balance_fs() is to check the number of free sections and decide whether
it needs to conduct cleaning or not. If there are not enough free sections, the
cleaning job should be started.

In order to control an amount of free sections even under high utilization, f2fs
should call f2fs_balance_fs at all the VFS interfaces that are able to produce
dirty pages.
This patch adds the function calls in the missing interfaces as follows.

1. f2fs_setxattr()
The f2fs_setxattr() produces dirty node pages so that we should call
f2fs_balance_fs() either likewise doing in other VFS interfaces such as
f2fs_lookup(), f2fs_mkdir(), and so on.

2. f2fs_sync_file()
We should guarantee serving free sections for syncing metadata during fsync.
Previously, there is no space check before triggering checkpoint and
sync_node_pages.
Therefore, if a bunch of fsync calls are triggered under 100% of FS utilization,
f2fs is able to be faced with no free sections, resulting in BUG_ON().

3. f2fs_sync_fs()
Before calling write_checkpoint(), we should guarantee that there are minimum
free sections.

4. f2fs_write_inode()
f2fs_write_inode() is also able to produce dirty node pages.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk.kim@samsung.com&gt;
</content>
</entry>
<entry>
<title>f2fs: introduce f2fs_msg to ease adding information prints</title>
<updated>2013-01-04T00:42:59Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2012-12-30T05:52:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a07ef784356cf9157bd9bed5254cbb9a82d33722'/>
<id>urn:sha1:a07ef784356cf9157bd9bed5254cbb9a82d33722</id>
<content type='text'>
Introduced f2fs_msg function to differentiate f2fs specific messages in
the log. And, added few informative prints in the mount path, to convey
proper error in case of mount failure.

Signed-off-by: Namjae Jeon &lt;namjae.jeon@samsung.com&gt;
Signed-off-by: Amit Sahrawat &lt;a.sahrawat@samsung.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk.kim@samsung.com&gt;
</content>
</entry>
<entry>
<title>f2fs: remove unneeded variable from f2fs_sync_fs</title>
<updated>2012-12-28T02:27:45Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2012-12-22T03:10:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=64c576fe51bc6b19e99340d2d0e1bda89f66db25'/>
<id>urn:sha1:64c576fe51bc6b19e99340d2d0e1bda89f66db25</id>
<content type='text'>
We can directly return '0' from the function, instead of introducing a
'ret' variable.

Signed-off-by: Namjae Jeon &lt;namjae.jeon@samsung.com&gt;
Signed-off-by: Amit Sahrawat &lt;a.sahrawat@samsung.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk.kim@samsung.com&gt;
</content>
</entry>
<entry>
<title>f2fs: return a default value for non-void function</title>
<updated>2012-12-28T02:24:09Z</updated>
<author>
<name>Jaegeuk Kim</name>
</author>
<published>2012-12-21T02:47:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=12a67146e35ba1d04ac4a5430eaaa8790158d60e'/>
<id>urn:sha1:12a67146e35ba1d04ac4a5430eaaa8790158d60e</id>
<content type='text'>
This patch resolves a build warning reported by kbuild test robot.

"
fs/f2fs/segment.c: In function '__get_segment_type':
fs/f2fs/segment.c:806:1: warning: control reaches end of non-void
function [-Wreturn-type]
"

Signed-off-by: Jaegeuk Kim &lt;jaegeuk.kim@samsung.com&gt;
</content>
</entry>
<entry>
<title>f2fs: should recover orphan and fsync data</title>
<updated>2012-12-26T01:39:52Z</updated>
<author>
<name>Jaegeuk Kim</name>
</author>
<published>2012-12-19T07:09:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=30f0c75858c46a0273ccb838de401b1f5fdebe6f'/>
<id>urn:sha1:30f0c75858c46a0273ccb838de401b1f5fdebe6f</id>
<content type='text'>
The recovery routine should do all the time regardless of normal umount action.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk.kim@samsung.com&gt;
</content>
</entry>
<entry>
<title>f2fs: fix wrong calculation on f_files in statfs</title>
<updated>2012-12-26T01:39:51Z</updated>
<author>
<name>Jaegeuk Kim</name>
</author>
<published>2012-12-12T10:45:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1362b5e347e27102ea0fa99c9932bca1ecde330f'/>
<id>urn:sha1:1362b5e347e27102ea0fa99c9932bca1ecde330f</id>
<content type='text'>
In f2fs_statfs(), f_files should be the total number of available inodes
instead of the currently allocated inodes.
So, this patch should resolve the reported bug below.

Note that, showing 10% usage is not a bug, since f2fs reveals whole volume size
as much as possible and shows the space overhead as *used*.
This policy is fair enough with respect to other file systems.

&lt;Reported Bug&gt;
(loop0 is backed by 1GiB file)

$ mkfs.f2fs /dev/loop0

F2FS-tools: Ver: 1.1.0 (2012-12-11)
Info: sector size = 512
Info: total sectors = 2097152 (in 512bytes)
Info: zone aligned segment0 blkaddr: 512
Info: format successful

$ mount /dev/loop0 mnt/

$ df mnt/
Filesystem     1K-blocks  Used Available Use% Mounted on
/dev/loop0       1046528 98312    929784  10%
/home/zeta/linux-devel/mtd-bench/mnt

$ df mnt/ -i
Filesystem     Inodes   IUsed  IFree IUse% Mounted on
/dev/loop0       1 -465918 465919     - /home/zeta/linux-devel/mtd-bench/mnt

Notice IUsed is negative. Also, 10% usage on a fresh f2fs seems too
much to be correct.

Reported-and-Tested-by: Ezequiel Garcia &lt;elezegarcia@gmail.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk.kim@samsung.com&gt;
</content>
</entry>
<entry>
<title>f2fs: remove unneeded memset from init_once</title>
<updated>2012-12-11T04:43:43Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2012-12-01T01:55:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=154a086529b50236782a2d4365a1d1c359adc7af'/>
<id>urn:sha1:154a086529b50236782a2d4365a1d1c359adc7af</id>
<content type='text'>
Since, __GFP_ZERO is used while f2fs inode allocation, so we do not
need memset for f2fs_inode_info, as this is already zeroed out.

Signed-off-by: Namjae Jeon &lt;namjae.jeon@samsung.com&gt;
Signed-off-by: Amit Sahrawat &lt;a.sahrawat@samsung.com&gt;
</content>
</entry>
</feed>
