Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1174209 > unrolled thread

RE: [f2fs-dev] [PATCH 06/12] f2fs: update on-disk extents even under extent_cache

Started byChao Yu <chao2.yu@samsung.com>
First post2015-06-30 05:20 +0200
Last post2015-06-30 05:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  RE: [f2fs-dev] [PATCH 06/12] f2fs: update on-disk extents even under  extent_cache Chao Yu <chao2.yu@samsung.com> - 2015-06-30 05:20 +0200

#1174209 — RE: [f2fs-dev] [PATCH 06/12] f2fs: update on-disk extents even under extent_cache

FromChao Yu <chao2.yu@samsung.com>
Date2015-06-30 05:20 +0200
SubjectRE: [f2fs-dev] [PATCH 06/12] f2fs: update on-disk extents even under extent_cache
Message-ID<pGUfw-6eF-13@gated-at.bofh.it>
> -----Original Message-----
> From: Jaegeuk Kim [mailto:jaegeuk@kernel.org]
> Sent: Tuesday, June 30, 2015 2:40 AM
> To: linux-kernel@vger.kernel.org; linux-fsdevel@vger.kernel.org;
> linux-f2fs-devel@lists.sourceforge.net
> Cc: Jaegeuk Kim
> Subject: [f2fs-dev] [PATCH 06/12] f2fs: update on-disk extents even under extent_cache
> 
> Previously, f2fs_update_extent_cache() updates in-memory extent_cache all the
> time, and then finally preserves its up-to-date extent into on-disk one during
> f2fs_evict_inode.
> 
> But, in the following scenario:
> 
> 1. mount
> 2. open & write an extent X
> 3. f2fs_evict_inode; on-disk extent is X
> 4. open & update the extent X with Y
> 5. sync; trigger checkpoint
> 6. power-cut
> 
> after power-on, f2fs should serve extent Y, but we have an on-disk extent X.
> 
> This causes a failure on xfstests/311.
> 
> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

Reviewed-by: Chao Yu <chao2.yu@samsung.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web