Re: [f2fs-dev] [PATCH] f2fs-tools: fix metadata region overlap with zoned block device zones

2021-06-21 Thread Aravind Ramesh
> > I queued this in -dev which will go into -master later. > > https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs- > tools.git/commit/?h=dev&id=b750268dafec5a59716b9aec606dc18a9cbdae70 > Thank you. Aravind > Thanks, > ___ Linux-f2fs-dev

Re: [f2fs-dev] [PATCH] f2fs-tools: fix metadata region overlap with zoned block device zones

2021-06-21 Thread Aravind Ramesh
Hello Kim, Could you please pull this ? I will send a v2 if any review comments are there, please let me know. Thanks, Aravind > -Original Message- > From: Aravind Ramesh > Sent: Thursday, June 17, 2021 12:56 AM > To: linux-f2fs-devel@lists.sourceforge.net > Cc: jae

[f2fs-dev] [PATCH] f2fs-tools: fix metadata region overlap with zoned block device zones

2021-06-16 Thread Aravind Ramesh
blocks). When formatting a volume that contains host managed zoned block devices, make sure that the conventional device used to store metadata is large enough to avoid write errors. Signed-off-by: Aravind Ramesh --- mkfs/f2fs_format.c | 15 +++ 1 file changed, 15 insertions(+) diff --git

[f2fs-dev] [PATCH v2 1/1] f2fs-tools: zns zone-capacity support.

2020-07-21 Thread Aravind Ramesh
compare with checkpoint values. Signed-off-by: Aravind Ramesh Signed-off-by: Shin'ichiro Kawasaki --- configure.ac| 4 +++ fsck/fsck.c | 5 +-- fsck/fsck.h | 2 ++ fsck/mount.c| 75 +++-- include/f2fs_fs.h

[f2fs-dev] [PATCH v2 0/1] f2fs-tools: add zone-capacity support

2020-07-21 Thread Aravind Ramesh
branch dev Aravind Ramesh (1): f2fs-tools: zns zone-capacity support. configure.ac| 4 +++ fsck/fsck.c | 5 +-- fsck/fsck.h | 2 ++ fsck/mount.c| 75 +++-- include/f2fs_fs.h | 41 ++--- lib

Re: [f2fs-dev] [f2fs:dev-test 37/38] fs/f2fs/super.c:3058:48: error: 'struct blk_zone' has no member named 'capacity'

2020-07-21 Thread Aravind Ramesh
rom: kernel test robot > Sent: Tuesday, July 21, 2020 12:43 PM > To: Aravind Ramesh > Cc: kbuild-...@lists.01.org; linux-f2fs-devel@lists.sourceforge.net; Jaegeuk > Kim > ; Damien Le Moal ; Niklas Cassel > ; Chao Yu ; Chao Yu > > Subject: [f2fs:dev-test 37/38] fs/f

Re: [f2fs-dev] [PATCH 2/2] fsck.f2fs: validate free seg count on zns device

2020-07-17 Thread Aravind Ramesh
> -Original Message- > From: Chao Yu > Sent: Friday, July 17, 2020 1:07 PM > To: Aravind Ramesh ; jaeg...@kernel.org; linux-f2fs- > de...@lists.sourceforge.net > Cc: Shinichiro Kawasaki ; Matias Bjorling > > Subject: Re: [PATCH 2/2] fsck.f2fs: validate free

Re: [f2fs-dev] [PATCH 1/2] mkfs.f2fs: zns zone-capacity support.

2020-07-17 Thread Aravind Ramesh
> -Original Message- > From: Chao Yu > Sent: Friday, July 17, 2020 12:58 PM > To: Aravind Ramesh ; jaeg...@kernel.org; linux-f2fs- > de...@lists.sourceforge.net > Cc: Shinichiro Kawasaki ; Matias Bjorling > > Subject: Re: [PATCH 1/2] mkfs.f2fs: zns zone-capacity

[f2fs-dev] [PATCH v3 0/1] f2fs: zns zone-capacity support

2020-07-16 Thread Aravind Ramesh
and requires the below patch in order to build. https://lore.kernel.org/linux-nvme/20200701063720.ga28...@lst.de/T/#m19e0197ae1837b7fe959b13fbc2a859b1f2abc1e The above patch has been merged to the nvme-5.9 branch in the git tree: git://git.infradead.org/nvme.git Aravind Ramesh (1): f2fs: support

Re: [f2fs-dev] [PATCH v2 1/1] f2fs: support zone capacity less than zone size

2020-07-16 Thread Aravind Ramesh
> -Original Message- > From: Chao Yu > Sent: Wednesday, July 15, 2020 7:32 AM > To: Aravind Ramesh ; jaeg...@kernel.org; linux- > fsde...@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net; h...@lst.de > Cc: Damien Le Moal ; Niklas Cassel > ; Matias Bjorling

[f2fs-dev] [PATCH v3 1/1] f2fs: support zone capacity less than zone size

2020-07-16 Thread Aravind Ramesh
second zone starts at 64MB and is usable till 113MB (64 + 49) and the range between 113 and 128MB is again unusable. The next zone starts at 128MB, and so on. Signed-off-by: Aravind Ramesh Signed-off-by: Damien Le Moal Signed-off-by: Niklas Cassel --- Documentation/filesystems/f2fs.rst | 15

Re: [f2fs-dev] [PATCH 2/2] fsck.f2fs: validate free seg count on zns device

2020-07-15 Thread Aravind Ramesh
> -Original Message- > From: Jaegeuk Kim > Sent: Tuesday, July 14, 2020 12:38 AM > To: Aravind Ramesh > Cc: yuch...@huawei.com; linux-f2fs-devel@lists.sourceforge.net; Shinichiro > Kawasaki ; Matias Bjorling > > Subject: Re: [PATCH 2/2] fsck.f2fs: valida

Re: [f2fs-dev] [PATCH v2 1/1] f2fs: support zone capacity less than zone size

2020-07-14 Thread Aravind Ramesh
Thanks for the valuable feedback. My comments are inline. Will send the V3 with the feedback incorporated. Regards, Aravind > -Original Message- > From: Chao Yu > Sent: Tuesday, July 14, 2020 5:28 PM > To: Aravind Ramesh ; jaeg...@kernel.org; linux- > fsde...@vger.kernel.

Re: [f2fs-dev] [PATCH 1/2] f2fs: support zone capacity less than zone size

2020-07-10 Thread Aravind Ramesh
kfree(). Please let me know your feedback. Thanks, Aravind > -Original Message- > From: Aravind Ramesh > Sent: Thursday, July 9, 2020 12:41 PM > To: Chao Yu ; jaeg...@kernel.org; linux- > fsde...@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net; h...@lst.de >

[f2fs-dev] [PATCH v2 1/1] f2fs: support zone capacity less than zone size

2020-07-10 Thread Aravind Ramesh
second zone starts at 64MB and is usable till 113MB (64 + 49) and the range between 113 and 128MB is again unusable. The next zone starts at 128MB, and so on. Signed-off-by: Aravind Ramesh Signed-off-by: Damien Le Moal Signed-off-by: Niklas Cassel --- Documentation/filesystems/f2fs.rst | 15

[f2fs-dev] [PATCH v2 0/1] f2fs: zns zone-capacity support

2020-07-10 Thread Aravind Ramesh
and requires the below patch in order to build. https://lore.kernel.org/linux-nvme/20200701063720.ga28...@lst.de/T/#m19e0197ae1837b7fe959b13fbc2a859b1f2abc1e The above patch has been merged to the nvme-5.9 branch in the git tree: git://git.infradead.org/nvme.git Aravind Ramesh (1): f2fs: support

Re: [f2fs-dev] [PATCH 1/2] f2fs: support zone capacity less than zone size

2020-07-09 Thread Aravind Ramesh
Comments inline. Thanks, Aravind > -Original Message- > From: Chao Yu > Sent: Thursday, July 9, 2020 12:35 PM > To: Aravind Ramesh ; jaeg...@kernel.org; linux- > fsde...@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net; h...@lst.de > Cc: Damien Le Moal ; Niklas

Re: [f2fs-dev] [PATCH 1/2] f2fs: support zone capacity less than zone size

2020-07-08 Thread Aravind Ramesh
Please find my response inline. Thanks, Aravind > -Original Message- > From: Chao Yu > Sent: Thursday, July 9, 2020 8:26 AM > To: Aravind Ramesh ; jaeg...@kernel.org; linux- > fsde...@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net; h...@lst.de > Cc: Damie

Re: [f2fs-dev] [PATCH 1/2] f2fs: support zone capacity less than zone size

2020-07-08 Thread Aravind Ramesh
Please find my response inline. Thanks, Aravind > -Original Message- > From: Chao Yu > Sent: Wednesday, July 8, 2020 8:04 AM > To: Aravind Ramesh ; jaeg...@kernel.org; linux- > fsde...@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net; h...@lst.de > Cc: Damie

Re: [f2fs-dev] [PATCH 1/2] f2fs: support zone capacity less than zone size

2020-07-07 Thread Aravind Ramesh
Thanks for review Chao Yu. Please find my response inline. I will re-send a V2 after incorporating your comments. Regards, Aravind > -Original Message- > From: Chao Yu > Sent: Tuesday, July 7, 2020 5:49 PM > To: Aravind Ramesh ; jaeg...@kernel.org; linux- > fsde...@

Re: [f2fs-dev] [PATCH 1/2] f2fs: support zone capacity less than zone size

2020-07-06 Thread Aravind Ramesh
. Aravind > -Original Message- > From: Jaegeuk Kim > Sent: Tuesday, July 7, 2020 9:20 AM > To: Aravind Ramesh > Cc: yuch...@huawei.com; linux-fsde...@vger.kernel.org; linux-f2fs- > de...@lists.sourceforge.net; h...@lst.de; Damien Le Moal > ; Niklas Cassel ; Matias >

Re: [f2fs-dev] [PATCH 1/2] f2fs: support zone capacity less than zone size

2020-07-06 Thread Aravind Ramesh
age- > From: Jaegeuk Kim > Sent: Tuesday, July 7, 2020 5:37 AM > To: Aravind Ramesh > Cc: yuch...@huawei.com; linux-fsde...@vger.kernel.org; linux-f2fs- > de...@lists.sourceforge.net; h...@lst.de; Damien Le Moal > ; Niklas Cassel ; Matias > Bjorling > Subject: Re: [PA

[f2fs-dev] [PATCH 0/2] f2fs-tools: add zone-capacity support

2020-07-02 Thread Aravind Ramesh
branch dev Aravind Ramesh (2): mkfs.f2fs: zns zone-capacity support. fsck.f2fs: validate free seg count on zns device configure.ac| 4 +++ fsck/fsck.c | 5 +-- fsck/fsck.h | 2 ++ fsck/mount.c| 75 +++-- include

[f2fs-dev] [PATCH 1/2] mkfs.f2fs: zns zone-capacity support.

2020-07-02 Thread Aravind Ramesh
-capacity. Update the super block with the usable number of blocks and free segment count in the ZNS device zones, if zone-capacity is less than zone-size. Set reserved segment count and overprovision ratio based on the usable segments in the zone. Signed-off-by: Aravind Ramesh Signed-off-by

[f2fs-dev] [PATCH 0/2] f2fs: zns zone-capacity support

2020-07-02 Thread Aravind Ramesh
, perhaps you can carry this patch through your tree as well ? Aravind Ramesh (2): f2fs: support zone capacity less than zone size f2fs: manage zone capacity during writes and gc fs/f2fs/f2fs.h| 5 ++ fs/f2fs/gc.c | 27 +--- fs/f2fs/gc.h | 42 +++-- fs/f2fs/segment.c

[f2fs-dev] [PATCH 2/2] fsck.f2fs: validate free seg count on zns device

2020-07-02 Thread Aravind Ramesh
zone-capacity are considered as usable and added to the free_segment_count and free_segment_bitmap of the kernel. Allow fsck to find the free_segment_count based on the zone-capacity and compare with checkpoint values. Signed-off-by: Aravind Ramesh Signed-off-by: Shin'ichiro Kawasaki ---

[f2fs-dev] [PATCH 1/2] f2fs: support zone capacity less than zone size

2020-07-02 Thread Aravind Ramesh
as permanently used segments. In cases where zone-capacity does not align with segment size the last segment will start before zone-capacity and end beyond the zone-capacity of the zone. For such spanning segments only sectors within the zone-capacity are used. Signed-off-by: Aravind Ramesh Signed

[f2fs-dev] [PATCH 2/2] f2fs: manage zone capacity during writes and gc

2020-07-02 Thread Aravind Ramesh
on the number of usable blocks in that segment, write to blocks only up to zone-capacity. Signed-off-by: Aravind Ramesh Signed-off-by: Damien Le Moal Signed-off-by: Niklas Cassel --- fs/f2fs/gc.c | 27 --- fs/f2fs/gc.h | 42