f2fs: make set_de_type() static
Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
5d1633aa10
commit
fcf37e16f3
2 changed files with 1 additions and 2 deletions
|
@ -60,7 +60,7 @@ static unsigned char f2fs_type_by_mode[S_IFMT >> S_SHIFT] = {
|
||||||
[S_IFLNK >> S_SHIFT] = F2FS_FT_SYMLINK,
|
[S_IFLNK >> S_SHIFT] = F2FS_FT_SYMLINK,
|
||||||
};
|
};
|
||||||
|
|
||||||
void set_de_type(struct f2fs_dir_entry *de, umode_t mode)
|
static void set_de_type(struct f2fs_dir_entry *de, umode_t mode)
|
||||||
{
|
{
|
||||||
de->file_type = f2fs_type_by_mode[(mode & S_IFMT) >> S_SHIFT];
|
de->file_type = f2fs_type_by_mode[(mode & S_IFMT) >> S_SHIFT];
|
||||||
}
|
}
|
||||||
|
|
|
@ -2798,7 +2798,6 @@ struct dentry *f2fs_get_parent(struct dentry *child);
|
||||||
/*
|
/*
|
||||||
* dir.c
|
* dir.c
|
||||||
*/
|
*/
|
||||||
void set_de_type(struct f2fs_dir_entry *de, umode_t mode);
|
|
||||||
unsigned char get_de_type(struct f2fs_dir_entry *de);
|
unsigned char get_de_type(struct f2fs_dir_entry *de);
|
||||||
struct f2fs_dir_entry *find_target_dentry(struct fscrypt_name *fname,
|
struct f2fs_dir_entry *find_target_dentry(struct fscrypt_name *fname,
|
||||||
f2fs_hash_t namehash, int *max_slots,
|
f2fs_hash_t namehash, int *max_slots,
|
||||||
|
|
Loading…
Add table
Reference in a new issue