diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-08-29 13:07:03 +0300 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-11-17 18:36:35 +0300 |
commit | ff36da69bc90d80b0c73f47f4b2e270b3ff6da99 (patch) | |
tree | 5f8f51f313a1ffc22575b5d5c5eb76219e77f3cb /fs | |
parent | a1efe484dd8c04c4c2d4eb1ee6b04d01cfc07ccc (diff) | |
download | linux-ff36da69bc90d80b0c73f47f4b2e270b3ff6da99.tar.xz |
fs: Remove FS_THP_SUPPORT
Instead of setting a bit in the fs_flags to set a bit in the
address_space, set the bit in the address_space directly.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/inode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/inode.c b/fs/inode.c index 3eba0940ffcf..6b80a51129d5 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -180,8 +180,6 @@ int inode_init_always(struct super_block *sb, struct inode *inode) mapping->a_ops = &empty_aops; mapping->host = inode; mapping->flags = 0; - if (sb->s_type->fs_flags & FS_THP_SUPPORT) - __set_bit(AS_THP_SUPPORT, &mapping->flags); mapping->wb_err = 0; atomic_set(&mapping->i_mmap_writable, 0); #ifdef CONFIG_READ_ONLY_THP_FOR_FS |