Re: [PATCH] hugetlbfs: add O_TMPFILE support

2019-10-23 Thread Piotr Sarna
On 10/23/19 4:55 AM, Mike Kravetz wrote: On 10/22/19 12:09 AM, Piotr Sarna wrote: On 10/21/19 7:17 PM, Mike Kravetz wrote: On 10/15/19 4:37 PM, Mike Kravetz wrote: On 10/15/19 3:50 AM, Michal Hocko wrote: On Tue 15-10-19 11:01:12, Piotr Sarna wrote: With hugetlbfs, a common pattern

Re: [PATCH] hugetlbfs: add O_TMPFILE support

2019-10-22 Thread Piotr Sarna
On 10/21/19 7:17 PM, Mike Kravetz wrote: On 10/15/19 4:37 PM, Mike Kravetz wrote: On 10/15/19 3:50 AM, Michal Hocko wrote: On Tue 15-10-19 11:01:12, Piotr Sarna wrote: With hugetlbfs, a common pattern for mapping anonymous huge pages is to create a temporary file first. Really? I though

[PATCH] hugetlbfs: add O_TMPFILE support

2019-10-15 Thread Piotr Sarna
and successfully mapping 2M huge pages with it. Without the patch, trying to open a file with O_TMPFILE results in -ENOSUP. Signed-off-by: Piotr Sarna --- fs/hugetlbfs/inode.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/fs/hugetlbfs/inode.c b/fs

[PATCH] mm: zcache: zcache_cleancache_flush_fs fix

2013-08-06 Thread Piotr Sarna
e function hangs on uninitialized read-write lock. To prevent that behaviour, pool_id should be checked for being positive before assigning zpool variable with pools[pool_id]. Signed-off-by: Piotr Sarna Acked-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park --- mm/zcache.c |6

[PATCH] mm: zcache: zcache_cleancache_flush_fs fix

2013-08-06 Thread Piotr Sarna
hangs on uninitialized read-write lock. To prevent that behaviour, pool_id should be checked for being positive before assigning zpool variable with pools[pool_id]. Signed-off-by: Piotr Sarna p.sa...@partner.samsung.com Acked-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off

[PATCH 1/2] ext4: fix handling of nodelalloc parameter

2013-08-02 Thread Piotr Sarna
this problem is in setting EXPLICIT_DELALLOC flag properly. This patch ensures that EXPLICIT_DELALLOC flag is set only if "delalloc" parameter was used, and not set in case of "nodelalloc". Signed-off-by: Piotr Sarna Acked-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Par

[PATCH 2/2] ext4: improve mount/remount error handling

2013-08-02 Thread Piotr Sarna
tions() call to ensure that data=journal and delalloc/dioread_nolock parameters are not present at the same time. Signed-off-by: Piotr Sarna Acked-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park --- fs/ext4/super.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-)

[PATCH 1/2] ext4: fix handling of nodelalloc parameter

2013-08-02 Thread Piotr Sarna
. This patch ensures that EXPLICIT_DELALLOC flag is set only if delalloc parameter was used, and not set in case of nodelalloc. Signed-off-by: Piotr Sarna p.sa...@partner.samsung.com Acked-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

[PATCH 2/2] ext4: improve mount/remount error handling

2013-08-02 Thread Piotr Sarna
/dioread_nolock parameters are not present at the same time. Signed-off-by: Piotr Sarna p.sa...@partner.samsung.com Acked-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- fs/ext4/super.c | 17 - 1 file changed, 16

Re: [PATCH 1/2] staging: zram: add Crypto API support

2013-07-31 Thread Piotr Sarna
On 07/31/2013 02:49 PM, Greg KH wrote: > On Wed, Jul 31, 2013 at 12:16:36PM +0200, Piotr Sarna wrote: >> Hi, >> >> On 07/30/2013 03:53 PM, Greg KH wrote: >>> On Tue, Jul 30, 2013 at 02:30:48PM +0200, Piotr Sarna wrote: >>>> Current version of zram do

Re: [PATCH 1/2] staging: zram: add Crypto API support

2013-07-31 Thread Piotr Sarna
Hi, On 07/30/2013 03:53 PM, Greg KH wrote: > On Tue, Jul 30, 2013 at 02:30:48PM +0200, Piotr Sarna wrote: >> Current version of zram does not allow any substitution of a default >> compression algorithm. Therefore, I decided to change the existing >> implementation of page

Re: [PATCH 1/2] staging: zram: add Crypto API support

2013-07-31 Thread Piotr Sarna
Hi, On 07/30/2013 03:53 PM, Greg KH wrote: On Tue, Jul 30, 2013 at 02:30:48PM +0200, Piotr Sarna wrote: Current version of zram does not allow any substitution of a default compression algorithm. Therefore, I decided to change the existing implementation of page compression by adding Crypto

Re: [PATCH 1/2] staging: zram: add Crypto API support

2013-07-31 Thread Piotr Sarna
On 07/31/2013 02:49 PM, Greg KH wrote: On Wed, Jul 31, 2013 at 12:16:36PM +0200, Piotr Sarna wrote: Hi, On 07/30/2013 03:53 PM, Greg KH wrote: On Tue, Jul 30, 2013 at 02:30:48PM +0200, Piotr Sarna wrote: Current version of zram does not allow any substitution of a default compression

[PATCH 2/2] staging: zram: add per-cpu support to Crypto

2013-07-30 Thread Piotr Sarna
per thread took 0.60s with per-cpu code included and approximately 0.80s without per-cpu support. Signed-off-by: Piotr Sarna Acked-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park --- drivers/staging/zram/zram_drv.c | 146 +-- drivers/staging/zram

[PATCH 1/2] staging: zram: add Crypto API support

2013-07-30 Thread Piotr Sarna
the value of zram.compressor module parameter to a proper name (e.g. lz4). Signed-off-by: Piotr Sarna Acked-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park --- drivers/staging/zram/Kconfig|5 +- drivers/staging/zram/zram_drv.c | 106 --- drivers/st

[PATCH 1/2] staging: zram: add Crypto API support

2013-07-30 Thread Piotr Sarna
of zram.compressor module parameter to a proper name (e.g. lz4). Signed-off-by: Piotr Sarna p.sa...@partner.samsung.com Acked-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/staging/zram/Kconfig|5 +- drivers/staging/zram/zram_drv.c

[PATCH 2/2] staging: zram: add per-cpu support to Crypto

2013-07-30 Thread Piotr Sarna
per thread took 0.60s with per-cpu code included and approximately 0.80s without per-cpu support. Signed-off-by: Piotr Sarna p.sa...@partner.samsung.com Acked-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/staging/zram

[PATCH] zcache: fix "zcache=" kernel parameter

2013-07-19 Thread Piotr Sarna
() ended properly. A solution to this problem is as following: 1. Move the "goto out" directive inside the "if (!ret)" statement 2. In case that crypto_has_comp() returned 0, change the value of ret to non-zero before "goto out" to indicate an error. Signed-off-

[PATCH] zcache: fix zcache= kernel parameter

2013-07-19 Thread Piotr Sarna
to this problem is as following: 1. Move the goto out directive inside the if (!ret) statement 2. In case that crypto_has_comp() returned 0, change the value of ret to non-zero before goto out to indicate an error. Signed-off-by: Piotr Sarna p.sa...@partner.samsung.com Acked-by: Bartlomiej

[PATCH] zcache: fix "zcache=" kernel parameter

2013-07-18 Thread Piotr Sarna
() ended properly. A solution to this problem is as following: 1. Move the "goto out" directive inside the "if (!ret)" statement 2. In case that crypto_has_comp() returned 0, change the value of ret to non-zero before "goto out" to indicate an error. Signed-off-

[PATCH] zcache: fix zcache= kernel parameter

2013-07-18 Thread Piotr Sarna
to this problem is as following: 1. Move the goto out directive inside the if (!ret) statement 2. In case that crypto_has_comp() returned 0, change the value of ret to non-zero before goto out to indicate an error. Signed-off-by: Piotr Sarna p.sa...@partner.samsung.com Acked-by: Bartlomiej