[PATCH] mutex subsystem, semaphore to mutex: VFS, ->i_sem
[deliverable/linux.git] / fs / configfs / file.c
index af1ffc9a15c0b402695b96a54ccdb1c3c1e0d85a..c26cd61f13afd3c9cc02ff7799ff95c58f622df5 100644 (file)
@@ -336,9 +336,9 @@ int configfs_add_file(struct dentry * dir, const struct configfs_attribute * att
        umode_t mode = (attr->ca_mode & S_IALLUGO) | S_IFREG;
        int error = 0;
 
-       down(&dir->d_inode->i_sem);
+       mutex_lock(&dir->d_inode->i_mutex);
        error = configfs_make_dirent(parent_sd, NULL, (void *) attr, mode, type);
-       up(&dir->d_inode->i_sem);
+       mutex_unlock(&dir->d_inode->i_mutex);
 
        return error;
 }
This page took 0.023934 seconds and 5 git commands to generate.