shmem.c (bde05d1ccd512696b09db9dd2e5f33ad19152605) | shmem.c (2f6e38f3cd17a7858112f538c1700c747170db1f) |
---|---|
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. --- 2359 unchanged lines hidden (view full) --- 2368 sbinfo->max_blocks = shmem_default_max_blocks(); 2369 sbinfo->max_inodes = shmem_default_max_inodes(); 2370 if (shmem_parse_options(data, sbinfo, false)) { 2371 err = -EINVAL; 2372 goto failed; 2373 } 2374 } 2375 sb->s_export_op = &shmem_export_ops; | 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. --- 2359 unchanged lines hidden (view full) --- 2368 sbinfo->max_blocks = shmem_default_max_blocks(); 2369 sbinfo->max_inodes = shmem_default_max_inodes(); 2370 if (shmem_parse_options(data, sbinfo, false)) { 2371 err = -EINVAL; 2372 goto failed; 2373 } 2374 } 2375 sb->s_export_op = &shmem_export_ops; |
2376 sb->s_flags |= MS_NOSEC; |
|
2376#else 2377 sb->s_flags |= MS_NOUSER; 2378#endif 2379 2380 spin_lock_init(&sbinfo->stat_lock); 2381 if (percpu_counter_init(&sbinfo->used_blocks, 0)) 2382 goto failed; 2383 sbinfo->free_inodes = sbinfo->max_inodes; --- 397 unchanged lines hidden --- | 2377#else 2378 sb->s_flags |= MS_NOUSER; 2379#endif 2380 2381 spin_lock_init(&sbinfo->stat_lock); 2382 if (percpu_counter_init(&sbinfo->used_blocks, 0)) 2383 goto failed; 2384 sbinfo->free_inodes = sbinfo->max_inodes; --- 397 unchanged lines hidden --- |