Advertisement
Guest User

Untitled

a guest
Sep 13th, 2011
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.14 KB | None | 0 0
  1. diff -ruw linux-2.6.32.27/fs/ramfs/internal.h linux-2.6.32.27-fbx/fs/ramfs/internal.h
  2. --- linux-2.6.32.27/fs/ramfs/internal.h 2010-12-09 22:29:45.000000000 +0100
  3. +++ linux-2.6.32.27-fbx/fs/ramfs/internal.h 2011-08-29 16:28:22.741758276 +0200
  4. @@ -9,6 +9,42 @@
  5.   * 2 of the License, or (at your option) any later version.
  6.   */
  7.  
  8. +#ifndef RAMFS_INTERNAL_H
  9. +# define RAMFS_INTERNALH
  10. +
  11. +/* need list_head */
  12. +#include <linux/list.h>
  13.  
  14.  extern const struct address_space_operations ramfs_aops;
  15.  extern const struct inode_operations ramfs_file_inode_operations;
  16. +
  17. +
  18. +struct ramfs_xattr
  19. +{
  20. +   char *name;
  21. +   void *data;
  22. +   size_t data_len;
  23. +
  24. +   struct list_head list;
  25. +};
  26. +
  27. +struct ramfs_inode_info
  28. +{
  29. +   struct inode vfs_inode;
  30. +#ifdef CONFIG_RAMFS_XATTR_USER
  31. +   struct list_head xattr_user_list;
  32. +#endif
  33. +};
  34. +
  35. +static inline struct ramfs_inode_info *RAMFS_I(struct inode *inode)
  36. +{
  37. +   return container_of(inode, struct ramfs_inode_info, vfs_inode);
  38. +}
  39. +
  40. +#ifdef CONFIG_RAMFS_XATTR
  41. +void ramfs_inode_purge_xattrs(struct ramfs_inode_info *rii);
  42. +extern struct xattr_handler *ramfs_xattr_handlers[];
  43. +#endif
  44. +
  45. +
  46. +#endif /* !RAMFS_INTERNAL_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement