<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/nilfs2/segment.h, branch linux-2.6.34.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.34.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.34.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-03-14T01:29:51Z</updated>
<entry>
<title>nilfs2: remove spaces before tabs</title>
<updated>2010-03-14T01:29:51Z</updated>
<author>
<name>Ryusuke Konishi</name>
</author>
<published>2010-03-13T18:55:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=55480a06e9ee8d05d0e580bf46611df489653c76'/>
<id>urn:sha1:55480a06e9ee8d05d0e580bf46611df489653c76</id>
<content type='text'>
This kills the following checkpatch warnings:

 WARNING: please, no space before tabs
 #74: FILE: segment.h:74:
 +^Iunsigned ^I^Iflags;$

 WARNING: please, no space before tabs
 #35: FILE: segbuf.c:35:
 +^Iint ^I^I^Istart, end; /* The region to be submitted */$

Signed-off-by: Ryusuke Konishi &lt;konishi.ryusuke@lab.ntt.co.jp&gt;
</content>
</entry>
<entry>
<title>nilfs2: fix various typos in comments</title>
<updated>2010-03-14T01:29:51Z</updated>
<author>
<name>Ryusuke Konishi</name>
</author>
<published>2010-03-13T18:32:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7a65004bbaa6a21a0438aac9c64814e46084dc3f'/>
<id>urn:sha1:7a65004bbaa6a21a0438aac9c64814e46084dc3f</id>
<content type='text'>
This fixes various typos I found in comments of nilfs2.

Signed-off-by: Ryusuke Konishi &lt;konishi.ryusuke@lab.ntt.co.jp&gt;
</content>
</entry>
<entry>
<title>nilfs2: get rid of nilfs_segctor_req struct</title>
<updated>2010-02-13T03:26:03Z</updated>
<author>
<name>Ryusuke Konishi</name>
</author>
<published>2010-01-26T06:20:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dcd76186955e2b595c378dbe5b9bb6c8c5374b10'/>
<id>urn:sha1:dcd76186955e2b595c378dbe5b9bb6c8c5374b10</id>
<content type='text'>
This will clean up nilfs_segctor_req struct and the obscure request
argument passed among private methods of segment constructor.

Signed-off-by: Ryusuke Konishi &lt;konishi.ryusuke@lab.ntt.co.jp&gt;
</content>
</entry>
<entry>
<title>nilfs2: separate wait function from nilfs_segctor_write</title>
<updated>2009-11-30T12:17:52Z</updated>
<author>
<name>Ryusuke Konishi</name>
</author>
<published>2009-11-29T14:03:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a694291a6211537189c6080f77f63cdabfc9b63e'/>
<id>urn:sha1:a694291a6211537189c6080f77f63cdabfc9b63e</id>
<content type='text'>
This separates wait function for submitted logs from the write
function nilfs_segctor_write().  A new list of segment buffers
"sc_write_logs" is added to hold logs under writing, and double
buffering is partially applied to hide io latency.

At this point, the double buffering is disabled for blocksize &lt;
pagesize because page dirty flag is turned off during write and dirty
buffers are not properly collected for pages crossing over segments.

To receive full benefit of the double buffering, further refinement is
needed to move the io wait outside the lock section of log writer.

Signed-off-by: Ryusuke Konishi &lt;konishi.ryusuke@lab.ntt.co.jp&gt;
</content>
</entry>
<entry>
<title>nilfs2: remove header file for segment list operations</title>
<updated>2009-06-10T14:41:09Z</updated>
<author>
<name>Ryusuke Konishi</name>
</author>
<published>2009-05-17T10:07:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=654137dd46bc7e9f088a4a551a2b77a8541dfdb8'/>
<id>urn:sha1:654137dd46bc7e9f088a4a551a2b77a8541dfdb8</id>
<content type='text'>
This will eliminate obsolete list operations of nilfs_segment_entry
structure which has been used to handle mutiple segment numbers.

The patch ("nilfs2: remove list of freeing segments") removed use of
the structure from the segment constructor code, and this patch
simplifies the remaining code by integrating it into recovery.c.

Signed-off-by: Ryusuke Konishi &lt;konishi.ryusuke@lab.ntt.co.jp&gt;
</content>
</entry>
<entry>
<title>nilfs2: eliminate removal list of segments</title>
<updated>2009-06-10T14:41:09Z</updated>
<author>
<name>Ryusuke Konishi</name>
</author>
<published>2009-05-16T14:44:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=071cb4b81987a28c7ac2702003cff3e61684a630'/>
<id>urn:sha1:071cb4b81987a28c7ac2702003cff3e61684a630</id>
<content type='text'>
This will clean up the removal list of segments and the related
functions from segment.c and ioctl.c, which have hurt code
readability.

This elimination is applied by using nilfs_sufile_updatev() previously
introduced in the patch ("nilfs2: add sufile function that can modify
multiple segment usages").

Signed-off-by: Ryusuke Konishi &lt;konishi.ryusuke@lab.ntt.co.jp&gt;
</content>
</entry>
<entry>
<title>nilfs2: fix lock order reversal in nilfs_clean_segments ioctl</title>
<updated>2009-05-11T05:54:41Z</updated>
<author>
<name>Ryusuke Konishi</name>
</author>
<published>2009-05-10T13:41:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4f6b828837b4e3836f2c9ac2f0eab9773b6c1327'/>
<id>urn:sha1:4f6b828837b4e3836f2c9ac2f0eab9773b6c1327</id>
<content type='text'>
This is a companion patch to ("nilfs2: fix possible circular locking
for get information ioctls").

This corrects lock order reversal between mm-&gt;mmap_sem and
nilfs-&gt;ns_segctor_sem in nilfs_clean_segments() which was detected by
lockdep check:

 =======================================================
 [ INFO: possible circular locking dependency detected ]
 2.6.30-rc3-nilfs-00003-g360bdc1 #7
 -------------------------------------------------------
 mmap/5294 is trying to acquire lock:
  (&amp;nilfs-&gt;ns_segctor_sem){++++.+}, at: [&lt;d0d0e846&gt;] nilfs_transaction_begin+0xb6/0x10c [nilfs2]

 but task is already holding lock:
  (&amp;mm-&gt;mmap_sem){++++++}, at: [&lt;c043700a&gt;] do_page_fault+0x1d8/0x30a

 which lock already depends on the new lock.

 the existing dependency chain (in reverse order) is:

 -&gt; #1 (&amp;mm-&gt;mmap_sem){++++++}:
        [&lt;c01470a5&gt;] __lock_acquire+0x1066/0x13b0
        [&lt;c01474a9&gt;] lock_acquire+0xba/0xdd
        [&lt;c01836bc&gt;] might_fault+0x68/0x88
        [&lt;c023c61d&gt;] copy_from_user+0x2a/0x111
        [&lt;d0d120d0&gt;] nilfs_ioctl_prepare_clean_segments+0x1d/0xf1 [nilfs2]
        [&lt;d0d0e2aa&gt;] nilfs_clean_segments+0x6d/0x1b9 [nilfs2]
        [&lt;d0d11f68&gt;] nilfs_ioctl+0x2ad/0x318 [nilfs2]
        [&lt;c01a3be7&gt;] vfs_ioctl+0x22/0x69
        [&lt;c01a408e&gt;] do_vfs_ioctl+0x460/0x499
        [&lt;c01a4107&gt;] sys_ioctl+0x40/0x5a
        [&lt;c01031a4&gt;] sysenter_do_call+0x12/0x38
        [&lt;ffffffff&gt;] 0xffffffff

 -&gt; #0 (&amp;nilfs-&gt;ns_segctor_sem){++++.+}:
        [&lt;c0146e0b&gt;] __lock_acquire+0xdcc/0x13b0
        [&lt;c01474a9&gt;] lock_acquire+0xba/0xdd
        [&lt;c0433f1d&gt;] down_read+0x2a/0x3e
        [&lt;d0d0e846&gt;] nilfs_transaction_begin+0xb6/0x10c [nilfs2]
        [&lt;d0cfe0e5&gt;] nilfs_page_mkwrite+0xe7/0x154 [nilfs2]
        [&lt;c0183b0b&gt;] __do_fault+0x165/0x376
        [&lt;c01855cd&gt;] handle_mm_fault+0x287/0x5d1
        [&lt;c043712d&gt;] do_page_fault+0x2fb/0x30a
        [&lt;c0435462&gt;] error_code+0x72/0x78
        [&lt;ffffffff&gt;] 0xffffffff

where nilfs_clean_segments() holds:

  nilfs-&gt;ns_segctor_sem -&gt; copy_from_user()
                             --&gt; page fault -&gt; mm-&gt;mmap_sem

And, page fault path may hold:

  page fault -&gt; mm-&gt;mmap_sem
         --&gt; nilfs_page_mkwrite() -&gt; nilfs-&gt;ns_segctor_sem

Even though nilfs_clean_segments() does not perform write access on
given user pages, it may cause deadlock because nilfs-&gt;ns_segctor_sem
is shared per device and mm-&gt;mmap_sem can be shared with other tasks.

To avoid this problem, this patch moves all calls of copy_from_user()
outside the nilfs-&gt;ns_segctor_sem lock in the ioctl.

Signed-off-by: Ryusuke Konishi &lt;konishi.ryusuke@lab.ntt.co.jp&gt;
</content>
</entry>
<entry>
<title>nilfs2: introduce secondary super block</title>
<updated>2009-04-07T15:31:20Z</updated>
<author>
<name>Ryusuke Konishi</name>
</author>
<published>2009-04-07T02:01:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e339ad31f59925b48a92ee3947692fdf9758b8c7'/>
<id>urn:sha1:e339ad31f59925b48a92ee3947692fdf9758b8c7</id>
<content type='text'>
The former versions didn't have extra super blocks.  This improves the
weak point by introducing another super block at unused region in tail of
the partition.

This doesn't break disk format compatibility; older versions just ingore
the secondary super block, and new versions just recover it if it doesn't
exist.  The partition created by an old mkfs may not have unused region,
but in that case, the secondary super block will not be added.

This doesn't make more redundant copies of the super block; it is a future
work.

Signed-off-by: Ryusuke Konishi &lt;konishi.ryusuke@lab.ntt.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>nilfs2: simplify handling of active state of segments</title>
<updated>2009-04-07T15:31:20Z</updated>
<author>
<name>Ryusuke Konishi</name>
</author>
<published>2009-04-07T02:01:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cece552074c591970353ad48308d65f110aeaf28'/>
<id>urn:sha1:cece552074c591970353ad48308d65f110aeaf28</id>
<content type='text'>
will reduce some lines of segment constructor.  Previously, the state was
complexly controlled through a list of segments in order to keep
consistency in meta data of usage state of segments.  Instead, this
presents ``calculated'' active flags to userland cleaner program and stop
maintaining its real flag on disk.

Only by this fake flag, the cleaner cannot exactly know if each segment is
reclaimable or not.  However, the recent extension of nilfs_sustat ioctl
struct (nilfs2-extend-nilfs_sustat-ioctl-struct.patch) can prevent the
cleaner from reclaiming in-use segment wrongly.

So, now I can apply this for simplification.

Signed-off-by: Ryusuke Konishi &lt;konishi.ryusuke@lab.ntt.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>nilfs2: mark minor flag for checkpoint created by internal operation</title>
<updated>2009-04-07T15:31:19Z</updated>
<author>
<name>Ryusuke Konishi</name>
</author>
<published>2009-04-07T02:01:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c96fa464a567a2a8796009af0e79bc68af73f485'/>
<id>urn:sha1:c96fa464a567a2a8796009af0e79bc68af73f485</id>
<content type='text'>
Nilfs creates checkpoints even for garbage collection or metadata updates
such as checkpoint mode change.  So, user often sees checkpoints created
only by such internal operations.

This is inconvenient in some situations.  For example, application that
monitors checkpoints and changes them to snapshots, will fall into an
infinite loop because it cannot distinguish internally created
checkpoints.

This patch solves this sort of problem by adding a flag to checkpoint for
identification.

Signed-off-by: Ryusuke Konishi &lt;konishi.ryusuke@lab.ntt.co.jp&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
