summaryrefslogtreecommitdiff
path: root/fs/fat/inode.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-03-12 16:35:21 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-12 16:35:21 -0800
commit9d85929fefd040ca84a5e04ee704d043efcc3c2e (patch)
tree34cdd0f79f656962fe0aada6b603620a6afc294a /fs/fat/inode.c
parent6db823cf4b44f235b5e1da8ec1fe3c3cd63647fe (diff)
parenteeb5b4ae81f4a750355fa0c15f4fea22fdf83be1 (diff)
downloadlinux-3.10-9d85929fefd040ca84a5e04ee704d043efcc3c2e.tar.gz
linux-3.10-9d85929fefd040ca84a5e04ee704d043efcc3c2e.tar.bz2
linux-3.10-9d85929fefd040ca84a5e04ee704d043efcc3c2e.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/hirofumi/fatfs-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/hirofumi/fatfs-2.6: fat: Fix stat->f_namelen fat: Fix vfat_lookup()
Diffstat (limited to 'fs/fat/inode.c')
-rw-r--r--fs/fat/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index fbeecdc194d..0ce143bd7d5 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -558,7 +558,7 @@ static int fat_statfs(struct dentry *dentry, struct kstatfs *buf)
buf->f_bavail = sbi->free_clusters;
buf->f_fsid.val[0] = (u32)id;
buf->f_fsid.val[1] = (u32)(id >> 32);
- buf->f_namelen = sbi->options.isvfat ? 260 : 12;
+ buf->f_namelen = sbi->options.isvfat ? FAT_LFN_LEN : 12;
return 0;
}