Lines Matching refs:attr

107 	unsigned int filetype, attr = inode->u.adfs_i.attr;  in adfs_atts2mode()  local
110 if (attr & ADFS_NDA_DIRECTORY) { in adfs_atts2mode()
131 if (attr & ADFS_NDA_OWNER_READ) in adfs_atts2mode()
134 if (attr & ADFS_NDA_OWNER_WRITE) in adfs_atts2mode()
137 if (attr & ADFS_NDA_PUBLIC_READ) in adfs_atts2mode()
140 if (attr & ADFS_NDA_PUBLIC_WRITE) in adfs_atts2mode()
153 int attr; in adfs_mode2atts() local
157 return inode->u.adfs_i.attr; in adfs_mode2atts()
160 attr = ADFS_NDA_DIRECTORY; in adfs_mode2atts()
162 attr = 0; in adfs_mode2atts()
166 attr |= ADFS_NDA_OWNER_READ; in adfs_mode2atts()
168 attr |= ADFS_NDA_OWNER_WRITE; in adfs_mode2atts()
173 attr |= ADFS_NDA_PUBLIC_READ; in adfs_mode2atts()
175 attr |= ADFS_NDA_PUBLIC_WRITE; in adfs_mode2atts()
177 return attr; in adfs_mode2atts()
273 inode->u.adfs_i.attr = obj->attr; in adfs_iget()
303 adfs_notify_change(struct dentry *dentry, struct iattr *attr) in adfs_notify_change() argument
307 unsigned int ia_valid = attr->ia_valid; in adfs_notify_change()
310 error = inode_change_ok(inode, attr); in adfs_notify_change()
316 if ((ia_valid & ATTR_UID && attr->ia_uid != sb->u.adfs_sb.s_uid) || in adfs_notify_change()
317 (ia_valid & ATTR_GID && attr->ia_gid != sb->u.adfs_sb.s_gid)) in adfs_notify_change()
324 error = vmtruncate(inode, attr->ia_size); in adfs_notify_change()
330 inode->i_mtime = attr->ia_mtime; in adfs_notify_change()
331 adfs_unix2adfs_time(inode, attr->ia_mtime); in adfs_notify_change()
338 inode->i_atime = attr->ia_atime; in adfs_notify_change()
340 inode->i_ctime = attr->ia_ctime; in adfs_notify_change()
342 inode->u.adfs_i.attr = adfs_mode2atts(sb, inode); in adfs_notify_change()
372 obj.attr = inode->u.adfs_i.attr; in adfs_write_inode()