summaryrefslogtreecommitdiff
path: root/fs/configfs/file.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-08-25 19:56:13 -0400
committerChristoph Hellwig <hch@lst.de>2019-09-02 22:10:44 +0200
commit47320fbe11a6059ae502c9c16b668022fdb4cf76 (patch)
treefc3f4623904bf518c2ed13806decb56f8c1f8b6d /fs/configfs/file.c
parentf19e4ed1e1edbfa3c9ccb9fed17759b7d6db24c6 (diff)
configfs: new object reprsenting tree fragments
Refcounted, hangs of configfs_dirent, created by operations that add fragments to configfs tree (mkdir and configfs_register_{subsystem,group}). Will be used in the next commit to provide exclusion between fragment removal and ->show/->store calls. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/configfs/file.c')
-rw-r--r--fs/configfs/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/configfs/file.c b/fs/configfs/file.c
index eee6281a7b35..9d5e888df60b 100644
--- a/fs/configfs/file.c
+++ b/fs/configfs/file.c
@@ -488,7 +488,7 @@ int configfs_create_file(struct config_item * item, const struct configfs_attrib
inode_lock_nested(d_inode(dir), I_MUTEX_NORMAL);
error = configfs_make_dirent(parent_sd, NULL, (void *) attr, mode,
- CONFIGFS_ITEM_ATTR);
+ CONFIGFS_ITEM_ATTR, parent_sd->s_frag);
inode_unlock(d_inode(dir));
return error;
@@ -510,7 +510,7 @@ int configfs_create_bin_file(struct config_item *item,
inode_lock_nested(dir->d_inode, I_MUTEX_NORMAL);
error = configfs_make_dirent(parent_sd, NULL, (void *) bin_attr, mode,
- CONFIGFS_ITEM_BIN_ATTR);
+ CONFIGFS_ITEM_BIN_ATTR, parent_sd->s_frag);
inode_unlock(dir->d_inode);
return error;