8 #include <linux/export.h>
9 #include <linux/time.h>
11 #include <linux/string.h>
12 #include <linux/capability.h>
14 #include <linux/fcntl.h>
33 unsigned int ia_valid = attr->
ia_valid;
99 if (inode->
i_size < offset) {
105 if (offset > inode->
i_sb->s_maxbytes)
142 unsigned int ia_valid = attr->
ia_valid;
150 inode->
i_sb->s_time_gran);
153 inode->
i_sb->s_time_gran);
156 inode->
i_sb->s_time_gran);
173 unsigned int ia_valid = attr->
ia_valid;
184 inode_inc_iversion(inode);
203 ia_valid &= ~ATTR_KILL_PRIV;
219 (ia_valid & ATTR_MODE))
230 if (!(ia_valid & ATTR_MODE)) {
237 if (!(attr->
ia_valid & ~(ATTR_KILL_SUID | ATTR_KILL_SGID)))
244 if (inode->
i_op->setattr)
245 error = inode->
i_op->setattr(dentry, attr);
250 fsnotify_change(dentry, ia_valid);