diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-01-14 20:00:51 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2021-01-28 00:20:07 +0100 |
commit | 12699fb781574d50871ec6a4d96ac5e0f0ede03e (patch) | |
tree | 06235bd540571f0c4990fa66820e666893b03f3c /fs/f2fs/super.c | |
parent | f2fs: remove unused stat_{inc, dec}_atomic_write (diff) | |
download | linux-12699fb781574d50871ec6a4d96ac5e0f0ede03e.tar.xz 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.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; } |