summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-09-11 14:29:06 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2014-09-23 11:10:17 -0700
commitc52e1b10b175bef84f1681946b4a438cc4c84147 (patch)
tree8c316e124453a3b2b03eefa3d0cf36094f386bc8 /fs/f2fs/f2fs.h
parent19c9c466e5c79402cbf8929f922011b02fbb59bd (diff)
downloadop-kernel-dev-c52e1b10b175bef84f1681946b4a438cc4c84147.zip
op-kernel-dev-c52e1b10b175bef84f1681946b4a438cc4c84147.tar.gz
f2fs: remove redundant operation during roll-forward recovery
If same data is updated multiple times, we don't need to redo whole the operations. Let's just update the lastest one. Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index dbe5f93..3b70b01 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -137,7 +137,9 @@ struct discard_entry {
struct fsync_inode_entry {
struct list_head list; /* list head */
struct inode *inode; /* vfs inode pointer */
- block_t blkaddr; /* block address locating the last inode */
+ block_t blkaddr; /* block address locating the last fsync */
+ block_t last_dentry; /* block address locating the last dentry */
+ block_t last_inode; /* block address locating the last inode */
};
#define nats_in_cursum(sum) (le16_to_cpu(sum->n_nats))
OpenPOWER on IntegriCloud