aboutsummaryrefslogtreecommitdiffstats
path: root/fs/minix/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/minix/file.c')
-rw-r--r--fs/minix/file.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/minix/file.c b/fs/minix/file.c
index d5320ff23faf..7a45dd1fe2e5 100644
--- a/fs/minix/file.c
+++ b/fs/minix/file.c
@@ -23,7 +23,19 @@ const struct file_operations minix_file_operations = {
23 .splice_read = generic_file_splice_read, 23 .splice_read = generic_file_splice_read,
24}; 24};
25 25
26static int minix_setattr(struct dentry *dentry, struct iattr *attr)
27{
28 struct inode *inode = dentry->d_inode;
29 int error;
30
31 error = inode_change_ok(inode, attr);
32 if (error)
33 return error;
34 return inode_setattr(inode, attr);
35}
36
26const struct inode_operations minix_file_inode_operations = { 37const struct inode_operations minix_file_inode_operations = {
27 .truncate = minix_truncate, 38 .truncate = minix_truncate,
39 .setattr = minix_setattr,
28 .getattr = minix_getattr, 40 .getattr = minix_getattr,
29}; 41};