diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-03-03 13:58:05 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-03-18 21:00:35 +0900 |
commit | 5a20d339c785d98d8b050b9afc098e4184a6098c (patch) | |
tree | 444a543268e5bf03d42926da8db7f9c43ba5c4bd /fs/f2fs/namei.c | |
parent | 3aa770a9c9d077283b1aa07e8549a4fdc41fc5ed (diff) | |
download | linux-stable-5a20d339c785d98d8b050b9afc098e4184a6098c.tar.gz linux-stable-5a20d339c785d98d8b050b9afc098e4184a6098c.tar.bz2 linux-stable-5a20d339c785d98d8b050b9afc098e4184a6098c.zip |
f2fs: align f2fs maximum name length to linux based filesystem
The maximum filename length supported in linux is 255 characters.
So let's follow that.
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/namei.c')
-rw-r--r-- | fs/f2fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 1a49b881bac0..d4a171b1a68b 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -197,7 +197,7 @@ static struct dentry *f2fs_lookup(struct inode *dir, struct dentry *dentry, struct f2fs_dir_entry *de; struct page *page; - if (dentry->d_name.len > F2FS_MAX_NAME_LEN) + if (dentry->d_name.len > F2FS_NAME_LEN) return ERR_PTR(-ENAMETOOLONG); de = f2fs_find_entry(dir, &dentry->d_name, &page); |