diff options
author | Steve French <sfrench@us.ibm.com> | 2006-03-30 22:35:56 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-03-30 22:35:56 -0500 |
commit | d62e54abca1146981fc9f98f85ff398a113a22c2 (patch) | |
tree | 870420dbc4c65e716dcef8a802aafdc0ef97a8b4 /fs/isofs | |
parent | fd4a0b92db6a57cba8d03efbe1cebf91f9124ce0 (diff) | |
parent | ce362c009250340358a7221f3cdb7954cbf19c01 (diff) |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/isofs')
-rw-r--r-- | fs/isofs/dir.c | 2 | ||||
-rw-r--r-- | fs/isofs/inode.c | 3 | ||||
-rw-r--r-- | fs/isofs/isofs.h | 14 | ||||
-rw-r--r-- | fs/isofs/joliet.c | 2 |
4 files changed, 5 insertions, 16 deletions
diff --git a/fs/isofs/dir.c b/fs/isofs/dir.c index 7901ac9f97ab..5440ea292c69 100644 --- a/fs/isofs/dir.c +++ b/fs/isofs/dir.c | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | static int isofs_readdir(struct file *, void *, filldir_t); | 17 | static int isofs_readdir(struct file *, void *, filldir_t); |
18 | 18 | ||
19 | struct file_operations isofs_dir_operations = | 19 | const struct file_operations isofs_dir_operations = |
20 | { | 20 | { |
21 | .read = generic_read_dir, | 21 | .read = generic_read_dir, |
22 | .readdir = isofs_readdir, | 22 | .readdir = isofs_readdir, |
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index 298f08be22d4..70adbb98bad1 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c | |||
@@ -87,7 +87,8 @@ static int init_inodecache(void) | |||
87 | { | 87 | { |
88 | isofs_inode_cachep = kmem_cache_create("isofs_inode_cache", | 88 | isofs_inode_cachep = kmem_cache_create("isofs_inode_cache", |
89 | sizeof(struct iso_inode_info), | 89 | sizeof(struct iso_inode_info), |
90 | 0, SLAB_RECLAIM_ACCOUNT, | 90 | 0, (SLAB_RECLAIM_ACCOUNT| |
91 | SLAB_MEM_SPREAD), | ||
91 | init_once, NULL); | 92 | init_once, NULL); |
92 | if (isofs_inode_cachep == NULL) | 93 | if (isofs_inode_cachep == NULL) |
93 | return -ENOMEM; | 94 | return -ENOMEM; |
diff --git a/fs/isofs/isofs.h b/fs/isofs/isofs.h index 38c75151fc66..b87ba066f5e7 100644 --- a/fs/isofs/isofs.h +++ b/fs/isofs/isofs.h | |||
@@ -175,18 +175,6 @@ isofs_normalize_block_and_offset(struct iso_directory_record* de, | |||
175 | } | 175 | } |
176 | 176 | ||
177 | extern struct inode_operations isofs_dir_inode_operations; | 177 | extern struct inode_operations isofs_dir_inode_operations; |
178 | extern struct file_operations isofs_dir_operations; | 178 | extern const struct file_operations isofs_dir_operations; |
179 | extern struct address_space_operations isofs_symlink_aops; | 179 | extern struct address_space_operations isofs_symlink_aops; |
180 | extern struct export_operations isofs_export_ops; | 180 | extern struct export_operations isofs_export_ops; |
181 | |||
182 | /* The following macros are used to check for memory leaks. */ | ||
183 | #ifdef LEAK_CHECK | ||
184 | #define free_s leak_check_free_s | ||
185 | #define malloc leak_check_malloc | ||
186 | #define sb_bread leak_check_bread | ||
187 | #define brelse leak_check_brelse | ||
188 | extern void * leak_check_malloc(unsigned int size); | ||
189 | extern void leak_check_free_s(void * obj, int size); | ||
190 | extern struct buffer_head * leak_check_bread(struct super_block *sb, int block); | ||
191 | extern void leak_check_brelse(struct buffer_head * bh); | ||
192 | #endif /* LEAK_CHECK */ | ||
diff --git a/fs/isofs/joliet.c b/fs/isofs/joliet.c index 2931de7f1a6a..81a90e170ac3 100644 --- a/fs/isofs/joliet.c +++ b/fs/isofs/joliet.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include "isofs.h" | 11 | #include "isofs.h" |
12 | 12 | ||
13 | /* | 13 | /* |
14 | * Convert Unicode 16 to UTF8 or ASCII. | 14 | * Convert Unicode 16 to UTF-8 or ASCII. |
15 | */ | 15 | */ |
16 | static int | 16 | static int |
17 | uni16_to_x8(unsigned char *ascii, u16 *uni, int len, struct nls_table *nls) | 17 | uni16_to_x8(unsigned char *ascii, u16 *uni, int len, struct nls_table *nls) |