X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=fs%2Finode.c;h=fef457a42882ba64092ae01577d8a3746f03f6e8;hb=ee7b0d31f9f0192619a978b315abdb86beb27fdd;hp=64bf28cf05cde859ab0b72abd4a30cbdc7e3912b;hpb=d53a4c8e77dae2b71cd9b3fd249ae538f137caeb;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;