diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-01-14 19:00:51 +0000 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-01-27 15:20:07 -0800 |
commit | 12699fb781574d50871ec6a4d96ac5e0f0ede03e (patch) | |
tree | 06235bd540571f0c4990fa66820e666893b03f3c /fs/f2fs/super.c | |
parent | deaa965fb01173478a1234f4305c71fffa4b5dc4 (diff) | |
download | linux-12699fb781574d50871ec6a4d96ac5e0f0ede03e.tar.bz2 |
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.c | 2 |
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; } |