diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2007-10-16 04:26:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:05 -0400 |
commit | a1ff5878d2628bbe1e42821c024c96f48318f683 (patch) | |
tree | 4198cc2f9707553c0cc47c0b9ee440128212c088 /fs/hostfs/hostfs_kern.c | |
parent | ad43c3565bebada7e5a13288e37542fd940369e8 (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/hostfs/hostfs_kern.c')
-rw-r--r-- | fs/hostfs/hostfs_kern.c | 9 |
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 | ||
875 | int 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 | |||
882 | static const struct inode_operations hostfs_iops = { | 875 | static 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 | ||
896 | static const struct inode_operations hostfs_dir_iops = { | 888 | static 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 | ||
911 | int hostfs_link_readpage(struct file *file, struct page *page) | 902 | int hostfs_link_readpage(struct file *file, struct page *page) |