Lines Matching refs:attr
117 fattr->attr = inode->u.smbfs_i.attr; in smb_get_inode_attr()
122 fattr->attr &= ~aRONLY; in smb_get_inode_attr()
124 fattr->attr |= aRONLY; in smb_get_inode_attr()
152 inode->u.smbfs_i.attr = fattr->attr; in smb_set_inode_attr()
583 smb_notify_change(struct dentry *dentry, struct iattr *attr) in smb_notify_change() argument
595 if ((error = inode_change_ok(inode, attr)) < 0) in smb_notify_change()
599 if ((attr->ia_valid & ATTR_UID) && (attr->ia_uid != server->mnt->uid)) in smb_notify_change()
602 if ((attr->ia_valid & ATTR_GID) && (attr->ia_uid != server->mnt->gid)) in smb_notify_change()
605 if ((attr->ia_valid & ATTR_MODE) && (attr->ia_mode & ~mask)) in smb_notify_change()
608 if ((attr->ia_valid & ATTR_SIZE) != 0) { in smb_notify_change()
611 (long) inode->i_size, (long) attr->ia_size); in smb_notify_change()
619 error = server->ops->truncate(inode, attr->ia_size); in smb_notify_change()
622 error = vmtruncate(inode, attr->ia_size); in smb_notify_change()
630 attr->ia_valid &= ~ATTR_SIZE; in smb_notify_change()
632 error = smb_proc_setattr_unix(dentry, attr, 0, 0); in smb_notify_change()
646 if ((attr->ia_valid & ATTR_MTIME) != 0) { in smb_notify_change()
647 fattr.f_mtime = attr->ia_mtime; in smb_notify_change()
650 if ((attr->ia_valid & ATTR_ATIME) != 0) { in smb_notify_change()
651 fattr.f_atime = attr->ia_atime; in smb_notify_change()
667 if ((attr->ia_valid & ATTR_MODE) != 0) { in smb_notify_change()
669 DENTRY_PATH(dentry), fattr.f_mode, attr->ia_mode); in smb_notify_change()
671 if (attr->ia_mode & S_IWUSR) { in smb_notify_change()
672 if (fattr.attr & aRONLY) { in smb_notify_change()
673 fattr.attr &= ~aRONLY; in smb_notify_change()
677 if (!(fattr.attr & aRONLY)) { in smb_notify_change()
678 fattr.attr |= aRONLY; in smb_notify_change()