Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84728
b: refs/heads/master
c: 74bedc4
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Linus Torvalds committed Feb 8, 2008
1 parent 80edf80 commit 679c738
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9261303ab7589cda6a3b95f9f80c9063538dc335
refs/heads/master: 74bedc4d56211b30686c6f2f574bf6c6a9654887
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/cell/spufs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ spufs_cntl_release(struct inode *inode, struct file *file)
struct spufs_inode_info *i = SPUFS_I(inode);
struct spu_context *ctx = i->i_ctx;

simple_attr_close(inode, file);
simple_attr_release(inode, file);

mutex_lock(&ctx->mapping_lock);
if (!--i->i_openers)
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/libfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ int simple_attr_open(struct inode *inode, struct file *file,
return nonseekable_open(inode, file);
}

int simple_attr_close(struct inode *inode, struct file *file)
int simple_attr_release(struct inode *inode, struct file *file)
{
kfree(file->private_data);
return 0;
Expand Down Expand Up @@ -804,6 +804,6 @@ EXPORT_SYMBOL(simple_transaction_get);
EXPORT_SYMBOL(simple_transaction_read);
EXPORT_SYMBOL(simple_transaction_release);
EXPORT_SYMBOL_GPL(simple_attr_open);
EXPORT_SYMBOL_GPL(simple_attr_close);
EXPORT_SYMBOL_GPL(simple_attr_release);
EXPORT_SYMBOL_GPL(simple_attr_read);
EXPORT_SYMBOL_GPL(simple_attr_write);
4 changes: 2 additions & 2 deletions trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,7 @@ static int __fops ## _open(struct inode *inode, struct file *file) \
static struct file_operations __fops = { \
.owner = THIS_MODULE, \
.open = __fops ## _open, \
.release = simple_attr_close, \
.release = simple_attr_release, \
.read = simple_attr_read, \
.write = simple_attr_write, \
};
Expand All @@ -2070,7 +2070,7 @@ __simple_attr_check_format(const char *fmt, ...)
int simple_attr_open(struct inode *inode, struct file *file,
int (*get)(void *, u64 *), int (*set)(void *, u64),
const char *fmt);
int simple_attr_close(struct inode *inode, struct file *file);
int simple_attr_release(struct inode *inode, struct file *file);
ssize_t simple_attr_read(struct file *file, char __user *buf,
size_t len, loff_t *ppos);
ssize_t simple_attr_write(struct file *file, const char __user *buf,
Expand Down

0 comments on commit 679c738

Please sign in to comment.