2007-08-09 09:30:55

by Miklos Szeredi

[permalink] [raw]
Subject: [patch 8/9] UML: remove unnecessary hostfs_getattr()

From: Miklos Szeredi <[email protected]>

Currently hostfs_getattr() just defines the default behavior.

Signed-off-by: Miklos Szeredi <[email protected]>
---

Index: linux/fs/hostfs/hostfs_kern.c
===================================================================
--- linux.orig/fs/hostfs/hostfs_kern.c 2007-08-09 11:01:55.000000000 +0200
+++ linux/fs/hostfs/hostfs_kern.c 2007-08-09 11:04:35.000000000 +0200
@@ -874,13 +874,6 @@ int hostfs_setattr(struct dentry *dentry
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,
@@ -892,7 +885,6 @@ static const struct inode_operations hos
.rename = hostfs_rename,
.permission = hostfs_permission,
.setattr = hostfs_setattr,
- .getattr = hostfs_getattr,
};

static const struct inode_operations hostfs_dir_iops = {
@@ -907,7 +899,6 @@ static const struct inode_operations hos
.rename = hostfs_rename,
.permission = hostfs_permission,
.setattr = hostfs_setattr,
- .getattr = hostfs_getattr,
};

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

--