diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2014-06-24 12:21:23 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-07-09 23:04:26 +0200 |
commit | eee6160f2e324f0f6a626159fa1120caad31a6be (patch) | |
tree | 6786524c015ee5ebac947baa4412a1bd92404895 /fs/f2fs/hash.c | |
parent | f2fs: remove the needless point-cast (diff) | |
download | linux-eee6160f2e324f0f6a626159fa1120caad31a6be.tar.xz linux-eee6160f2e324f0f6a626159fa1120caad31a6be.zip |
f2fs: arguments cleanup of finding file flow functions
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/hash.c')
-rw-r--r-- | fs/f2fs/hash.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/hash.c b/fs/f2fs/hash.c index 6eb8d269b53b..948d17bf7281 100644 --- a/fs/f2fs/hash.c +++ b/fs/f2fs/hash.c @@ -69,12 +69,14 @@ static void str2hashbuf(const char *msg, size_t len, unsigned int *buf, int num) *buf++ = pad; } -f2fs_hash_t f2fs_dentry_hash(const char *name, size_t len) +f2fs_hash_t f2fs_dentry_hash(const struct qstr *name_info) { __u32 hash; f2fs_hash_t f2fs_hash; const char *p; __u32 in[8], buf[4]; + const char *name = name_info->name; + size_t len = name_info->len; if ((len <= 2) && (name[0] == '.') && (name[1] == '.' || name[1] == '\0')) |