diff options
Diffstat (limited to 'fs/squashfs/symlink.c')
-rw-r--r-- | fs/squashfs/symlink.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/squashfs/symlink.c b/fs/squashfs/symlink.c index 32b911f4ee39..ec86434921e1 100644 --- a/fs/squashfs/symlink.c +++ b/fs/squashfs/symlink.c | |||
@@ -35,11 +35,13 @@ | |||
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" |
41 | #include "squashfs_fs_i.h" | 42 | #include "squashfs_fs_i.h" |
42 | #include "squashfs.h" | 43 | #include "squashfs.h" |
44 | #include "xattr.h" | ||
43 | 45 | ||
44 | static int squashfs_symlink_readpage(struct file *file, struct page *page) | 46 | static int squashfs_symlink_readpage(struct file *file, struct page *page) |
45 | { | 47 | { |
@@ -114,3 +116,12 @@ error_out: | |||
114 | const struct address_space_operations squashfs_symlink_aops = { | 116 | const struct address_space_operations squashfs_symlink_aops = { |
115 | .readpage = squashfs_symlink_readpage | 117 | .readpage = squashfs_symlink_readpage |
116 | }; | 118 | }; |
119 | |||
120 | const struct inode_operations squashfs_symlink_inode_ops = { | ||
121 | .readlink = generic_readlink, | ||
122 | .follow_link = page_follow_link_light, | ||
123 | .put_link = page_put_link, | ||
124 | .getxattr = generic_getxattr, | ||
125 | .listxattr = squashfs_listxattr | ||
126 | }; | ||
127 | |||