From fed2aad6cc77474acc4b8260981bc9d842a833c7 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 31 Jan 2010 21:03:58 -0500 Subject: [PATCH] --- yaml --- r: 185720 b: refs/heads/master c: 072f98b4637eddcbdf2178fc84f382e2ee522f08 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/nilfs2/dir.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index bad7f28d9e4e..d657d18a0ac9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0319003d0d229735770c185ddf132c666e9cd01a +refs/heads/master: 072f98b4637eddcbdf2178fc84f382e2ee522f08 diff --git a/trunk/fs/nilfs2/dir.c b/trunk/fs/nilfs2/dir.c index 26402b9b305e..0092840492ee 100644 --- a/trunk/fs/nilfs2/dir.c +++ b/trunk/fs/nilfs2/dir.c @@ -224,7 +224,7 @@ static struct page *nilfs_get_page(struct inode *dir, unsigned long n) * len <= NILFS_NAME_LEN and de != NULL are guaranteed by caller. */ static int -nilfs_match(int len, const char * const name, struct nilfs_dir_entry *de) +nilfs_match(int len, const unsigned char *name, struct nilfs_dir_entry *de) { if (len != de->name_len) return 0; @@ -465,7 +465,7 @@ void nilfs_set_link(struct inode *dir, struct nilfs_dir_entry *de, int nilfs_add_link(struct dentry *dentry, struct inode *inode) { struct inode *dir = dentry->d_parent->d_inode; - const char *name = dentry->d_name.name; + const unsigned char *name = dentry->d_name.name; int namelen = dentry->d_name.len; unsigned chunk_size = nilfs_chunk_size(dir); unsigned reclen = NILFS_DIR_REC_LEN(namelen);