diff mbox

[00/13] Implement NFSv4 delegations, take 12

Message ID 20131002201627.GI14808@fieldses.org (mailing list archive)
State New, archived
Headers show

Commit Message

J. Bruce Fields Oct. 2, 2013, 8:16 p.m. UTC
On Wed, Oct 02, 2013 at 09:54:23AM -0400, bfields wrote:
> On Thu, Sep 19, 2013 at 04:50:24PM -0400, J. Bruce Fields wrote:
> > From: "J. Bruce Fields" <bfields@redhat.com>
> > 
> > Al, if you don't see any objections, could you queue this up for 3.13?
> 
> Note: if it's more convenient, the identical patches are also available
> from
> 
> 	git://linux-nfs.org/~bfields/linux.git for-viro

But kbuild points out I forgot to fix up some calls in ecryptfs.

I'll push out another version with the below folded in, once I've
checked whether there's anything else I touched that got turned off in
my test .config....

--b.

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

J. Bruce Fields Oct. 3, 2013, 7:41 p.m. UTC | #1
On Wed, Oct 02, 2013 at 04:16:27PM -0400, J. Bruce Fields wrote:
> On Wed, Oct 02, 2013 at 09:54:23AM -0400, bfields wrote:
> > On Thu, Sep 19, 2013 at 04:50:24PM -0400, J. Bruce Fields wrote:
> > > From: "J. Bruce Fields" <bfields@redhat.com>
> > > 
> > > Al, if you don't see any objections, could you queue this up for 3.13?
> > 
> > Note: if it's more convenient, the identical patches are also available
> > from
> > 
> > 	git://linux-nfs.org/~bfields/linux.git for-viro
> 
> But kbuild points out I forgot to fix up some calls in ecryptfs.
> 
> I'll push out another version with the below folded in, once I've
> checked whether there's anything else I touched that got turned off in
> my test .config....

Done; the change below is now folded into the commits on the for-viro
branch at the url above.

--b.

> 
> --b.
> 
> diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c
> index 7b19ebb..a842ced 100644
> --- a/fs/ecryptfs/inode.c
> +++ b/fs/ecryptfs/inode.c
> @@ -208,7 +208,7 @@ ecryptfs_do_create(struct inode *directory_inode,
>  	inode = __ecryptfs_get_inode(lower_dentry->d_inode,
>  				     directory_inode->i_sb);
>  	if (IS_ERR(inode)) {
> -		vfs_unlink(lower_dir_dentry->d_inode, lower_dentry);
> +		vfs_unlink(lower_dir_dentry->d_inode, lower_dentry, NULL);
>  		goto out_lock;
>  	}
>  	fsstack_copy_attr_times(directory_inode, lower_dir_dentry->d_inode);
> @@ -640,7 +640,8 @@ ecryptfs_rename(struct inode *old_dir, struct dentry *old_dentry,
>  		goto out_lock;
>  	}
>  	rc = 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 (rc)
>  		goto out_lock;
>  	if (target_inode)
> @@ -891,7 +892,7 @@ int ecryptfs_truncate(struct dentry *dentry, loff_t new_length)
>  		struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry);
>  
>  		mutex_lock(&lower_dentry->d_inode->i_mutex);
> -		rc = notify_change(lower_dentry, &lower_ia);
> +		rc = notify_change(lower_dentry, &lower_ia, NULL);
>  		mutex_unlock(&lower_dentry->d_inode->i_mutex);
>  	}
>  	return rc;
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
J. Bruce Fields Oct. 7, 2013, 3:20 p.m. UTC | #2
On Thu, Oct 03, 2013 at 03:41:36PM -0400, J. Bruce Fields wrote:
> On Wed, Oct 02, 2013 at 04:16:27PM -0400, J. Bruce Fields wrote:
> > On Wed, Oct 02, 2013 at 09:54:23AM -0400, bfields wrote:
> > > On Thu, Sep 19, 2013 at 04:50:24PM -0400, J. Bruce Fields wrote:
> > > > From: "J. Bruce Fields" <bfields@redhat.com>
> > > > 
> > > > Al, if you don't see any objections, could you queue this up for 3.13?
> > > 
> > > Note: if it's more convenient, the identical patches are also available
> > > from
> > > 
> > > 	git://linux-nfs.org/~bfields/linux.git for-viro
> > 
> > But kbuild points out I forgot to fix up some calls in ecryptfs.
> > 
> > I'll push out another version with the below folded in, once I've
> > checked whether there's anything else I touched that got turned off in
> > my test .config....
> 
> Done; the change below is now folded into the commits on the for-viro
> branch at the url above.

And kbuild also pointed out a typo in the !CONFIG_FILE_LOCKING case,
also now fixed in the git tree above.

I've also added two previously posted sets of patches to that branch for
you to cherry-pick as you'd like:

- miscellaneous DCACHE_DISCONECTED fixes
  http://mid.gmane.org/<1378579561-26868-2-git-send-email-bfields@redhat.com>
- problem looking up filehandles with 64-bit inodes
  http://mid.gmane.org/<1380749295-20854-1-git-send-email-bfields@redhat.com>

--b.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c
index 7b19ebb..a842ced 100644
--- a/fs/ecryptfs/inode.c
+++ b/fs/ecryptfs/inode.c
@@ -208,7 +208,7 @@  ecryptfs_do_create(struct inode *directory_inode,
 	inode = __ecryptfs_get_inode(lower_dentry->d_inode,
 				     directory_inode->i_sb);
 	if (IS_ERR(inode)) {
-		vfs_unlink(lower_dir_dentry->d_inode, lower_dentry);
+		vfs_unlink(lower_dir_dentry->d_inode, lower_dentry, NULL);
 		goto out_lock;
 	}
 	fsstack_copy_attr_times(directory_inode, lower_dir_dentry->d_inode);
@@ -640,7 +640,8 @@  ecryptfs_rename(struct inode *old_dir, struct dentry *old_dentry,
 		goto out_lock;
 	}
 	rc = 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 (rc)
 		goto out_lock;
 	if (target_inode)
@@ -891,7 +892,7 @@  int ecryptfs_truncate(struct dentry *dentry, loff_t new_length)
 		struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry);
 
 		mutex_lock(&lower_dentry->d_inode->i_mutex);
-		rc = notify_change(lower_dentry, &lower_ia);
+		rc = notify_change(lower_dentry, &lower_ia, NULL);
 		mutex_unlock(&lower_dentry->d_inode->i_mutex);
 	}
 	return rc;