X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=fs%2Finode.c;h=fef457a42882ba64092ae01577d8a3746f03f6e8;hb=f3fcb314d16cdcffb6c521564b86b453869300da;hp=64bf28cf05cde859ab0b72abd4a30cbdc7e3912b;hpb=f7c3bf8fa7e5a8e45f4a8e82be6466157854b59b;p=linux.git diff --git a/fs/inode.c b/fs/inode.c index 64bf28cf05cd..fef457a42882 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -181,6 +181,9 @@ int inode_init_always(struct super_block *sb, struct inode *inode) mapping->flags = 0; mapping->wb_err = 0; atomic_set(&mapping->i_mmap_writable, 0); +#ifdef CONFIG_READ_ONLY_THP_FOR_FS + atomic_set(&mapping->nr_thps, 0); +#endif mapping_set_gfp_mask(mapping, GFP_HIGHUSER_MOVABLE); mapping->private_data = NULL; mapping->writeback_index = 0;