[PATCH v5 16/78] xarray: Add xa_get_entries, xa_get_tagged and xa_get_maybe_tag

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox These functions allow a range of xarray entries to be extracted into a compact normal array. Signed-off-by: Matthew Wilcox --- include/linux/xarray.h | 27 lib/xarray.c | 88

[PATCH v5 16/78] xarray: Add xa_get_entries, xa_get_tagged and xa_get_maybe_tag

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox These functions allow a range of xarray entries to be extracted into a compact normal array. Signed-off-by: Matthew Wilcox --- include/linux/xarray.h | 27 lib/xarray.c | 88 ++ 2 files changed,

Re: [PATCH net-next v5 1/4] phylib: Add device reset delay support

2017-12-15 Thread Rob Herring
On Mon, Dec 11, 2017 at 01:16:57PM +0100, Richard Leitner wrote: > From: Richard Leitner > > Some PHYs need a minimum time after the reset gpio was asserted and/or > deasserted. To ensure we meet these timing requirements add two new > optional devicetree parameters

[PATCH v5 36/78] mm: Convert __do_page_cache_readahead to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This one is trivial. Signed-off-by: Matthew Wilcox --- mm/readahead.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/readahead.c b/mm/readahead.c index f64b31b3a84a..66bcaffd47f0 100644 ---

[PATCH v5 36/78] mm: Convert __do_page_cache_readahead to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This one is trivial. Signed-off-by: Matthew Wilcox --- mm/readahead.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/readahead.c b/mm/readahead.c index f64b31b3a84a..66bcaffd47f0 100644 --- a/mm/readahead.c +++ b/mm/readahead.c @@ -174,9 +174,7

Re: [PATCH net-next v5 1/4] phylib: Add device reset delay support

2017-12-15 Thread Rob Herring
On Mon, Dec 11, 2017 at 01:16:57PM +0100, Richard Leitner wrote: > From: Richard Leitner > > Some PHYs need a minimum time after the reset gpio was asserted and/or > deasserted. To ensure we meet these timing requirements add two new > optional devicetree parameters for the phy: reset-delay-us

[PATCH v5 70/78] brd: Convert to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Convert brd_pages from a radix tree to an XArray. Simpler and smaller code; in particular another user of radix_tree_preload is eliminated. Signed-off-by: Matthew Wilcox --- drivers/block/brd.c | 93

[PATCH v5 70/78] brd: Convert to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Convert brd_pages from a radix tree to an XArray. Simpler and smaller code; in particular another user of radix_tree_preload is eliminated. Signed-off-by: Matthew Wilcox --- drivers/block/brd.c | 93 - 1 file changed,

[PATCH v5 13/78] xarray: Add xa_cmpxchg

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This works like doing cmpxchg() on an array entry. Code which wants the radix_tree_insert() semantic of not overwriting an existing entry can cmpxchg() with NULL and get the action it wants. Plus, instead of having an error returned, they get the

[PATCH v5 13/78] xarray: Add xa_cmpxchg

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This works like doing cmpxchg() on an array entry. Code which wants the radix_tree_insert() semantic of not overwriting an existing entry can cmpxchg() with NULL and get the action it wants. Plus, instead of having an error returned, they get the value currently stored in

[PATCH v5 01/78] xfs: Rename xa_ elements to ail_

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This is a simple rename, except that xa_ail becomes ail_head. Signed-off-by: Matthew Wilcox --- fs/xfs/xfs_buf_item.c| 10 ++-- fs/xfs/xfs_dquot.c | 4 +- fs/xfs/xfs_dquot_item.c | 11 ++--

[PATCH v5 01/78] xfs: Rename xa_ elements to ail_

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This is a simple rename, except that xa_ail becomes ail_head. Signed-off-by: Matthew Wilcox --- fs/xfs/xfs_buf_item.c| 10 ++-- fs/xfs/xfs_dquot.c | 4 +- fs/xfs/xfs_dquot_item.c | 11 ++-- fs/xfs/xfs_inode_item.c | 22 +++ fs/xfs/xfs_log.c |

[PATCH v5 07/78] xarray: Add definition of struct xarray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This is a direct replacement for struct radix_tree_root. Some of the struct members have changed name; convert those, and use a #define so that radix_tree users continue to work without change. Signed-off-by: Matthew Wilcox

[PATCH v5 07/78] xarray: Add definition of struct xarray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This is a direct replacement for struct radix_tree_root. Some of the struct members have changed name; convert those, and use a #define so that radix_tree users continue to work without change. Signed-off-by: Matthew Wilcox --- include/linux/radix-tree.h |

[PATCH v5 22/78] idr: Convert to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox The IDR distinguishes between unallocated entries (read as NULL) and entries where the user has chosen to store NULL. The radix tree was modified to consider NULL entries which had tag 0 _clear_ as being allocated, but it added a lot of complexity.

[PATCH v5 22/78] idr: Convert to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox The IDR distinguishes between unallocated entries (read as NULL) and entries where the user has chosen to store NULL. The radix tree was modified to consider NULL entries which had tag 0 _clear_ as being allocated, but it added a lot of complexity. Instead, the XArray has

[PATCH v5 76/78] md: Convert raid5-cache to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This is the first user of the radix tree I've converted which was storing numbers rather than pointers. I'm fairly pleased with how well it came out. There's less boiler-plate involved than there was with the radix tree, so that's a win. It does

[PATCH v5 76/78] md: Convert raid5-cache to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This is the first user of the radix tree I've converted which was storing numbers rather than pointers. I'm fairly pleased with how well it came out. There's less boiler-plate involved than there was with the radix tree, so that's a win. It does use the advanced API, and

[PATCH v5 24/78] page cache: Convert hole search to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox The page cache offers the ability to search for a miss in the previous or next N locations. Rather than teach the XArray about the page cache's definition of a miss, use xas_prev() and xas_next() to search the page array. This should be more

[PATCH v5 24/78] page cache: Convert hole search to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox The page cache offers the ability to search for a miss in the previous or next N locations. Rather than teach the XArray about the page cache's definition of a miss, use xas_prev() and xas_next() to search the page array. This should be more efficient as it does not have

Re: [PATCH v4 2/3] i2c: core: add device-managed version of i2c_new_dummy

2017-12-15 Thread Bartosz Golaszewski
2017-12-15 18:44 GMT+01:00 Heiner Kallweit : > i2c_new_dummy is typically called from the probe function of the > driver for the primary i2c client. It requires calls to > i2c_unregister_device in the error path of the probe function and > in the remove function. > This can

Re: [PATCH v4 2/3] i2c: core: add device-managed version of i2c_new_dummy

2017-12-15 Thread Bartosz Golaszewski
2017-12-15 18:44 GMT+01:00 Heiner Kallweit : > i2c_new_dummy is typically called from the probe function of the > driver for the primary i2c client. It requires calls to > i2c_unregister_device in the error path of the probe function and > in the remove function. > This can be simplified by

[PATCH v5 43/78] shmem: Convert shmem_confirm_swap to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox xa_load has its own RCU locking, so we can eliminate it here. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mm/shmem.c b/mm/shmem.c index

[PATCH v5 28/78] page cache: Convert page cache lookups to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Introduce page_cache_pin() to factor out the common logic between the various lookup routines: find_get_entry find_get_entries find_get_pages_range find_get_pages_contig find_get_pages_range_tag find_get_entries_tag filemap_map_pages By using the

[PATCH v5 43/78] shmem: Convert shmem_confirm_swap to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox xa_load has its own RCU locking, so we can eliminate it here. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mm/shmem.c b/mm/shmem.c index fad6c9e7402e..654f367aca90 100644 --- a/mm/shmem.c +++

[PATCH v5 28/78] page cache: Convert page cache lookups to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Introduce page_cache_pin() to factor out the common logic between the various lookup routines: find_get_entry find_get_entries find_get_pages_range find_get_pages_contig find_get_pages_range_tag find_get_entries_tag filemap_map_pages By using the xa_state to control the

[PATCH v5 05/78] xarray: Replace exceptional entries

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Introduce xarray value entries to replace the radix tree exceptional entry code. This is a slight change in encoding to allow the use of an extra bit (we can now store BITS_PER_LONG - 1 bits in a value entry). It is also a change in emphasis;

[PATCH v5 10/78] xarray: Add xa_load

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This first function in the XArray API brings with it a lot of support infrastructure. The advanced API is based around the xa_state which is a more capable version of the radix_tree_iter. As the test-suite demonstrates, it is possible to use the

[PATCH v5 05/78] xarray: Replace exceptional entries

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Introduce xarray value entries to replace the radix tree exceptional entry code. This is a slight change in encoding to allow the use of an extra bit (we can now store BITS_PER_LONG - 1 bits in a value entry). It is also a change in emphasis; exceptional entries are

[PATCH v5 10/78] xarray: Add xa_load

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This first function in the XArray API brings with it a lot of support infrastructure. The advanced API is based around the xa_state which is a more capable version of the radix_tree_iter. As the test-suite demonstrates, it is possible to use the xarray and radix tree APIs

[PATCH v5 38/78] mm: Convert huge_memory to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Quite a straightforward conversion. Signed-off-by: Matthew Wilcox --- mm/huge_memory.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index

[PATCH v5 38/78] mm: Convert huge_memory to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Quite a straightforward conversion. Signed-off-by: Matthew Wilcox --- mm/huge_memory.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 28909c475ee5..5a41b00d86bd 100644 ---

[PATCH v5 50/78] shmem: Convert shmem_partial_swap_usage to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Simpler code because the xarray takes care of things like the limit and dereferencing the slot. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff

[PATCH v5 50/78] shmem: Convert shmem_partial_swap_usage to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Simpler code because the xarray takes care of things like the limit and dereferencing the slot. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/mm/shmem.c b/mm/shmem.c index

[PATCH v5 46/78] shmem: Convert shmem_wait_for_pins to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox As with shmem_tag_pins(), hold the lock around the entire loop instead of acquiring & dropping it for each entry we're going to untag. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 59

[PATCH v5 46/78] shmem: Convert shmem_wait_for_pins to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox As with shmem_tag_pins(), hold the lock around the entire loop instead of acquiring & dropping it for each entry we're going to untag. Signed-off-by: Matthew Wilcox --- mm/shmem.c | 59 --- 1 file changed, 24

[PATCH v5 03/78] xarray: Add the xa_lock to the radix_tree_root

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This results in no change in structure size on 64-bit x86 as it fits in the padding between the gfp_t and the void *. Signed-off-by: Matthew Wilcox --- fs/f2fs/gc.c | 2 +- include/linux/idr.h|

[PATCH v5 03/78] xarray: Add the xa_lock to the radix_tree_root

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This results in no change in structure size on 64-bit x86 as it fits in the padding between the gfp_t and the void *. Signed-off-by: Matthew Wilcox --- fs/f2fs/gc.c | 2 +- include/linux/idr.h| 12 ++-- include/linux/radix-tree.h

[PATCH v5 15/78] xarray: Add xas_for_each_tag

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This iterator operates across each tagged entry in the specified range. We do not yet have a user for an xa_for_each_tag iterator, but it would be straight-forward to add one if needed. This commit also includes xas_find_tag() and xas_next_tag().

[PATCH v5 23/78] ida: Convert to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Use the xarray infrstructure like we used the radix tree infrastructure. This lets us get rid of idr_get_free() from the radix tree code. Signed-off-by: Matthew Wilcox --- include/linux/idr.h| 8 +-

[PATCH v5 15/78] xarray: Add xas_for_each_tag

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This iterator operates across each tagged entry in the specified range. We do not yet have a user for an xa_for_each_tag iterator, but it would be straight-forward to add one if needed. This commit also includes xas_find_tag() and xas_next_tag(). Signed-off-by: Matthew

[PATCH v5 23/78] ida: Convert to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Use the xarray infrstructure like we used the radix tree infrastructure. This lets us get rid of idr_get_free() from the radix tree code. Signed-off-by: Matthew Wilcox --- include/linux/idr.h| 8 +- include/linux/radix-tree.h | 4 - lib/idr.c

[PATCH v5 66/78] dax: Fix sparse warning

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox sparse doesn't know that follow_pte_pmd conditionally acquires the ptl, so add an annotation to let it know what's going on. Signed-off-by: Matthew Wilcox --- fs/dax.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v5 66/78] dax: Fix sparse warning

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox sparse doesn't know that follow_pte_pmd conditionally acquires the ptl, so add an annotation to let it know what's going on. Signed-off-by: Matthew Wilcox --- fs/dax.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/dax.c b/fs/dax.c index f591ab5be590..6ef727af30f0

[PATCH v5 04/78] page cache: Use xa_lock

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Remove the address_space ->tree_lock and use the xa_lock newly added to the radix_tree_root. Rename the address_space ->page_tree to ->pages, since we don't really care that it's a tree. Take the opportunity to rearrange the elements of

[PATCH v5 19/78] xarray: Add xas_create_range

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This hopefully temporary function is useful for users who have not yet been converted to multi-index entries. Signed-off-by: Matthew Wilcox --- include/linux/xarray.h | 2 ++ lib/xarray.c | 22

[PATCH v5 04/78] page cache: Use xa_lock

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Remove the address_space ->tree_lock and use the xa_lock newly added to the radix_tree_root. Rename the address_space ->page_tree to ->pages, since we don't really care that it's a tree. Take the opportunity to rearrange the elements of address_space to pack them better on

[PATCH v5 19/78] xarray: Add xas_create_range

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This hopefully temporary function is useful for users who have not yet been converted to multi-index entries. Signed-off-by: Matthew Wilcox --- include/linux/xarray.h | 2 ++ lib/xarray.c | 22 ++ 2 files changed, 24 insertions(+) diff

[PATCH v5 61/78] dax: Convert __dax_invalidate_mapping_entry to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Simple now that we already have an xa_state! Signed-off-by: Matthew Wilcox --- fs/dax.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index 2629ffa70575..d3894c15609a

[PATCH v5 61/78] dax: Convert __dax_invalidate_mapping_entry to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Simple now that we already have an xa_state! Signed-off-by: Matthew Wilcox --- fs/dax.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index 2629ffa70575..d3894c15609a 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -413,24

[PATCH v5 73/78] xfs: Convert xfs dquot to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This is a pretty straight-forward conversion. Signed-off-by: Matthew Wilcox --- fs/xfs/xfs_dquot.c | 38 +- fs/xfs/xfs_qm.c| 32 fs/xfs/xfs_qm.h|

[PATCH v5 73/78] xfs: Convert xfs dquot to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox This is a pretty straight-forward conversion. Signed-off-by: Matthew Wilcox --- fs/xfs/xfs_dquot.c | 38 +- fs/xfs/xfs_qm.c| 32 fs/xfs/xfs_qm.h| 18 +- 3 files changed, 46

[PATCH v5 71/78] xfs: Convert m_perag_tree to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Getting rid of the m_perag_lock lets us also get rid of the call to radix_tree_preload(). This is a relatively naive conversion; we could improve performance over the radix tree implementation by passing around xa_state pointers instead of indices,

Re: [PATCH v2 07/13] dt-bindings: power: reset: Document ocelot-reset binding

2017-12-15 Thread Alexandre Belloni
On 15/12/2017 at 14:23:32 -0600, Rob Herring wrote: > On Fri, Dec 08, 2017 at 04:46:12PM +0100, Alexandre Belloni wrote: > > Add binding documentation for the Microsemi Ocelot reset block. > > > > Cc: Rob Herring > > Cc: devicet...@vger.kernel.org > > Cc: Sebastian Reichel

[PATCH v5 71/78] xfs: Convert m_perag_tree to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Getting rid of the m_perag_lock lets us also get rid of the call to radix_tree_preload(). This is a relatively naive conversion; we could improve performance over the radix tree implementation by passing around xa_state pointers instead of indices, possibly at the expense

Re: [PATCH v2 07/13] dt-bindings: power: reset: Document ocelot-reset binding

2017-12-15 Thread Alexandre Belloni
On 15/12/2017 at 14:23:32 -0600, Rob Herring wrote: > On Fri, Dec 08, 2017 at 04:46:12PM +0100, Alexandre Belloni wrote: > > Add binding documentation for the Microsemi Ocelot reset block. > > > > Cc: Rob Herring > > Cc: devicet...@vger.kernel.org > > Cc: Sebastian Reichel > > Cc:

[PATCH v5 37/78] mm: Convert page migration to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Signed-off-by: Matthew Wilcox --- mm/migrate.c | 41 - 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 75d19904dd9a..7122fec9b075

[PATCH v5 37/78] mm: Convert page migration to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Signed-off-by: Matthew Wilcox --- mm/migrate.c | 41 - 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 75d19904dd9a..7122fec9b075 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@

[PATCH v5 52/78] btrfs: Convert page cache to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Signed-off-by: Matthew Wilcox --- fs/btrfs/compression.c | 4 +--- fs/btrfs/extent_io.c | 6 ++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index

[PATCH v5 52/78] btrfs: Convert page cache to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Signed-off-by: Matthew Wilcox --- fs/btrfs/compression.c | 4 +--- fs/btrfs/extent_io.c | 6 ++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index e687d06cd97c..4174b166e235 100644 ---

[PATCH v5 65/78] dax: Convert grab_mapping_entry to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Signed-off-by: Matthew Wilcox --- fs/dax.c | 98 +--- 1 file changed, 26 insertions(+), 72 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index

[PATCH v5 65/78] dax: Convert grab_mapping_entry to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Signed-off-by: Matthew Wilcox --- fs/dax.c | 98 +--- 1 file changed, 26 insertions(+), 72 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index a3e795ad2493..f591ab5be590 100644 --- a/fs/dax.c +++ b/fs/dax.c @@

[PATCH v5 21/78] xarray: Add ability to store errno values

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox While the radix tree offers no ability to store IS_ERR pointers, documenting that the XArray does not led to some concern. Here is a sanctioned way to store errnos in the XArray. I'm concerned that it will confuse people who can't tell the

[PATCH v5 72/78] xfs: Convert pag_ici_root to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Rename pag_ici_root to pag_ici_xa and use XArray APIs instead of radix tree APIs. Shorter code, typechecking on tag numbers, better error checking in xfs_reclaim_inode(), and eliminates a call to radix_tree_preload(). Signed-off-by: Matthew Wilcox

[PATCH v5 72/78] xfs: Convert pag_ici_root to XArray

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox Rename pag_ici_root to pag_ici_xa and use XArray APIs instead of radix tree APIs. Shorter code, typechecking on tag numbers, better error checking in xfs_reclaim_inode(), and eliminates a call to radix_tree_preload(). Signed-off-by: Matthew Wilcox ---

[PATCH v5 21/78] xarray: Add ability to store errno values

2017-12-15 Thread Matthew Wilcox
From: Matthew Wilcox While the radix tree offers no ability to store IS_ERR pointers, documenting that the XArray does not led to some concern. Here is a sanctioned way to store errnos in the XArray. I'm concerned that it will confuse people who can't tell the difference between xa_is_err()

Re: [PATCH v4 1/3] i2c: core: improve return value handling of i2c_new_device and i2c_new_dummy

2017-12-15 Thread Bartosz Golaszewski
2017-12-15 18:43 GMT+01:00 Heiner Kallweit : > Currently i2c_new_device and i2c_new_dummy return just NULL in error > case although they have more error details internally. Therefore move > the functionality into new functions returning detailed errors and > add wrappers for

Re: [PATCH v4 1/3] i2c: core: improve return value handling of i2c_new_device and i2c_new_dummy

2017-12-15 Thread Bartosz Golaszewski
2017-12-15 18:43 GMT+01:00 Heiner Kallweit : > Currently i2c_new_device and i2c_new_dummy return just NULL in error > case although they have more error details internally. Therefore move > the functionality into new functions returning detailed errors and > add wrappers for compatibilty with the

Re: [PATCH v2 1/5] dt-bindings: rtc: add bindings for i.MX53 SRTC

2017-12-15 Thread Rob Herring
On Mon, Dec 11, 2017 at 1:08 AM, Patrick Brünn wrote: >>From: Rob Herring [mailto:r...@kernel.org] >>Sent: Mittwoch, 6. Dezember 2017 22:55 >>On Tue, Dec 05, 2017 at 03:06:42PM +0100, linux-kernel-...@beckhoff.com >>wrote: >>> From: Patrick Bruenn

Re: [PATCH v2 1/5] dt-bindings: rtc: add bindings for i.MX53 SRTC

2017-12-15 Thread Rob Herring
On Mon, Dec 11, 2017 at 1:08 AM, Patrick Brünn wrote: >>From: Rob Herring [mailto:r...@kernel.org] >>Sent: Mittwoch, 6. Dezember 2017 22:55 >>On Tue, Dec 05, 2017 at 03:06:42PM +0100, linux-kernel-...@beckhoff.com >>wrote: >>> From: Patrick Bruenn >>> >>> +++

[GIT PULL] Please pull NFS client bugfixes for 4.15

2017-12-15 Thread Anna Schumaker
Hi Linus, The following changes since commit eb5b46faa693470681ec7c28cc2436edd1571198: SUNRPC: Handle ENETDOWN errors (2017-11-30 11:52:52 -0500) are available in the Git repository at: git://git.linux-nfs.org/projects/anna/linux-nfs.git tags/nfs-for-4.15-3 for you to fetch changes up to

[GIT PULL] Please pull NFS client bugfixes for 4.15

2017-12-15 Thread Anna Schumaker
Hi Linus, The following changes since commit eb5b46faa693470681ec7c28cc2436edd1571198: SUNRPC: Handle ENETDOWN errors (2017-11-30 11:52:52 -0500) are available in the Git repository at: git://git.linux-nfs.org/projects/anna/linux-nfs.git tags/nfs-for-4.15-3 for you to fetch changes up to

[PATCH] net: phy: xgene: disable clk on error paths

2017-12-15 Thread Alexey Khoroshilov
There are several error paths in xgene_mdio_probe(), where clk is left undisabled. The patch fixes them. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/net/phy/mdio-xgene.c | 21 +++-- 1 file

[PATCH] net: phy: xgene: disable clk on error paths

2017-12-15 Thread Alexey Khoroshilov
There are several error paths in xgene_mdio_probe(), where clk is left undisabled. The patch fixes them. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/net/phy/mdio-xgene.c | 21 +++-- 1 file changed, 15

[PATCH] Optimize final quote removal.

2017-12-15 Thread Michal Suchanek
This is additional patch that avoids the memmove when processing the quote on the end of the parameter. --- lib/cmdline.c | 9 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/cmdline.c b/lib/cmdline.c index c5335a79a177..b1d8a0dc60fc

[PATCH] Optimize final quote removal.

2017-12-15 Thread Michal Suchanek
This is additional patch that avoids the memmove when processing the quote on the end of the parameter. --- lib/cmdline.c | 9 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/cmdline.c b/lib/cmdline.c index c5335a79a177..b1d8a0dc60fc

Re: [PATCH 1/5] dt-bindings: pinctrl: Add st,stm32f769-pinctrl compatible to stm32-pinctrl

2017-12-15 Thread Rob Herring
On Mon, Dec 11, 2017 at 09:54:31AM +0100, Alexandre Torgue wrote: > Add new compatible for stm32f769 MCU. > > Signed-off-by: Alexandre Torgue Reviewed-by: Rob Herring

Re: [PATCH 1/5] dt-bindings: pinctrl: Add st,stm32f769-pinctrl compatible to stm32-pinctrl

2017-12-15 Thread Rob Herring
On Mon, Dec 11, 2017 at 09:54:31AM +0100, Alexandre Torgue wrote: > Add new compatible for stm32f769 MCU. > > Signed-off-by: Alexandre Torgue Reviewed-by: Rob Herring

Re: [patch v2 2/2] mm, oom: avoid reaping only for mm's with blockable invalidate callbacks

2017-12-15 Thread David Rientjes
On Fri, 15 Dec 2017, Michal Hocko wrote: > > This uses the new annotation to determine if an mm has mmu notifiers with > > blockable invalidate range callbacks to avoid oom reaping. Otherwise, the > > callbacks are used around unmap_page_range(). > > Do you have any example where this helped?

Re: [patch v2 2/2] mm, oom: avoid reaping only for mm's with blockable invalidate callbacks

2017-12-15 Thread David Rientjes
On Fri, 15 Dec 2017, Michal Hocko wrote: > > This uses the new annotation to determine if an mm has mmu notifiers with > > blockable invalidate range callbacks to avoid oom reaping. Otherwise, the > > callbacks are used around unmap_page_range(). > > Do you have any example where this helped?

Re: [PATCH 0/4] ARC: Set initial core pll output frequency via DTS

2017-12-15 Thread Vineet Gupta
On 12/09/2017 05:59 AM, Eugeniy Paltsev wrote: Set initial core pll output frequency on HSDK and AXS103 via "assigned-clock-rates" property in device tree. It will be applied at the core pll driver probing. Eugeniy Paltsev (4): ARC: [plat-hsdk]: Set initial core pll output frequency ARC:

Re: [PATCH 0/4] ARC: Set initial core pll output frequency via DTS

2017-12-15 Thread Vineet Gupta
On 12/09/2017 05:59 AM, Eugeniy Paltsev wrote: Set initial core pll output frequency on HSDK and AXS103 via "assigned-clock-rates" property in device tree. It will be applied at the core pll driver probing. Eugeniy Paltsev (4): ARC: [plat-hsdk]: Set initial core pll output frequency ARC:

Re: [PATCH v2] arm: kirkwood: dts: Use lower case for bindings notation

2017-12-15 Thread Andrew Lunn
On Fri, Dec 15, 2017 at 06:07:11PM +0100, Mathieu Malaterre wrote: > Improve the DTS files using lower case to fix the following dtc warnings: > > Warning (simple_bus_reg): Node /XXX@ simple-bus unit address format > error, expected "" > > Converted using the following command: > > find .

Re: [PATCH v2] arm: kirkwood: dts: Use lower case for bindings notation

2017-12-15 Thread Andrew Lunn
On Fri, Dec 15, 2017 at 06:07:11PM +0100, Mathieu Malaterre wrote: > Improve the DTS files using lower case to fix the following dtc warnings: > > Warning (simple_bus_reg): Node /XXX@ simple-bus unit address format > error, expected "" > > Converted using the following command: > > find .

Re: [PATCH 1/2] dt-bindings: Add Infineon TLV493D-A1B6

2017-12-15 Thread Rob Herring
On Sun, Dec 10, 2017 at 12:25:06AM +0100, Andreas Färber wrote: > The Infineon TLV493D-A1B6 is an I2C-based 3D Magnetic Sensor. > > Cc: Marius Tarcatu > Signed-off-by: Andreas Färber > --- > Documentation/devicetree/bindings/trivial-devices.txt |

Re: [PATCH 1/2] dt-bindings: Add Infineon TLV493D-A1B6

2017-12-15 Thread Rob Herring
On Sun, Dec 10, 2017 at 12:25:06AM +0100, Andreas Färber wrote: > The Infineon TLV493D-A1B6 is an I2C-based 3D Magnetic Sensor. > > Cc: Marius Tarcatu > Signed-off-by: Andreas Färber > --- > Documentation/devicetree/bindings/trivial-devices.txt | 1 + > 1 file changed, 1 insertion(+) I take

[PATCH] Fix parse_args cycle limit check.

2017-12-15 Thread Michal Suchanek
Actually args are supposed to be renamed to next so both and args hold the previous argument so both can be passed to the callback. This additionla patch should fix up the rename. --- kernel/params.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git

[PATCH] Fix parse_args cycle limit check.

2017-12-15 Thread Michal Suchanek
Actually args are supposed to be renamed to next so both and args hold the previous argument so both can be passed to the callback. This additionla patch should fix up the rename. --- kernel/params.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git

Re: [PATCH] usbip: vhci-hcd: return correct port ENABLE status

2017-12-15 Thread Shuah Khan
On 12/15/2017 01:44 AM, Zhang, Pei wrote: > Add maintainers > > * * > BRs, > Pei Zhang > Please resend the patch to include everybody get_maintainers.pl lists. thanks, -- Shuah

Re: [PATCH 4.14 00/52] 4.14.7-stable review

2017-12-15 Thread Greg Kroah-Hartman
On Fri, Dec 15, 2017 at 02:12:10PM -0700, Shuah Khan wrote: > On 12/15/2017 02:51 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.7 release. > > There are 52 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH] usbip: vhci-hcd: return correct port ENABLE status

2017-12-15 Thread Shuah Khan
On 12/15/2017 01:44 AM, Zhang, Pei wrote: > Add maintainers > > * * > BRs, > Pei Zhang > Please resend the patch to include everybody get_maintainers.pl lists. thanks, -- Shuah

Re: [PATCH 4.14 00/52] 4.14.7-stable review

2017-12-15 Thread Greg Kroah-Hartman
On Fri, Dec 15, 2017 at 02:12:10PM -0700, Shuah Khan wrote: > On 12/15/2017 02:51 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.7 release. > > There are 52 patches in this series, all will be posted as a response > > to this one. If anyone has any

[PATCH] init/main.c: simplify repair_env_string

2017-12-15 Thread Michal Suchanek
Quoting characters are now removed from the parameter so value always follows directly after the NUL terminating parameter name. Signed-off-by: Michal Suchanek --- init/main.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) Since the previous "[PATCH v9

[PATCH] init/main.c: simplify repair_env_string

2017-12-15 Thread Michal Suchanek
Quoting characters are now removed from the parameter so value always follows directly after the NUL terminating parameter name. Signed-off-by: Michal Suchanek --- init/main.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) Since the previous "[PATCH v9 3/8] lib/cmdline.c:

[PATCH] PCI/ASPM: Unexport internal ASPM interfaces

2017-12-15 Thread Bjorn Helgaas
From: Bjorn Helgaas Several of the interfaces defined in include/linux/pci-aspm.h are used only internally from the PCI core: pcie_aspm_init_link_state() pcie_aspm_exit_link_state() pcie_aspm_pm_state_change() pcie_aspm_powersave_config_link()

[PATCH] PCI/ASPM: Unexport internal ASPM interfaces

2017-12-15 Thread Bjorn Helgaas
From: Bjorn Helgaas Several of the interfaces defined in include/linux/pci-aspm.h are used only internally from the PCI core: pcie_aspm_init_link_state() pcie_aspm_exit_link_state() pcie_aspm_pm_state_change() pcie_aspm_powersave_config_link() pcie_aspm_create_sysfs_dev_files()

Re: [GIT PULL] Staging driver fixes for 4.15-rc4

2017-12-15 Thread Greg KH
On Fri, Dec 15, 2017 at 01:03:03PM -0800, Linus Torvalds wrote: > On Fri, Dec 15, 2017 at 11:00 AM, Greg KH wrote: > > > > While there are 4 patches in here, there's really only 2, as one ion > > patch got reverted due to build errors reported by 0-day. > > Since the

Re: [GIT PULL] Staging driver fixes for 4.15-rc4

2017-12-15 Thread Greg KH
On Fri, Dec 15, 2017 at 01:03:03PM -0800, Linus Torvalds wrote: > On Fri, Dec 15, 2017 at 11:00 AM, Greg KH wrote: > > > > While there are 4 patches in here, there's really only 2, as one ion > > patch got reverted due to build errors reported by 0-day. > > Since the revert was for the previous

[PATCH v4 1/4] ACPI / boot: Swap variables in condition in acpi_register_gsi_ioapic()

2017-12-15 Thread Andy Shevchenko
For better readability compare input to something considered settled down. Additionally move it to one line (while it's slightly longer 80 characters it makes readability better). No functional change intended. Signed-off-by: Andy Shevchenko ---

[PATCH v4 1/4] ACPI / boot: Swap variables in condition in acpi_register_gsi_ioapic()

2017-12-15 Thread Andy Shevchenko
For better readability compare input to something considered settled down. Additionally move it to one line (while it's slightly longer 80 characters it makes readability better). No functional change intended. Signed-off-by: Andy Shevchenko --- arch/x86/kernel/acpi/boot.c | 3 +-- 1 file

<    1   2   3   4   5   6   7   8   9   10   >