diff options
Diffstat (limited to 'fs/udf/symlink.c')
-rw-r--r-- | fs/udf/symlink.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/udf/symlink.c b/fs/udf/symlink.c index c4b82a920082..e6f933dd6a7b 100644 --- a/fs/udf/symlink.c +++ b/fs/udf/symlink.c | |||
@@ -11,7 +11,7 @@ | |||
11 | * Each contributing author retains all rights to their own work. | 11 | * Each contributing author retains all rights to their own work. |
12 | * | 12 | * |
13 | * (C) 1998-2001 Ben Fennema | 13 | * (C) 1998-2001 Ben Fennema |
14 | * (C) 1999 Stelias Computing Inc | 14 | * (C) 1999 Stelias Computing Inc |
15 | * | 15 | * |
16 | * HISTORY | 16 | * HISTORY |
17 | * | 17 | * |
@@ -33,8 +33,7 @@ | |||
33 | #include <linux/buffer_head.h> | 33 | #include <linux/buffer_head.h> |
34 | #include "udf_i.h" | 34 | #include "udf_i.h" |
35 | 35 | ||
36 | static void udf_pc_to_char(struct super_block *sb, char *from, int fromlen, | 36 | static void udf_pc_to_char(struct super_block *sb, char *from, int fromlen, char *to) |
37 | char *to) | ||
38 | { | 37 | { |
39 | struct pathComponent *pc; | 38 | struct pathComponent *pc; |
40 | int elen = 0; | 39 | int elen = 0; |
@@ -81,9 +80,9 @@ static int udf_symlink_filler(struct file *file, struct page *page) | |||
81 | char *p = kmap(page); | 80 | char *p = kmap(page); |
82 | 81 | ||
83 | lock_kernel(); | 82 | lock_kernel(); |
84 | if (UDF_I_ALLOCTYPE(inode) == ICBTAG_FLAG_AD_IN_ICB) | 83 | if (UDF_I_ALLOCTYPE(inode) == ICBTAG_FLAG_AD_IN_ICB) { |
85 | symlink = UDF_I_DATA(inode) + UDF_I_LENEATTR(inode); | 84 | symlink = UDF_I_DATA(inode) + UDF_I_LENEATTR(inode); |
86 | else { | 85 | } else { |
87 | bh = sb_bread(inode->i_sb, udf_block_map(inode, 0)); | 86 | bh = sb_bread(inode->i_sb, udf_block_map(inode, 0)); |
88 | 87 | ||
89 | if (!bh) | 88 | if (!bh) |
@@ -100,7 +99,8 @@ static int udf_symlink_filler(struct file *file, struct page *page) | |||
100 | kunmap(page); | 99 | kunmap(page); |
101 | unlock_page(page); | 100 | unlock_page(page); |
102 | return 0; | 101 | return 0; |
103 | out: | 102 | |
103 | out: | ||
104 | unlock_kernel(); | 104 | unlock_kernel(); |
105 | SetPageError(page); | 105 | SetPageError(page); |
106 | kunmap(page); | 106 | kunmap(page); |
@@ -112,5 +112,5 @@ static int udf_symlink_filler(struct file *file, struct page *page) | |||
112 | * symlinks can't do much... | 112 | * symlinks can't do much... |
113 | */ | 113 | */ |
114 | const struct address_space_operations udf_symlink_aops = { | 114 | const struct address_space_operations udf_symlink_aops = { |
115 | .readpage = udf_symlink_filler, | 115 | .readpage = udf_symlink_filler, |
116 | }; | 116 | }; |