Wrapfs: handle new VFS API with delegation support
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 19 Nov 2013 22:19:31 +0000 (17:19 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 27 Dec 2016 03:53:12 +0000 (22:53 -0500)
For now, wrapfs isn't supporting NFS delegations.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/wrapfs/inode.c

index d7fe1451efd395b69d3652c5cff461d396013135..7c388a7107167749ae2b59be1f841fc465ce4aa0 100644 (file)
@@ -57,7 +57,7 @@ static int wrapfs_link(struct dentry *old_dentry, struct inode *dir,
        lower_dir_dentry = lock_parent(lower_new_dentry);
 
        err = vfs_link(lower_old_dentry, lower_dir_dentry->d_inode,
-                      lower_new_dentry);
+                      lower_new_dentry, NULL);
        if (err || !lower_new_dentry->d_inode)
                goto out;
 
@@ -89,7 +89,7 @@ static int wrapfs_unlink(struct inode *dir, struct dentry *dentry)
        dget(lower_dentry);
        lower_dir_dentry = lock_parent(lower_dentry);
 
-       err = vfs_unlink(lower_dir_inode, lower_dentry);
+       err = vfs_unlink(lower_dir_inode, lower_dentry, NULL);
 
        /*
         * Note: unlinking on top of NFS can cause silly-renamed files.
@@ -263,7 +263,8 @@ static int wrapfs_rename(struct inode *old_dir, struct dentry *old_dentry,
        }
 
        err = vfs_rename(lower_old_dir_dentry->d_inode, lower_old_dentry,
-                        lower_new_dir_dentry->d_inode, lower_new_dentry);
+                        lower_new_dir_dentry->d_inode, lower_new_dentry,
+                        NULL);
        if (err)
                goto out;
 
@@ -416,7 +417,8 @@ static int wrapfs_setattr(struct dentry *dentry, struct iattr *ia)
         * tries to open(), unlink(), then ftruncate() a file.
         */
        mutex_lock(&lower_dentry->d_inode->i_mutex);
-       err = notify_change(lower_dentry, &lower_ia); /* note: lower_ia */
+       err = notify_change(lower_dentry, &lower_ia, /* note: lower_ia */
+                           NULL);
        mutex_unlock(&lower_dentry->d_inode->i_mutex);
        if (err)
                goto out;