/fs/minix/ |
H A D | file.c | 26 static int minix_setattr(struct dentry *dentry, struct iattr *attr) argument 31 error = inode_change_ok(inode, attr); 35 if ((attr->ia_valid & ATTR_SIZE) && 36 attr->ia_size != i_size_read(inode)) { 37 error = inode_newsize_ok(inode, attr->ia_size); 41 truncate_setsize(inode, attr->ia_size); 45 setattr_copy(inode, attr);
|
/fs/sysv/ |
H A D | file.c | 33 static int sysv_setattr(struct dentry *dentry, struct iattr *attr) argument 38 error = inode_change_ok(inode, attr); 42 if ((attr->ia_valid & ATTR_SIZE) && 43 attr->ia_size != i_size_read(inode)) { 44 error = inode_newsize_ok(inode, attr->ia_size); 47 truncate_setsize(inode, attr->ia_size); 51 setattr_copy(inode, attr);
|
/fs/ |
H A D | attr.c | 2 * linux/fs/attr.c 22 * @attr: attributes to change 24 * Check if we are allowed to change the attributes contained in @attr 31 int inode_change_ok(const struct inode *inode, struct iattr *attr) argument 33 unsigned int ia_valid = attr->ia_valid; 40 int error = inode_newsize_ok(inode, attr->ia_size); 52 !uid_eq(attr->ia_uid, inode->i_uid)) && 59 (!in_group_p(attr->ia_gid) && !gid_eq(attr->ia_gid, inode->i_gid))) && 68 if (!in_group_p((ia_valid & ATTR_GID) ? attr 142 setattr_copy(struct inode *inode, const struct iattr *attr) argument 190 notify_change(struct dentry * dentry, struct iattr * attr, struct inode **delegated_inode) argument [all...] |
/fs/coda/ |
H A D | coda_linux.c | 76 void coda_vattr_to_iattr(struct inode *inode, struct coda_vattr *attr) argument 82 switch (attr->va_type) { 100 if (attr->va_mode != (u_short) -1) 101 inode->i_mode = attr->va_mode | inode_type; 102 if (attr->va_uid != -1) 103 inode->i_uid = make_kuid(&init_user_ns, (uid_t) attr->va_uid); 104 if (attr->va_gid != -1) 105 inode->i_gid = make_kgid(&init_user_ns, (gid_t) attr->va_gid); 106 if (attr->va_nlink != -1) 107 set_nlink(inode, attr [all...] |
H A D | cnode.c | 26 static void coda_fill_inode(struct inode *inode, struct coda_vattr *attr) argument 28 coda_vattr_to_iattr(inode, attr); 41 init_special_inode(inode, inode->i_mode, huge_decode_dev(attr->va_rdev)); 60 struct coda_vattr * attr) 81 coda_fill_inode(inode, attr); 93 struct coda_vattr attr; local 98 error = venus_getattr(sb, fid, &attr); 102 inode = coda_iget(sb, fid, &attr); 59 coda_iget(struct super_block * sb, struct CodaFid * fid, struct coda_vattr * attr) argument
|
/fs/sysfs/ |
H A D | group.c | 24 struct attribute *const *attr; local 28 for (attr = grp->attrs; *attr; attr++) 29 kernfs_remove_by_name(parent, (*attr)->name); 32 kernfs_remove_by_name(parent, (*bin_attr)->attr.name); 38 struct attribute *const *attr; local 43 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr 269 struct attribute *const *attr; local 297 struct attribute *const *attr; local [all...] |
H A D | sysfs.h | 32 const struct attribute *attr, bool is_bin); 34 const struct attribute *attr, bool is_bin,
|
H A D | file.c | 149 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr) argument 158 if (kn && attr) { 159 tmp = kernfs_find_and_get(kn, attr); 207 const struct attribute *attr, bool is_bin, 236 struct bin_attribute *battr = (void *)attr; 253 if (!attr->ignore_lockdep) 254 key = attr->key ?: (struct lock_class_key *)&attr->skey; 256 kn = __kernfs_create_file(parent, attr->name, mode, size, ops, 257 (void *)attr, n 206 sysfs_add_file_mode_ns(struct kernfs_node *parent, const struct attribute *attr, bool is_bin, umode_t mode, const void *ns) argument 266 sysfs_add_file(struct kernfs_node *parent, const struct attribute *attr, bool is_bin) argument 278 sysfs_create_file_ns(struct kobject *kobj, const struct attribute *attr, const void *ns) argument 308 sysfs_add_file_to_group(struct kobject *kobj, const struct attribute *attr, const char *group) argument 338 sysfs_chmod_file(struct kobject *kobj, const struct attribute *attr, umode_t mode) argument 367 sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr, const void *ns) argument 383 sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr) argument 413 sysfs_remove_file_from_group(struct kobject *kobj, const struct attribute *attr, const char *group) argument 437 sysfs_create_bin_file(struct kobject *kobj, const struct bin_attribute *attr) argument 451 sysfs_remove_bin_file(struct kobject *kobj, const struct bin_attribute *attr) argument [all...] |
/fs/adfs/ |
H A D | inode.c | 91 unsigned int attr = ADFS_I(inode)->attr; local 95 if (attr & ADFS_NDA_DIRECTORY) { 114 if (attr & ADFS_NDA_OWNER_READ) 117 if (attr & ADFS_NDA_OWNER_WRITE) 120 if (attr & ADFS_NDA_PUBLIC_READ) 123 if (attr & ADFS_NDA_PUBLIC_WRITE) 136 int attr; local 141 return ADFS_I(inode)->attr; 144 attr 299 adfs_notify_change(struct dentry *dentry, struct iattr *attr) argument [all...] |
/fs/xfs/ |
H A D | xfs_sysfs.c | 26 struct attribute attr; member in struct:xfs_sysfs_attr 32 to_attr(struct attribute *attr) argument 34 return container_of(attr, struct xfs_sysfs_attr, attr); 42 #define ATTR_LIST(name) &xfs_sysfs_attr_##name.attr 95 struct attribute *attr, 98 struct xfs_sysfs_attr *xfs_attr = to_attr(attr); 106 struct attribute *attr, 110 struct xfs_sysfs_attr *xfs_attr = to_attr(attr); 208 struct attribute *attr, 93 xfs_dbg_show( struct kobject *kobject, struct attribute *attr, char *buf) argument 104 xfs_dbg_store( struct kobject *kobject, struct attribute *attr, const char *buf, size_t count) argument 206 xfs_log_show( struct kobject *kobject, struct attribute *attr, char *buf) argument 218 xfs_log_store( struct kobject *kobject, struct attribute *attr, const char *buf, size_t count) argument [all...] |
/fs/fat/ |
H A D | file.c | 24 u32 attr; local 27 attr = fat_make_attrs(inode); 30 return put_user(attr, user_attr); 38 u32 attr, oldattr; local 42 err = get_user(attr, user_attr); 57 attr &= 0xff & ~(ATTR_VOLUME | ATTR_DIR); 59 attr |= (MSDOS_I(inode)->i_attrs & ATTR_VOLUME) | 67 ia.ia_mode = fat_make_mode(sbi, attr, S_IRWXUGO); 69 ia.ia_mode = fat_make_mode(sbi, attr, 74 if (inode->i_ino == MSDOS_ROOT_INO && attr ! 383 fat_setattr(struct dentry *dentry, struct iattr *attr) argument [all...] |
/fs/nilfs2/ |
H A D | sysfs.h | 64 struct attribute attr; \ 75 struct attribute attr; \ 91 struct attribute attr; \ 160 (&nilfs_feature_attr_##name.attr) 162 (&nilfs_dev_attr_##name.attr) 164 (&nilfs_segments_attr_##name.attr) 166 (&nilfs_mounted_snapshots_attr_##name.attr) 168 (&nilfs_checkpoints_attr_##name.attr) 170 (&nilfs_snapshot_attr_##name.attr) 172 (&nilfs_superblock_attr_##name.attr) [all...] |
H A D | sysfs.c | 46 struct attribute *attr, char *buf) \ 51 struct nilfs_##name##_attr *a = container_of(attr, \ 53 attr); \ 57 struct attribute *attr, \ 63 struct nilfs_##name##_attr *a = container_of(attr, \ 65 attr); \ 119 nilfs_snapshot_inodes_count_show(struct nilfs_snapshot_attr *attr, argument 127 nilfs_snapshot_blocks_count_show(struct nilfs_snapshot_attr *attr, argument 140 nilfs_snapshot_README_show(struct nilfs_snapshot_attr *attr, argument 158 struct attribute *attr, cha 157 nilfs_snapshot_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 168 nilfs_snapshot_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) argument 241 nilfs_mounted_snapshots_README_show(struct nilfs_mounted_snapshots_attr *attr, struct the_nilfs *nilfs, char *buf) argument 263 nilfs_checkpoints_checkpoints_number_show(struct nilfs_checkpoints_attr *attr, struct the_nilfs *nilfs, char *buf) argument 286 nilfs_checkpoints_snapshots_number_show(struct nilfs_checkpoints_attr *attr, struct the_nilfs *nilfs, char *buf) argument 309 nilfs_checkpoints_last_seg_checkpoint_show(struct nilfs_checkpoints_attr *attr, struct the_nilfs *nilfs, char *buf) argument 323 nilfs_checkpoints_next_checkpoint_show(struct nilfs_checkpoints_attr *attr, struct the_nilfs *nilfs, char *buf) argument 346 nilfs_checkpoints_README_show(struct nilfs_checkpoints_attr *attr, struct the_nilfs *nilfs, char *buf) argument 376 nilfs_segments_segments_number_show(struct nilfs_segments_attr *attr, struct the_nilfs *nilfs, char *buf) argument 384 nilfs_segments_blocks_per_segment_show(struct nilfs_segments_attr *attr, struct the_nilfs *nilfs, char *buf) argument 392 nilfs_segments_clean_segments_show(struct nilfs_segments_attr *attr, struct the_nilfs *nilfs, char *buf) argument 406 nilfs_segments_dirty_segments_show(struct nilfs_segments_attr *attr, struct the_nilfs *nilfs, char *buf) argument 434 nilfs_segments_README_show(struct nilfs_segments_attr *attr, struct the_nilfs *nilfs, char *buf) argument 465 nilfs_segctor_last_pseg_block_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 480 nilfs_segctor_last_seg_sequence_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 494 nilfs_segctor_last_seg_checkpoint_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 508 nilfs_segctor_current_seg_sequence_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 522 nilfs_segctor_current_last_full_seg_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 536 nilfs_segctor_next_full_seg_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 550 nilfs_segctor_next_pseg_offset_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 564 nilfs_segctor_next_checkpoint_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 578 nilfs_segctor_last_seg_write_time_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 592 nilfs_segctor_last_seg_write_time_secs_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 606 nilfs_segctor_last_nongc_write_time_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 620 nilfs_segctor_last_nongc_write_time_secs_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 635 nilfs_segctor_dirty_data_blocks_count_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 679 nilfs_segctor_README_show(struct nilfs_segctor_attr *attr, struct the_nilfs *nilfs, char *buf) argument 727 nilfs_superblock_sb_write_time_show(struct nilfs_superblock_attr *attr, struct the_nilfs *nilfs, char *buf) argument 741 nilfs_superblock_sb_write_time_secs_show(struct nilfs_superblock_attr *attr, struct the_nilfs *nilfs, char *buf) argument 755 nilfs_superblock_sb_write_count_show(struct nilfs_superblock_attr *attr, struct the_nilfs *nilfs, char *buf) argument 769 nilfs_superblock_sb_update_frequency_show(struct nilfs_superblock_attr *attr, struct the_nilfs *nilfs, char *buf) argument 783 nilfs_superblock_sb_update_frequency_store(struct nilfs_superblock_attr *attr, struct the_nilfs *nilfs, const char *buf, size_t count) argument 823 nilfs_superblock_README_show(struct nilfs_superblock_attr *attr, struct the_nilfs *nilfs, char *buf) argument 853 nilfs_dev_revision_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument 865 nilfs_dev_blocksize_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument 873 nilfs_dev_device_size_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument 884 nilfs_dev_free_blocks_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument 896 nilfs_dev_uuid_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument 906 nilfs_dev_volume_name_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument 926 nilfs_dev_README_show(struct nilfs_dev_attr *attr, struct the_nilfs *nilfs, char *buf) argument 952 nilfs_dev_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 963 nilfs_dev_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) argument 1072 nilfs_feature_revision_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 1084 nilfs_feature_README_show(struct kobject *kobj, struct attribute *attr, char *buf) argument [all...] |
/fs/configfs/ |
H A D | file.c | 66 struct configfs_attribute * attr = to_attr(dentry); local 77 count = ops->show_attribute(item,attr,buffer->page); 172 struct configfs_attribute * attr = to_attr(dentry); local 176 return ops->store_attribute(item,attr,buffer->page,count); 216 struct configfs_attribute * attr = to_attr(file->f_path.dentry); local 221 if (!item || !attr) 225 if (!try_module_get(attr->ca_owner)) { 275 module_put(attr->ca_owner); 290 struct configfs_attribute * attr = to_attr(filp->f_path.dentry); local 291 struct module * owner = attr 317 configfs_add_file(struct dentry * dir, const struct configfs_attribute * attr, int type) argument 337 configfs_create_file(struct config_item * item, const struct configfs_attribute * attr) argument [all...] |
/fs/exofs/ |
H A D | sys.c | 28 struct attribute attr; member in struct:odev_attr 33 static ssize_t odev_attr_show(struct kobject *kobj, struct attribute *attr, argument 37 struct odev_attr *a = container_of(attr, struct odev_attr, attr); 42 static ssize_t odev_attr_store(struct kobject *kobj, struct attribute *attr, argument 46 struct odev_attr *a = container_of(attr, struct odev_attr, attr); 103 &odev_attr_osdname.attr, 104 &odev_attr_systemid.attr, 105 &odev_attr_uri.attr, [all...] |
/fs/btrfs/ |
H A D | sysfs.h | 18 .attr = { .name = __stringify(_name), .mode = _mode }, \ 31 #define BTRFS_ATTR_PTR(_name) (&btrfs_attr_##_name.attr) 37 #define BTRFS_RAID_ATTR_PTR(_name) (&btrfs_raid_attr_##_name.attr) 54 #define BTRFS_FEAT_ATTR_PTR(_name) (&btrfs_attr_##_name.kobj_attr.attr) 66 #define attr_to_btrfs_attr(a) container_of(a, struct kobj_attribute, attr)
|
/fs/ocfs2/cluster/ |
H A D | masklog.c | 68 struct attribute attr; member in struct:mlog_attribute 72 #define to_mlog_attr(_attr) container_of(_attr, struct mlog_attribute, attr) 75 .attr = { \ 107 static ssize_t mlog_show(struct kobject *obj, struct attribute *attr, argument 110 struct mlog_attribute *mlog_attr = to_mlog_attr(attr); 115 static ssize_t mlog_store(struct kobject *obj, struct attribute *attr, argument 118 struct mlog_attribute *mlog_attr = to_mlog_attr(attr); 141 while (mlog_attrs[i].attr.mode) { 142 mlog_attr_ptrs[i] = &mlog_attrs[i].attr;
|
H A D | sys.c | 38 static ssize_t version_show(struct kobject *kobj, struct kobj_attribute *attr, argument 47 &attr_version.attr,
|
/fs/gfs2/ |
H A D | sys.c | 33 struct attribute attr; member in struct:gfs2_attr 38 static ssize_t gfs2_attr_show(struct kobject *kobj, struct attribute *attr, argument 42 struct gfs2_attr *a = container_of(attr, struct gfs2_attr, attr); 46 static ssize_t gfs2_attr_store(struct kobject *kobj, struct attribute *attr, argument 50 struct gfs2_attr *a = container_of(attr, struct gfs2_attr, attr); 275 &gfs2_attr_id.attr, 276 &gfs2_attr_fsname.attr, 277 &gfs2_attr_uuid.attr, [all...] |
/fs/hfs/ |
H A D | Makefile | 8 catalog.o dir.o extent.o inode.o attr.o mdb.o \
|
/fs/ntfs/ |
H A D | namei.c | 226 a = ctx->attr; 233 fn = (FILE_NAME_ATTR*)((u8*)ctx->attr + le16_to_cpu( 234 ctx->attr->data.resident.value_offset)); 306 ATTR_RECORD *attr; local 334 attr = ctx->attr; 335 if (unlikely(attr->non_resident)) 337 fn = (FILE_NAME_ATTR *)((u8 *)attr + 338 le16_to_cpu(attr->data.resident.value_offset)); 339 if (unlikely((u8 *)fn + le32_to_cpu(attr [all...] |
/fs/nfs/ |
H A D | nfs4file.c | 25 struct iattr attr; local 54 attr.ia_valid = ATTR_OPEN; 56 attr.ia_valid |= ATTR_SIZE; 57 attr.ia_size = 0; 61 inode = NFS_PROTO(dir)->open_context(dir, ctx, openflags, &attr, &opened);
|
/fs/fuse/ |
H A D | inode.c | 157 void fuse_change_attributes_common(struct inode *inode, struct fuse_attr *attr, argument 166 inode->i_ino = fuse_squash_ino(attr->ino); 167 inode->i_mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); 168 set_nlink(inode, attr->nlink); 169 inode->i_uid = make_kuid(&init_user_ns, attr->uid); 170 inode->i_gid = make_kgid(&init_user_ns, attr->gid); 171 inode->i_blocks = attr->blocks; 172 inode->i_atime.tv_sec = attr->atime; 173 inode->i_atime.tv_nsec = attr->atimensec; 176 inode->i_mtime.tv_sec = attr 199 fuse_change_attributes(struct inode *inode, struct fuse_attr *attr, u64 attr_valid, u64 attr_version) argument 253 fuse_init_inode(struct inode *inode, struct fuse_attr *attr) argument 293 fuse_iget(struct super_block *sb, u64 nodeid, int generation, struct fuse_attr *attr, u64 attr_valid, u64 attr_version) argument 410 convert_fuse_statfs(struct kstatfs *stbuf, struct fuse_kstatfs *attr) argument 641 struct fuse_attr attr; local [all...] |
/fs/overlayfs/ |
H A D | copy_up.c | 161 struct iattr attr = { local 168 return notify_change(upperdentry, &attr, NULL); 176 struct iattr attr = { local 180 err = notify_change(upperdentry, &attr, NULL); 183 struct iattr attr = { local 188 err = notify_change(upperdentry, &attr, NULL); 199 struct kstat *stat, struct iattr *attr, 244 if (!err && attr) 245 err = notify_change(newdentry, attr, NULL); 291 struct iattr *attr) 197 ovl_copy_up_locked(struct dentry *workdir, struct dentry *upperdir, struct dentry *dentry, struct path *lowerpath, struct kstat *stat, struct iattr *attr, const char *link) argument 289 ovl_copy_up_one(struct dentry *parent, struct dentry *dentry, struct path *lowerpath, struct kstat *stat, struct iattr *attr) argument [all...] |
/fs/dlm/ |
H A D | config.c | 128 struct configfs_attribute attr; member in struct:cluster_attribute 148 .attr = { .ca_owner = THIS_MODULE, 204 [CLUSTER_ATTR_TCP_PORT] = &cluster_attr_tcp_port.attr, 205 [CLUSTER_ATTR_BUFFER_SIZE] = &cluster_attr_buffer_size.attr, 206 [CLUSTER_ATTR_RSBTBL_SIZE] = &cluster_attr_rsbtbl_size.attr, 207 [CLUSTER_ATTR_RECOVER_TIMER] = &cluster_attr_recover_timer.attr, 208 [CLUSTER_ATTR_TOSS_SECS] = &cluster_attr_toss_secs.attr, 209 [CLUSTER_ATTR_SCAN_SECS] = &cluster_attr_scan_secs.attr, 210 [CLUSTER_ATTR_LOG_DEBUG] = &cluster_attr_log_debug.attr, 211 [CLUSTER_ATTR_PROTOCOL] = &cluster_attr_protocol.attr, 228 struct configfs_attribute attr; member in struct:comm_attribute 277 struct configfs_attribute attr; member in struct:node_attribute [all...] |