Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207516
b: refs/heads/master
c: d39aae9
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Al Viro committed Aug 9, 2010
1 parent 8b540d0 commit 2d41134
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 155130a4f7848b1aac439cab6bda1a175507c71c
refs/heads/master: d39aae9ec447dda84d9a2850743a78a535a71c90
12 changes: 12 additions & 0 deletions trunk/fs/hfsplus/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,21 @@ static int hfsplus_file_release(struct inode *inode, struct file *file)
return 0;
}

static int hfsplus_setattr(struct dentry *dentry, struct iattr *attr)
{
struct inode *inode = dentry->d_inode;
int error;

error = inode_change_ok(inode, attr);
if (error)
return error;
return inode_setattr(inode, attr);
}

static const struct inode_operations hfsplus_file_inode_operations = {
.lookup = hfsplus_file_lookup,
.truncate = hfsplus_file_truncate,
.setattr = hfsplus_setattr,
.setxattr = hfsplus_setxattr,
.getxattr = hfsplus_getxattr,
.listxattr = hfsplus_listxattr,
Expand Down
12 changes: 12 additions & 0 deletions trunk/fs/minix/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,19 @@ const struct file_operations minix_file_operations = {
.splice_read = generic_file_splice_read,
};

static int minix_setattr(struct dentry *dentry, struct iattr *attr)
{
struct inode *inode = dentry->d_inode;
int error;

error = inode_change_ok(inode, attr);
if (error)
return error;
return inode_setattr(inode, attr);
}

const struct inode_operations minix_file_inode_operations = {
.truncate = minix_truncate,
.setattr = minix_setattr,
.getattr = minix_getattr,
};
12 changes: 12 additions & 0 deletions trunk/fs/omfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,19 @@ const struct file_operations omfs_file_operations = {
.splice_read = generic_file_splice_read,
};

static int omfs_setattr(struct dentry *dentry, struct iattr *attr)
{
struct inode *inode = dentry->d_inode;
int error;

error = inode_change_ok(inode, attr);
if (error)
return error;
return inode_setattr(inode, attr);
}

const struct inode_operations omfs_file_inops = {
.setattr = omfs_setattr,
.truncate = omfs_truncate
};

Expand Down
12 changes: 12 additions & 0 deletions trunk/fs/sysv/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,19 @@ const struct file_operations sysv_file_operations = {
.splice_read = generic_file_splice_read,
};

static int sysv_setattr(struct dentry *dentry, struct iattr *attr)
{
struct inode *inode = dentry->d_inode;
int error;

error = inode_change_ok(inode, attr);
if (error)
return error;
return inode_setattr(inode, attr);
}

const struct inode_operations sysv_file_inode_operations = {
.truncate = sysv_truncate,
.setattr = sysv_setattr,
.getattr = sysv_getattr,
};
12 changes: 12 additions & 0 deletions trunk/fs/udf/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,18 @@ const struct file_operations udf_file_operations = {
.llseek = generic_file_llseek,
};

static int udf_setattr(struct dentry *dentry, struct iattr *attr)
{
struct inode *inode = dentry->d_inode;
int error;

error = inode_change_ok(inode, attr);
if (error)
return error;
return inode_setattr(inode, attr);
}

const struct inode_operations udf_file_inode_operations = {
.setattr = udf_setattr,
.truncate = udf_truncate,
};

0 comments on commit 2d41134

Please sign in to comment.