Re: [Cluster-devel] [PATCH v5 06/13] fs: Convert mpage_readpages to mpage_readahead

2020-02-13 Thread Junxiao Bi
On 2/10/20 5:03 PM, Matthew Wilcox wrote: From: "Matthew Wilcox (Oracle)" Implement the new readahead aop and convert all callers (block_dev, exfat, ext2, fat, gfs2, hpfs, isofs, jfs, nilfs2, ocfs2, omfs, qnx6, reiserfs & udf). The callers are all trivial except for GFS2 & OCFS2. Signed-off

[Cluster-devel] [PATCH] gfs2: fix flock panic issue

2016-01-04 Thread Junxiao Bi
ks API users to locks_lock_inode_wait()") Signed-off-by: Junxiao Bi --- fs/gfs2/file.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 860408053c95..62b85802af2c 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c @@ -1027,7 +1027,10 @@ static int

[Cluster-devel] [PATCH 3/3] gfs2: fix out of inode size writeback

2021-04-26 Thread Junxiao Bi
Dirty flag of buffers out of inode size will be cleared and will not be writeback. Cc: Signed-off-by: Junxiao Bi --- fs/gfs2/aops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index cc4f987687f3..cd8a87555b3a 100644 --- a/fs/gfs2

[Cluster-devel] [PATCH 2/3] ocfs2: allow writing back pages out of inode size

2021-04-26 Thread Junxiao Bi
-O qcow2 -o compat=1.1 $qcow_image.conv Cc: Signed-off-by: Junxiao Bi --- fs/ocfs2/aops.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index ad20403b383f..7a3e3d59f6a9 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aop

[Cluster-devel] [PATCH 1/3] fs/buffer.c: add new api to allow eof writeback

2021-04-26 Thread Junxiao Bi
When doing truncate/fallocate for some filesytem like ocfs2, it will zero some pages that are out of inode size and then later update the inode size, so it needs this api to writeback eof pages. Cc: Signed-off-by: Junxiao Bi --- fs/buffer.c | 14 +++--- include/linux

Re: [Cluster-devel] [PATCH 2/3] ocfs2: allow writing back pages out of inode size

2021-04-28 Thread Junxiao Bi
Hi Joseph, Can you help review the first two patches? Thanks, Junxiao. On 4/26/21 3:05 PM, Junxiao Bi wrote: When fallocate/truncate extend inode size, if the original isize is in the middle of last cluster, then the part from isize to the end of the cluster needs to be zeroed with buffer

Re: [Cluster-devel] [PATCH 3/3] gfs2: fix out of inode size writeback

2021-04-28 Thread Junxiao Bi
Hi Bob & Andreas, Can you help review this patch? Thanks, Junxiao. On 4/26/21 3:05 PM, Junxiao Bi wrote: Dirty flag of buffers out of inode size will be cleared and will not be writeback. Cc: Signed-off-by: Junxiao Bi --- fs/gfs2/aops.c | 4 ++-- 1 file changed, 2 insertions(+

Re: [Cluster-devel] [PATCH 1/3] fs/buffer.c: add new api to allow eof writeback

2021-04-29 Thread Junxiao Bi
On 4/29/21 10:14 AM, Andreas Gruenbacher wrote: Junxiao, On Tue, Apr 27, 2021 at 4:44 AM Junxiao Bi wrote: When doing truncate/fallocate for some filesytem like ocfs2, it will zero some pages that are out of inode size and then later update the inode size, so it needs this api to writeback

Re: [Cluster-devel] [PATCH 1/3] fs/buffer.c: add new api to allow eof writeback

2021-04-30 Thread Junxiao Bi
On 4/30/21 5:47 AM, Jan Kara wrote: On Thu 29-04-21 11:07:15, Junxiao Bi wrote: On 4/29/21 10:14 AM, Andreas Gruenbacher wrote: On Tue, Apr 27, 2021 at 4:44 AM Junxiao Bi wrote: When doing truncate/fallocate for some filesytem like ocfs2, it will zero some pages that are out of inode size

Re: [Cluster-devel] [PATCH 1/3] fs/buffer.c: add new api to allow eof writeback

2021-05-03 Thread Junxiao Bi
On 5/3/21 3:29 AM, Jan Kara wrote: On Fri 30-04-21 14:18:15, Junxiao Bi wrote: On 4/30/21 5:47 AM, Jan Kara wrote: On Thu 29-04-21 11:07:15, Junxiao Bi wrote: On 4/29/21 10:14 AM, Andreas Gruenbacher wrote: On Tue, Apr 27, 2021 at 4:44 AM Junxiao Bi wrote: When doing truncate/fallocate

Re: [Cluster-devel] [PATCH 1/3] fs/buffer.c: add new api to allow eof writeback

2021-05-04 Thread Junxiao Bi
On 5/4/21 2:02 AM, Jan Kara wrote: On Mon 03-05-21 10:25:31, Junxiao Bi wrote: On 5/3/21 3:29 AM, Jan Kara wrote: On Fri 30-04-21 14:18:15, Junxiao Bi wrote: On 4/30/21 5:47 AM, Jan Kara wrote: On Thu 29-04-21 11:07:15, Junxiao Bi wrote: On 4/29/21 10:14 AM, Andreas Gruenbacher wrote: On

Re: [Cluster-devel] [PATCH 1/3] fs/buffer.c: add new api to allow eof writeback

2021-05-05 Thread Junxiao Bi
On 5/5/21 4:43 AM, Jan Kara wrote: On Tue 04-05-21 16:35:53, Junxiao Bi wrote: On 5/4/21 2:02 AM, Jan Kara wrote: On Mon 03-05-21 10:25:31, Junxiao Bi wrote: On 5/3/21 3:29 AM, Jan Kara wrote: On Fri 30-04-21 14:18:15, Junxiao Bi wrote: On 4/30/21 5:47 AM, Jan Kara wrote: On Thu 29-04

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 1/3] fs/buffer.c: add new api to allow eof writeback

2021-05-10 Thread Junxiao Bi
On 5/9/21 4:23 PM, Andrew Morton wrote: On Mon, 26 Apr 2021 15:05:50 -0700 Junxiao Bi wrote: When doing truncate/fallocate for some filesytem like ocfs2, it will zero some pages that are out of inode size and then later update the inode size, so it needs this api to writeback eof pages