<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/btrfs/dev-replace.h, branch linux-4.20.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.20.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.20.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-10-15T15:23:37Z</updated>
<entry>
<title>btrfs: open code btrfs_after_dev_replace_commit</title>
<updated>2018-10-15T15:23:37Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2018-08-24T15:41:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9f6cbcbb09d0f2a73ccb9998f6ac34606da9c938'/>
<id>urn:sha1:9f6cbcbb09d0f2a73ccb9998f6ac34606da9c938</id>
<content type='text'>
Too trivial, the purpose can be simply documented in a comment.

Reviewed-by: Omar Sandoval &lt;osandov@fb.com&gt;
Reviewed-by: Anand Jain &lt;anand.jain@oracle.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: open code btrfs_dev_replace_stats_inc</title>
<updated>2018-10-15T15:23:37Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2018-04-04T15:20:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e37abe9725bf45b292d5653cc02bbd791773c205'/>
<id>urn:sha1:e37abe9725bf45b292d5653cc02bbd791773c205</id>
<content type='text'>
The wrapper is too trivial, open coding does not make it less readable.

Reviewed-by: Omar Sandoval &lt;osandov@fb.com&gt;
Reviewed-by: Anand Jain &lt;anand.jain@oracle.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: open code btrfs_dev_replace_clear_lock_blocking</title>
<updated>2018-10-15T15:23:37Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2018-08-24T15:33:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7fb2eced105f67676eb86473d5b1ce6a96f6eab4'/>
<id>urn:sha1:7fb2eced105f67676eb86473d5b1ce6a96f6eab4</id>
<content type='text'>
There's a single caller and the function name does not say it's actually
taking the lock, so open coding makes it more explicit.

For now, btrfs_dev_replace_read_lock is used instead of read_lock so
it's paired with the unlocking wrapper in the same block.

Reviewed-by: Anand Jain &lt;anand.jain@oracle.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: replace GPL boilerplate by SPDX -- headers</title>
<updated>2018-04-12T14:29:46Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2018-04-03T17:16:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9888c3402c8567a977de37f61e9dd87792723064'/>
<id>urn:sha1:9888c3402c8567a977de37f61e9dd87792723064</id>
<content type='text'>
Remove GPL boilerplate text (long, short, one-line) and keep the rest,
ie. personal, company or original source copyright statements. Add the
SPDX header.

Unify the include protection macros to match the file names.

Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: split dev-replace locking helpers for read and write</title>
<updated>2018-03-31T00:01:07Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2018-03-24T01:11:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7e79cb86be28ed8073870c22f479b3b1293ecb85'/>
<id>urn:sha1:7e79cb86be28ed8073870c22f479b3b1293ecb85</id>
<content type='text'>
The current calls are unclear in what way btrfs_dev_replace_lock takes
the locks, so drop the argument, split the helpers and use similar
naming as for read and write locks.

Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: btrfs_dev_replace_cancel() can return int</title>
<updated>2018-03-26T13:09:30Z</updated>
<author>
<name>Anand Jain</name>
</author>
<published>2018-02-12T15:33:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=18e67c73dc6ea5bc5d9591abf92f8841290c4fcc'/>
<id>urn:sha1:18e67c73dc6ea5bc5d9591abf92f8841290c4fcc</id>
<content type='text'>
Current u64 return from btrfs_dev_replace_cancel() was probably done
to match the btrfs_ioctl_dev_replace_args::result. However as our
actual return value fits in int, and it further gets typecast to u64,
so just return int.

Signed-off-by: Anand Jain &lt;anand.jain@oracle.com&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: rename __btrfs_dev_replace_cancel()</title>
<updated>2018-03-26T13:09:30Z</updated>
<author>
<name>Anand Jain</name>
</author>
<published>2018-02-12T15:33:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=17d202b9738887c60b4903937b569df1e266eabb'/>
<id>urn:sha1:17d202b9738887c60b4903937b569df1e266eabb</id>
<content type='text'>
Remove __ which is for the special functions.

Signed-off-by: Anand Jain &lt;anand.jain@oracle.com&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: open code btrfs_dev_replace_cancel()</title>
<updated>2018-03-26T13:09:29Z</updated>
<author>
<name>Anand Jain</name>
</author>
<published>2018-02-12T15:33:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=97282031a64ca72aabf6482f9c32d1bcc931cde2'/>
<id>urn:sha1:97282031a64ca72aabf6482f9c32d1bcc931cde2</id>
<content type='text'>
btrfs_dev_replace_cancel() calls __btrfs_dev_replace_cancel() for the
actual cancel so just open code it.

Signed-off-by: Anand Jain &lt;anand.jain@oracle.com&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: constify device path passed to relevant helpers</title>
<updated>2017-02-28T13:26:07Z</updated>
<author>
<name>David Sterba</name>
</author>
<published>2017-02-14T16:55:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=da353f6b30bc02da29b54f5f024039698fbd23f4'/>
<id>urn:sha1:da353f6b30bc02da29b54f5f024039698fbd23f4</id>
<content type='text'>
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>btrfs: take an fs_info directly when the root is not used otherwise</title>
<updated>2016-12-06T15:06:59Z</updated>
<author>
<name>Jeff Mahoney</name>
</author>
<published>2016-06-22T22:54:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2ff7e61e0d30ff166a2ae94575526bffe11fd1a8'/>
<id>urn:sha1:2ff7e61e0d30ff166a2ae94575526bffe11fd1a8</id>
<content type='text'>
There are loads of functions in btrfs that accept a root parameter
but only use it to obtain an fs_info pointer.  Let's convert those to
just accept an fs_info pointer directly.

Signed-off-by: Jeff Mahoney &lt;jeffm@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
</feed>
