• Home
  • Raw
  • Download

Lines Matching refs:attr

88 	unsigned int attr = ADFS_I(inode)->attr;  in adfs_atts2mode()  local
92 if (attr & ADFS_NDA_DIRECTORY) { in adfs_atts2mode()
111 if (attr & ADFS_NDA_OWNER_READ) in adfs_atts2mode()
114 if (attr & ADFS_NDA_OWNER_WRITE) in adfs_atts2mode()
117 if (attr & ADFS_NDA_PUBLIC_READ) in adfs_atts2mode()
120 if (attr & ADFS_NDA_PUBLIC_WRITE) in adfs_atts2mode()
133 int attr; in adfs_mode2atts() local
138 return ADFS_I(inode)->attr; in adfs_mode2atts()
141 attr = ADFS_NDA_DIRECTORY; in adfs_mode2atts()
143 attr = 0; in adfs_mode2atts()
147 attr |= ADFS_NDA_OWNER_READ; in adfs_mode2atts()
149 attr |= ADFS_NDA_OWNER_WRITE; in adfs_mode2atts()
154 attr |= ADFS_NDA_PUBLIC_READ; in adfs_mode2atts()
156 attr |= ADFS_NDA_PUBLIC_WRITE; in adfs_mode2atts()
158 return attr; in adfs_mode2atts()
265 ADFS_I(inode)->attr = obj->attr; in adfs_iget()
294 adfs_notify_change(struct dentry *dentry, struct iattr *attr) in adfs_notify_change() argument
298 unsigned int ia_valid = attr->ia_valid; in adfs_notify_change()
301 error = setattr_prepare(dentry, attr); in adfs_notify_change()
307 if ((ia_valid & ATTR_UID && !uid_eq(attr->ia_uid, ADFS_SB(sb)->s_uid)) || in adfs_notify_change()
308 (ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, ADFS_SB(sb)->s_gid))) in adfs_notify_change()
316 truncate_setsize(inode, attr->ia_size); in adfs_notify_change()
319 inode->i_mtime = attr->ia_mtime; in adfs_notify_change()
320 adfs_unix2adfs_time(inode, attr->ia_mtime.tv_sec); in adfs_notify_change()
327 inode->i_atime = attr->ia_atime; in adfs_notify_change()
329 inode->i_ctime = attr->ia_ctime; in adfs_notify_change()
331 ADFS_I(inode)->attr = adfs_mode2atts(sb, inode); in adfs_notify_change()
361 obj.attr = ADFS_I(inode)->attr; in adfs_write_inode()