rename generic_setattr

Despite its name it's now a generic implementation of ->setattr, but
rather a helper to copy attributes from a struct iattr to the inode.
Rename it to setattr_copy to reflect this fact.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
这个提交包含在:
Christoph Hellwig
2010-06-04 11:30:00 +02:00
提交者 Al Viro
父节点 d39aae9ec4
当前提交 6a1a90ad1b
修改 8 个文件,包含 14 行新增15 行删除

查看文件

@@ -122,7 +122,7 @@ int sysfs_setattr(struct dentry *dentry, struct iattr *iattr)
goto out;
/* this ignores size changes */
generic_setattr(inode, iattr);
setattr_copy(inode, iattr);
out:
mutex_unlock(&sysfs_mutex);