diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-05-29 18:20:40 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-05-31 20:31:53 +0200 |
commit | 2e79d951ffbd57cd7f2d0aae715b9435ba8e7d8a (patch) | |
tree | 1964296344621a65a1fbafa77b2134f00de69301 | |
parent | f2fs: make __f2fs_write_data_pages() static (diff) | |
download | linux-2e79d951ffbd57cd7f2d0aae715b9435ba8e7d8a.tar.xz linux-2e79d951ffbd57cd7f2d0aae715b9435ba8e7d8a.zip |
f2fs: make set_de_type() static
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | fs/f2fs/dir.c | 2 | ||||
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index e20539ba0554..5b6996129e29 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -60,7 +60,7 @@ static unsigned char f2fs_type_by_mode[S_IFMT >> S_SHIFT] = { [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]; } diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 7af0b7253e0f..ac88d04c2f51 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -2714,7 +2714,6 @@ struct dentry *f2fs_get_parent(struct dentry *child); /* * dir.c */ -void set_de_type(struct f2fs_dir_entry *de, umode_t mode); unsigned char get_de_type(struct f2fs_dir_entry *de); struct f2fs_dir_entry *find_target_dentry(struct fscrypt_name *fname, f2fs_hash_t namehash, int *max_slots, |