summaryrefslogtreecommitdiffstats
path: root/fs/fat/inode.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-03-13 01:35:21 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-13 01:35:21 +0100
commit9d85929fefd040ca84a5e04ee704d043efcc3c2e (patch)
tree34cdd0f79f656962fe0aada6b603620a6afc294a /fs/fat/inode.c
parentFix up .gitignore for top-level file patterns (diff)
parentfat: Fix stat->f_namelen (diff)
downloadlinux-9d85929fefd040ca84a5e04ee704d043efcc3c2e.tar.xz
linux-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 fbeecdc194dc..0ce143bd7d56 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;
}