shmem.c (5c68005083d620b1499fc81926a514d39ae8b88c) shmem.c (283ebdee2da30f65cba04c8fe690b97acfc7f4c4)
1/*
2 * Resizable virtual memory filesystem for Linux.
3 *
4 * Copyright (C) 2000 Linus Torvalds.
5 * 2000 Transmeta Corp.
6 * 2000-2001 Christoph Rohland
7 * 2000-2001 SAP AG
8 * 2002 Red Hat Inc.

--- 3712 unchanged lines hidden (view full) ---

3721out:
3722 raw_spin_unlock(&sbinfo->stat_lock);
3723 return invalfc(fc, "%s", err);
3724}
3725
3726static int shmem_show_options(struct seq_file *seq, struct dentry *root)
3727{
3728 struct shmem_sb_info *sbinfo = SHMEM_SB(root->d_sb);
1/*
2 * Resizable virtual memory filesystem for Linux.
3 *
4 * Copyright (C) 2000 Linus Torvalds.
5 * 2000 Transmeta Corp.
6 * 2000-2001 Christoph Rohland
7 * 2000-2001 SAP AG
8 * 2002 Red Hat Inc.

--- 3712 unchanged lines hidden (view full) ---

3721out:
3722 raw_spin_unlock(&sbinfo->stat_lock);
3723 return invalfc(fc, "%s", err);
3724}
3725
3726static int shmem_show_options(struct seq_file *seq, struct dentry *root)
3727{
3728 struct shmem_sb_info *sbinfo = SHMEM_SB(root->d_sb);
3729 struct mempolicy *mpol;
3729
3730 if (sbinfo->max_blocks != shmem_default_max_blocks())
3731 seq_printf(seq, ",size=%luk",
3732 sbinfo->max_blocks << (PAGE_SHIFT - 10));
3733 if (sbinfo->max_inodes != shmem_default_max_inodes())
3734 seq_printf(seq, ",nr_inodes=%lu", sbinfo->max_inodes);
3735 if (sbinfo->mode != (0777 | S_ISVTX))
3736 seq_printf(seq, ",mode=%03ho", sbinfo->mode);

--- 26 unchanged lines hidden (view full) ---

3763 */
3764 if (IS_ENABLED(CONFIG_TMPFS_INODE64) || sbinfo->full_inums)
3765 seq_printf(seq, ",inode%d", (sbinfo->full_inums ? 64 : 32));
3766#ifdef CONFIG_TRANSPARENT_HUGEPAGE
3767 /* Rightly or wrongly, show huge mount option unmasked by shmem_huge */
3768 if (sbinfo->huge)
3769 seq_printf(seq, ",huge=%s", shmem_format_huge(sbinfo->huge));
3770#endif
3730
3731 if (sbinfo->max_blocks != shmem_default_max_blocks())
3732 seq_printf(seq, ",size=%luk",
3733 sbinfo->max_blocks << (PAGE_SHIFT - 10));
3734 if (sbinfo->max_inodes != shmem_default_max_inodes())
3735 seq_printf(seq, ",nr_inodes=%lu", sbinfo->max_inodes);
3736 if (sbinfo->mode != (0777 | S_ISVTX))
3737 seq_printf(seq, ",mode=%03ho", sbinfo->mode);

--- 26 unchanged lines hidden (view full) ---

3764 */
3765 if (IS_ENABLED(CONFIG_TMPFS_INODE64) || sbinfo->full_inums)
3766 seq_printf(seq, ",inode%d", (sbinfo->full_inums ? 64 : 32));
3767#ifdef CONFIG_TRANSPARENT_HUGEPAGE
3768 /* Rightly or wrongly, show huge mount option unmasked by shmem_huge */
3769 if (sbinfo->huge)
3770 seq_printf(seq, ",huge=%s", shmem_format_huge(sbinfo->huge));
3771#endif
3771 shmem_show_mpol(seq, sbinfo->mpol);
3772 mpol = shmem_get_sbmpol(sbinfo);
3773 shmem_show_mpol(seq, mpol);
3774 mpol_put(mpol);
3772 if (sbinfo->noswap)
3773 seq_printf(seq, ",noswap");
3774 return 0;
3775}
3776
3777#endif /* CONFIG_TMPFS */
3778
3779static void shmem_put_super(struct super_block *sb)

--- 633 unchanged lines hidden ---
3775 if (sbinfo->noswap)
3776 seq_printf(seq, ",noswap");
3777 return 0;
3778}
3779
3780#endif /* CONFIG_TMPFS */
3781
3782static void shmem_put_super(struct super_block *sb)

--- 633 unchanged lines hidden ---