Commit a1ff5878 authored by Miklos Szeredi's avatar Miklos Szeredi Committed by Linus Torvalds

UML: remove unnecessary hostfs_getattr()

Currently hostfs_getattr() just defines the default behavior.
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ad43c356
...@@ -872,13 +872,6 @@ int hostfs_setattr(struct dentry *dentry, struct iattr *attr) ...@@ -872,13 +872,6 @@ int hostfs_setattr(struct dentry *dentry, struct iattr *attr)
return inode_setattr(dentry->d_inode, 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 = { static const struct inode_operations hostfs_iops = {
.create = hostfs_create, .create = hostfs_create,
.link = hostfs_link, .link = hostfs_link,
...@@ -890,7 +883,6 @@ static const struct inode_operations hostfs_iops = { ...@@ -890,7 +883,6 @@ static const struct inode_operations hostfs_iops = {
.rename = hostfs_rename, .rename = hostfs_rename,
.permission = hostfs_permission, .permission = hostfs_permission,
.setattr = hostfs_setattr, .setattr = hostfs_setattr,
.getattr = hostfs_getattr,
}; };
static const struct inode_operations hostfs_dir_iops = { static const struct inode_operations hostfs_dir_iops = {
...@@ -905,7 +897,6 @@ static const struct inode_operations hostfs_dir_iops = { ...@@ -905,7 +897,6 @@ static const struct inode_operations hostfs_dir_iops = {
.rename = hostfs_rename, .rename = hostfs_rename,
.permission = hostfs_permission, .permission = hostfs_permission,
.setattr = hostfs_setattr, .setattr = hostfs_setattr,
.getattr = hostfs_getattr,
}; };
int hostfs_link_readpage(struct file *file, struct page *page) int hostfs_link_readpage(struct file *file, struct page *page)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment