diff options
author | Andrew Morton <akpm@osdl.org> | 2006-12-07 05:37:12 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 17:39:35 +0100 |
commit | 072330584404392dae44cd0793ac9b316cff045b (patch) | |
tree | cacd3b7c509b90db7bc4b47f2360c4d9e7bfd795 /fs/stat.c | |
parent | [PATCH] get_options to allow a hypenated range for isolcpus (diff) | |
download | linux-072330584404392dae44cd0793ac9b316cff045b.tar.xz linux-072330584404392dae44cd0793ac9b316cff045b.zip |
[PATCH] vfs_getattr(): remove dead code
As Mikulas points out, (1 << anything) won't be evaluating to zero. This code
is long-dead.
Cc: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/stat.c')
-rw-r--r-- | fs/stat.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/stat.c b/fs/stat.c index bca07eb2003c..a0ebfc7f8a64 100644 --- a/fs/stat.c +++ b/fs/stat.c @@ -51,13 +51,6 @@ int vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) return inode->i_op->getattr(mnt, dentry, stat); generic_fillattr(inode, stat); - if (!stat->blksize) { - struct super_block *s = inode->i_sb; - unsigned blocks; - blocks = (stat->size+s->s_blocksize-1) >> s->s_blocksize_bits; - stat->blocks = (s->s_blocksize / 512) * blocks; - stat->blksize = s->s_blocksize; - } return 0; } |