Skip to content

Commit

Permalink
UML: remove unnecessary hostfs_getattr()
Browse files Browse the repository at this point in the history
Currently hostfs_getattr() just defines the default behavior.

Signed-off-by: Miklos Szeredi <[email protected]>
Cc: Jeff Dike <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Oct 16, 2007
1 parent ad43c35 commit a1ff587
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions fs/hostfs/hostfs_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,13 +872,6 @@ int hostfs_setattr(struct dentry *dentry, struct iattr *attr)
return inode_setattr(dentry->d_inode, attr);
}

int hostfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
struct kstat *stat)
{
generic_fillattr(dentry->d_inode, stat);
return 0;
}

static const struct inode_operations hostfs_iops = {
.create = hostfs_create,
.link = hostfs_link,
Expand All @@ -890,7 +883,6 @@ static const struct inode_operations hostfs_iops = {
.rename = hostfs_rename,
.permission = hostfs_permission,
.setattr = hostfs_setattr,
.getattr = hostfs_getattr,
};

static const struct inode_operations hostfs_dir_iops = {
Expand All @@ -905,7 +897,6 @@ static const struct inode_operations hostfs_dir_iops = {
.rename = hostfs_rename,
.permission = hostfs_permission,
.setattr = hostfs_setattr,
.getattr = hostfs_getattr,
};

int hostfs_link_readpage(struct file *file, struct page *page)
Expand Down

0 comments on commit a1ff587

Please sign in to comment.