Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

new helper: simple_done_creating()

should be paired with simple_start_creating() - unlocks parent and
drops dentry reference.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 1552ddc7 4051a911

+9
+8
fs/libfs.c
··· 2326 2326 return dentry; 2327 2327 } 2328 2328 EXPORT_SYMBOL(simple_start_creating); 2329 + 2330 + /* parent must have been held exclusive since simple_start_creating() */ 2331 + void simple_done_creating(struct dentry *child) 2332 + { 2333 + inode_unlock(child->d_parent->d_inode); 2334 + dput(child); 2335 + } 2336 + EXPORT_SYMBOL(simple_done_creating);
+1
include/linux/fs.h
··· 3662 3662 extern int simple_pin_fs(struct file_system_type *, struct vfsmount **mount, int *count); 3663 3663 extern void simple_release_fs(struct vfsmount **mount, int *count); 3664 3664 struct dentry *simple_start_creating(struct dentry *, const char *); 3665 + void simple_done_creating(struct dentry *); 3665 3666 3666 3667 extern ssize_t simple_read_from_buffer(void __user *to, size_t count, 3667 3668 loff_t *ppos, const void *from, size_t available);