aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2007-10-16 04:26:49 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:43:05 -0400
commita1ff5878d2628bbe1e42821c024c96f48318f683 (patch)
tree4198cc2f9707553c0cc47c0b9ee440128212c088 /fs
parentad43c3565bebada7e5a13288e37542fd940369e8 (diff)
UML: remove unnecessary hostfs_getattr()
Currently hostfs_getattr() just defines the default behavior. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/hostfs/hostfs_kern.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index 8a21289d774d..39b0cdcc94d0 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -872,13 +872,6 @@ int hostfs_setattr(struct dentry *dentry, struct iattr *attr)
872 return inode_setattr(dentry->d_inode, attr); 872 return inode_setattr(dentry->d_inode, attr);
873} 873}
874 874
875int hostfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
876 struct kstat *stat)
877{
878 generic_fillattr(dentry->d_inode, stat);
879 return 0;
880}
881
882static const struct inode_operations hostfs_iops = { 875static const struct inode_operations hostfs_iops = {
883 .create = hostfs_create, 876 .create = hostfs_create,
884 .link = hostfs_link, 877 .link = hostfs_link,
@@ -890,7 +883,6 @@ static const struct inode_operations hostfs_iops = {
890 .rename = hostfs_rename, 883 .rename = hostfs_rename,
891 .permission = hostfs_permission, 884 .permission = hostfs_permission,
892 .setattr = hostfs_setattr, 885 .setattr = hostfs_setattr,
893 .getattr = hostfs_getattr,
894}; 886};
895 887
896static const struct inode_operations hostfs_dir_iops = { 888static const struct inode_operations hostfs_dir_iops = {
@@ -905,7 +897,6 @@ static const struct inode_operations hostfs_dir_iops = {
905 .rename = hostfs_rename, 897 .rename = hostfs_rename,
906 .permission = hostfs_permission, 898 .permission = hostfs_permission,
907 .setattr = hostfs_setattr, 899 .setattr = hostfs_setattr,
908 .getattr = hostfs_getattr,
909}; 900};
910 901
911int hostfs_link_readpage(struct file *file, struct page *page) 902int hostfs_link_readpage(struct file *file, struct page *page)