<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/fscache/netfs.c, branch linux-3.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-10-26T15:15:24Z</updated>
<entry>
<title>FS-Cache: Don't override netfs's primary_index if registering failed</title>
<updated>2016-10-26T15:15:24Z</updated>
<author>
<name>Kinglong Mee</name>
</author>
<published>2015-11-04T15:20:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=63698e052d6b5c03152644d7d7c80f2df00100dd'/>
<id>urn:sha1:63698e052d6b5c03152644d7d7c80f2df00100dd</id>
<content type='text'>
commit b130ed5998e62879a66bad08931a2b5e832da95c upstream.

Only override netfs-&gt;primary_index when registering success.

Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
[lizf: Backported to 3.4: there are no n_active and flags in primary_index]
Signed-off-by: Zefan Li &lt;lizefan@huawei.com&gt;
</content>
</entry>
<entry>
<title>FS-Cache: Increase reference of parent after registering, netfs success</title>
<updated>2016-10-26T15:15:24Z</updated>
<author>
<name>Kinglong Mee</name>
</author>
<published>2015-11-04T15:20:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6100bd0a32642e6479c14a26da9e003da8641c0b'/>
<id>urn:sha1:6100bd0a32642e6479c14a26da9e003da8641c0b</id>
<content type='text'>
commit 86108c2e34a26e4bec3c6ddb23390bf8cedcf391 upstream.

If netfs exist, fscache should not increase the reference of parent's
usage and n_children, otherwise, never be decreased.

v2: thanks David's suggest,
 move increasing reference of parent if success
 use kmem_cache_free() freeing primary_index directly

v3: don't move "netfs-&gt;primary_index-&gt;parent = &amp;fscache_fsdef_index;"

Signed-off-by: Kinglong Mee &lt;kinglongmee@gmail.com&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Zefan Li &lt;lizefan@huawei.com&gt;
</content>
</entry>
<entry>
<title>FS-Cache: Add netfs registration</title>
<updated>2009-04-03T15:42:38Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2009-04-03T15:42:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=726dd7ff10c217dd74329c94643dc8ebea27334b'/>
<id>urn:sha1:726dd7ff10c217dd74329c94643dc8ebea27334b</id>
<content type='text'>
Add functions to register and unregister a network filesystem or other client
of the FS-Cache service.  This allocates and releases the cookie representing
the top-level index for a netfs, and makes it available to the netfs.

If the FS-Cache facility is disabled, then the calls are optimised away at
compile time.

Note that whilst this patch may appear to work with FS-Cache enabled and a
netfs attempting to use it, it will leak the cookie it allocates for the netfs
as fscache_relinquish_cookie() is implemented in a later patch.  This will
cause the slab code to emit a warning when the module is removed.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Acked-by: Steve Dickson &lt;steved@redhat.com&gt;
Acked-by: Trond Myklebust &lt;Trond.Myklebust@netapp.com&gt;
Acked-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Tested-by: Daire Byrne &lt;Daire.Byrne@framestore.com&gt;
</content>
</entry>
</feed>
