mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[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>
This commit is contained in:
parent
22f2e28017
commit
0723305844
1 changed files with 0 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue