summaryrefslogtreecommitdiffstats
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)
downloadop-kernel-dev-9d85929fefd040ca84a5e04ee704d043efcc3c2e.zip
op-kernel-dev-9d85929fefd040ca84a5e04ee704d043efcc3c2e.tar.gz
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 fbeecdc..0ce143b 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;
}
OpenPOWER on IntegriCloud