aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-02-08 07:20:28 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 12:22:34 -0500
commit74bedc4d56211b30686c6f2f574bf6c6a9654887 (patch)
treece9e18f9f52c76a05c8a7ec91510da6041cca7e1
parent9261303ab7589cda6a3b95f9f80c9063538dc335 (diff)
libfs: rename simple_attr_close to simple_attr_release
simple_attr_close implementes ->release so it should be named accordingly. Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: <stefano.brivio@polimi.it> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Greg KH <greg@kroah.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--arch/powerpc/platforms/cell/spufs/file.c2
-rw-r--r--fs/libfs.c4
-rw-r--r--include/linux/fs.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c
index 9326714717ca..e393144d533d 100644
--- a/arch/powerpc/platforms/cell/spufs/file.c
+++ b/arch/powerpc/platforms/cell/spufs/file.c
@@ -470,7 +470,7 @@ spufs_cntl_release(struct inode *inode, struct file *file)
470 struct spufs_inode_info *i = SPUFS_I(inode); 470 struct spufs_inode_info *i = SPUFS_I(inode);
471 struct spu_context *ctx = i->i_ctx; 471 struct spu_context *ctx = i->i_ctx;
472 472
473 simple_attr_close(inode, file); 473 simple_attr_release(inode, file);
474 474
475 mutex_lock(&ctx->mapping_lock); 475 mutex_lock(&ctx->mapping_lock);
476 if (!--i->i_openers) 476 if (!--i->i_openers)
diff --git a/fs/libfs.c b/fs/libfs.c
index d6de56a6e183..b004dfadd891 100644
--- a/fs/libfs.c
+++ b/fs/libfs.c
@@ -615,7 +615,7 @@ int simple_attr_open(struct inode *inode, struct file *file,
615 return nonseekable_open(inode, file); 615 return nonseekable_open(inode, file);
616} 616}
617 617
618int simple_attr_close(struct inode *inode, struct file *file) 618int simple_attr_release(struct inode *inode, struct file *file)
619{ 619{
620 kfree(file->private_data); 620 kfree(file->private_data);
621 return 0; 621 return 0;
@@ -804,6 +804,6 @@ EXPORT_SYMBOL(simple_transaction_get);
804EXPORT_SYMBOL(simple_transaction_read); 804EXPORT_SYMBOL(simple_transaction_read);
805EXPORT_SYMBOL(simple_transaction_release); 805EXPORT_SYMBOL(simple_transaction_release);
806EXPORT_SYMBOL_GPL(simple_attr_open); 806EXPORT_SYMBOL_GPL(simple_attr_open);
807EXPORT_SYMBOL_GPL(simple_attr_close); 807EXPORT_SYMBOL_GPL(simple_attr_release);
808EXPORT_SYMBOL_GPL(simple_attr_read); 808EXPORT_SYMBOL_GPL(simple_attr_read);
809EXPORT_SYMBOL_GPL(simple_attr_write); 809EXPORT_SYMBOL_GPL(simple_attr_write);
diff --git a/include/linux/fs.h b/include/linux/fs.h
index ebe996ac2589..1137a8828089 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2056,7 +2056,7 @@ static int __fops ## _open(struct inode *inode, struct file *file) \
2056static struct file_operations __fops = { \ 2056static struct file_operations __fops = { \
2057 .owner = THIS_MODULE, \ 2057 .owner = THIS_MODULE, \
2058 .open = __fops ## _open, \ 2058 .open = __fops ## _open, \
2059 .release = simple_attr_close, \ 2059 .release = simple_attr_release, \
2060 .read = simple_attr_read, \ 2060 .read = simple_attr_read, \
2061 .write = simple_attr_write, \ 2061 .write = simple_attr_write, \
2062}; 2062};
@@ -2070,7 +2070,7 @@ __simple_attr_check_format(const char *fmt, ...)
2070int simple_attr_open(struct inode *inode, struct file *file, 2070int simple_attr_open(struct inode *inode, struct file *file,
2071 int (*get)(void *, u64 *), int (*set)(void *, u64), 2071 int (*get)(void *, u64 *), int (*set)(void *, u64),
2072 const char *fmt); 2072 const char *fmt);
2073int simple_attr_close(struct inode *inode, struct file *file); 2073int simple_attr_release(struct inode *inode, struct file *file);
2074ssize_t simple_attr_read(struct file *file, char __user *buf, 2074ssize_t simple_attr_read(struct file *file, char __user *buf,
2075 size_t len, loff_t *ppos); 2075 size_t len, loff_t *ppos);
2076ssize_t simple_attr_write(struct file *file, const char __user *buf, 2076ssize_t simple_attr_write(struct file *file, const char __user *buf,