aboutsummaryrefslogtreecommitdiffstats
path: root/fs/squashfs/symlink.c
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@lougher.demon.co.uk>2010-05-16 23:06:56 -0400
committerPhillip Lougher <phillip@lougher.demon.co.uk>2010-05-17 14:54:06 -0400
commit67f66cc6c728de183d9d43c243cb163c1ebd8e04 (patch)
treebd175ed5f66594ad76d099461560c3fe8a01181c /fs/squashfs/symlink.c
parentf41d207cbedecd82f797adcce83890aa96f1c9e9 (diff)
squashfs: add new extended inode types
Add new extended inode types that store the xattr_id field. Also add the necessary code changes to make xattrs visibile. Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
Diffstat (limited to 'fs/squashfs/symlink.c')
-rw-r--r--fs/squashfs/symlink.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/squashfs/symlink.c b/fs/squashfs/symlink.c
index 32b911f4ee39..a7ee68a8621b 100644
--- a/fs/squashfs/symlink.c
+++ b/fs/squashfs/symlink.c
@@ -35,6 +35,7 @@
35#include <linux/kernel.h> 35#include <linux/kernel.h>
36#include <linux/string.h> 36#include <linux/string.h>
37#include <linux/pagemap.h> 37#include <linux/pagemap.h>
38#include <linux/xattr.h>
38 39
39#include "squashfs_fs.h" 40#include "squashfs_fs.h"
40#include "squashfs_fs_sb.h" 41#include "squashfs_fs_sb.h"
@@ -114,3 +115,12 @@ error_out:
114const struct address_space_operations squashfs_symlink_aops = { 115const struct address_space_operations squashfs_symlink_aops = {
115 .readpage = squashfs_symlink_readpage 116 .readpage = squashfs_symlink_readpage
116}; 117};
118
119const struct inode_operations squashfs_symlink_inode_ops = {
120 .readlink = generic_readlink,
121 .follow_link = page_follow_link_light,
122 .put_link = page_put_link,
123 .getxattr = generic_getxattr,
124 .listxattr = squashfs_listxattr
125};
126