aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorGravatar Matthew Wilcox (Oracle) <willy@infradead.org> 2021-01-14 19:00:51 +0000
committerGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2021-01-27 15:20:07 -0800
commit12699fb781574d50871ec6a4d96ac5e0f0ede03e (patch)
tree06235bd540571f0c4990fa66820e666893b03f3c /fs/f2fs/super.c
parentf2fs: remove unused stat_{inc, dec}_atomic_write (diff)
downloadlinux-12699fb781574d50871ec6a4d96ac5e0f0ede03e.tar.gz
linux-12699fb781574d50871ec6a4d96ac5e0f0ede03e.tar.bz2
linux-12699fb781574d50871ec6a4d96ac5e0f0ede03e.zip
f2fs: Remove readahead collision detection
With the new ->readahead operation, locked pages are added to the page cache, preventing two threads from racing with each other to read the same chunk of file, so this is dead code. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 9749c9ad374f..6a30876ff374 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1174,8 +1174,6 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb)
/* Will be used by directory only */
fi->i_dir_level = F2FS_SB(sb)->dir_level;
- fi->ra_offset = -1;
-
return &fi->vfs_inode;
}