summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/namei.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-03-03 13:58:05 +0900
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-03-18 21:00:35 +0900
commit5a20d339c785d98d8b050b9afc098e4184a6098c (patch)
tree444a543268e5bf03d42926da8db7f9c43ba5c4bd /fs/f2fs/namei.c
parent3aa770a9c9d077283b1aa07e8549a4fdc41fc5ed (diff)
downloadlinux-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.c2
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);