Re: [PATCH] hugetlbfs: always use address space in inode for resv_map pointer

2019-05-08 Thread yuyufen
On 2019/4/20 4:44, Mike Kravetz wrote: Continuing discussion about commit 58b6e5e8f1ad ("hugetlbfs: fix memory leak for resv_map") brought up the issue that inode->i_mapping may not point to the address space embedded within the inode at inode eviction time. The hugetlbfs truncate routine

Re: [PATCH v2] jffs2: safely remove obsolete dirent from the f->dents list

2019-02-16 Thread yuyufen
ping? On 2019/1/23 15:22, Yufen Yu wrote: We may delete a bunch of directory entries, operating such as: getdents(), unlink(), getdents()..., until the end of the directory. jffs2 handles f_pos on the directory merely as the position on the f->dents list. So, the next getdents() may skip some

Re: [PATCH] jffs2: safely remove obsolete dirent from the f->dents list

2018-05-04 Thread yuyufen
Hi, David. On 2018/5/4 16:18, David Woodhouse wrote: On Fri, 2018-05-04 at 16:06 +0800, yuyufen wrote: You've made JFFS2_INVALID_LIMIT 64, which is reasonable enough (although it's a bit of a weird name and possibly wants to be more specific — invalid *what*?). Thansk a lot for your

Re: [PATCH] jffs2: safely remove obsolete dirent from the f->dents list

2018-05-04 Thread yuyufen
Hi, David. On 2018/5/4 16:18, David Woodhouse wrote: On Fri, 2018-05-04 at 16:06 +0800, yuyufen wrote: You've made JFFS2_INVALID_LIMIT 64, which is reasonable enough (although it's a bit of a weird name and possibly wants to be more specific — invalid *what*?). Thansk a lot for your

Re: [PATCH] jffs2: safely remove obsolete dirent from the f->dents list

2018-05-04 Thread yuyufen
On 2018/4/28 6:22, David Woodhouse wrote: This looks a lot better than the first iteration; thank you for getting it to this point. One last thing, I hope... On Thu, 2018-03-29 at 20:00 +0800, Yufen Yu wrote: --- a/fs/jffs2/jffs2_fs_i.h +++ b/fs/jffs2/jffs2_fs_i.h @@ -42,6 +42,12 @@ struct

Re: [PATCH] jffs2: safely remove obsolete dirent from the f->dents list

2018-05-04 Thread yuyufen
On 2018/4/28 6:22, David Woodhouse wrote: This looks a lot better than the first iteration; thank you for getting it to this point. One last thing, I hope... On Thu, 2018-03-29 at 20:00 +0800, Yufen Yu wrote: --- a/fs/jffs2/jffs2_fs_i.h +++ b/fs/jffs2/jffs2_fs_i.h @@ -42,6 +42,12 @@ struct

Re: [PATCH] jffs2: remove fd from the f->dents list immediately.

2018-03-19 Thread yuyufen
Hi, David On 2018/3/16 20:52, David Woodhouse wrote: On Fri, 2018-03-16 at 12:39 +, Joakim Tjernlund wrote: After reverting the commit, we test 'rm -r', which can remove all files, and all seems OK! UHH, this is mine (and Davids work from 2007)! I cannot remember any details this long

Re: [PATCH] jffs2: remove fd from the f->dents list immediately.

2018-03-19 Thread yuyufen
Hi, David On 2018/3/16 20:52, David Woodhouse wrote: On Fri, 2018-03-16 at 12:39 +, Joakim Tjernlund wrote: After reverting the commit, we test 'rm -r', which can remove all files, and all seems OK! UHH, this is mine (and Davids work from 2007)! I cannot remember any details this long

Re: [RFC PATCH] ubifs: Add zstd support

2018-01-15 Thread yuyufen
On 2018/1/12 18:45, Richard Weinberger wrote: Yufen Yu, Am Freitag, 12. Januar 2018, 10:24:21 CET schrieb Yufen Yu: Add zstd compression and decompression support to ubifs. zstd at its fastest level compresses almost as well as zlib, while offering much faster compression and decompression,

Re: [RFC PATCH] ubifs: Add zstd support

2018-01-15 Thread yuyufen
On 2018/1/12 18:45, Richard Weinberger wrote: Yufen Yu, Am Freitag, 12. Januar 2018, 10:24:21 CET schrieb Yufen Yu: Add zstd compression and decompression support to ubifs. zstd at its fastest level compresses almost as well as zlib, while offering much faster compression and decompression,