diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-07-23 05:20:10 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-07-23 05:20:10 -0400 |
commit | 39fe5434cb9de5da40510028b17b96bc4eb312b3 (patch) | |
tree | 7a02a317b9ad57da51ca99887c119e779ccf3f13 /fs/fat/inode.c | |
parent | 0fc72b81d3111d114ab378935b1cf07680ca1289 (diff) | |
parent | f695baf2df9e0413d3521661070103711545207a (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'fs/fat/inode.c')
-rw-r--r-- | fs/fat/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 479722d89667..4baa5f205368 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/pagemap.h> | 20 | #include <linux/pagemap.h> |
21 | #include <linux/mpage.h> | 21 | #include <linux/mpage.h> |
22 | #include <linux/buffer_head.h> | 22 | #include <linux/buffer_head.h> |
23 | #include <linux/exportfs.h> | ||
23 | #include <linux/mount.h> | 24 | #include <linux/mount.h> |
24 | #include <linux/vfs.h> | 25 | #include <linux/vfs.h> |
25 | #include <linux/parser.h> | 26 | #include <linux/parser.h> |
@@ -354,8 +355,7 @@ static int fat_fill_inode(struct inode *inode, struct msdos_dir_entry *de) | |||
354 | } else { /* not a directory */ | 355 | } else { /* not a directory */ |
355 | inode->i_generation |= 1; | 356 | inode->i_generation |= 1; |
356 | inode->i_mode = MSDOS_MKMODE(de->attr, | 357 | inode->i_mode = MSDOS_MKMODE(de->attr, |
357 | ((sbi->options.showexec && | 358 | ((sbi->options.showexec && !is_exec(de->name + 8)) |
358 | !is_exec(de->ext)) | ||
359 | ? S_IRUGO|S_IWUGO : S_IRWXUGO) | 359 | ? S_IRUGO|S_IWUGO : S_IRWXUGO) |
360 | & ~sbi->options.fs_fmask) | S_IFREG; | 360 | & ~sbi->options.fs_fmask) | S_IFREG; |
361 | MSDOS_I(inode)->i_start = le16_to_cpu(de->start); | 361 | MSDOS_I(inode)->i_start = le16_to_cpu(de->start); |
@@ -514,7 +514,7 @@ static int __init fat_init_inodecache(void) | |||
514 | sizeof(struct msdos_inode_info), | 514 | sizeof(struct msdos_inode_info), |
515 | 0, (SLAB_RECLAIM_ACCOUNT| | 515 | 0, (SLAB_RECLAIM_ACCOUNT| |
516 | SLAB_MEM_SPREAD), | 516 | SLAB_MEM_SPREAD), |
517 | init_once, NULL); | 517 | init_once); |
518 | if (fat_inode_cachep == NULL) | 518 | if (fat_inode_cachep == NULL) |
519 | return -ENOMEM; | 519 | return -ENOMEM; |
520 | return 0; | 520 | return 0; |