Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250927
b: refs/heads/master
c: b09e0fa
h: refs/heads/master
i:
  250925: b5af926
  250923: 86f4a95
  250919: 74cf520
  250911: 4520d5b
v: v3
  • Loading branch information
Eric Paris authored and Linus Torvalds committed May 25, 2011
1 parent 58d4ca4 commit 8d5c52a
Show file tree
Hide file tree
Showing 4 changed files with 291 additions and 57 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4eb317072be81bd93906f768679f745bc574e6b7
refs/heads/master: b09e0fa4b4ea66266058eead43350bd7d55fec67
18 changes: 17 additions & 1 deletion trunk/fs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,25 @@ config TMPFS

See <file:Documentation/filesystems/tmpfs.txt> for details.

config TMPFS_XATTR
bool "Tmpfs extended attributes"
depends on TMPFS
default n
help
Extended attributes are name:value pairs associated with inodes by
the kernel or by users (see the attr(5) manual page, or visit
<http://acl.bestbits.at/> for details).

Currently this enables support for the trusted.* and
security.* namespaces.

If unsure, say N.

You need this for POSIX ACL support on tmpfs.

config TMPFS_POSIX_ACL
bool "Tmpfs POSIX Access Control Lists"
depends on TMPFS
depends on TMPFS_XATTR
select GENERIC_ACL
help
POSIX Access Control Lists (ACLs) support permissions for users and
Expand Down
8 changes: 7 additions & 1 deletion trunk/include/linux/shmem_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

#define SHMEM_NR_DIRECT 16

#define SHMEM_SYMLINK_INLINE_LEN (SHMEM_NR_DIRECT * sizeof(swp_entry_t))

struct shmem_inode_info {
spinlock_t lock;
unsigned long flags;
Expand All @@ -17,8 +19,12 @@ struct shmem_inode_info {
unsigned long next_index; /* highest alloced index + 1 */
struct shared_policy policy; /* NUMA memory alloc policy */
struct page *i_indirect; /* top indirect blocks page */
swp_entry_t i_direct[SHMEM_NR_DIRECT]; /* first blocks */
union {
swp_entry_t i_direct[SHMEM_NR_DIRECT]; /* first blocks */
char inline_symlink[SHMEM_SYMLINK_INLINE_LEN];
};
struct list_head swaplist; /* chain of maybes on swap */
struct list_head xattr_list; /* list of shmem_xattr */
struct inode vfs_inode;
};

Expand Down
Loading

0 comments on commit 8d5c52a

Please sign in to comment.