Re: [PATCH RESEND 3/4] btrfs: Remove transaction handle from btrfs_file_private

2018-02-02 Thread David Sterba
On Wed, Jan 10, 2018 at 06:32:12PM +0200, Nikolay Borisov wrote:
> Since we no longer support userspace transaction there is no need to
> keep this member variable, so remove it.
> 
> Signed-off-by: Nikolay Borisov 

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


[PATCH RESEND 3/4] btrfs: Remove transaction handle from btrfs_file_private

2018-01-10 Thread Nikolay Borisov
Since we no longer support userspace transaction there is no need to
keep this member variable, so remove it.

Signed-off-by: Nikolay Borisov 
---
 fs/btrfs/ctree.h | 1 -
 fs/btrfs/file.c  | 2 --
 2 files changed, 3 deletions(-)

diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 6a4752177ad8..dc679246b8e8 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1265,7 +1265,6 @@ struct btrfs_root {
 };
 
 struct btrfs_file_private {
-   struct btrfs_trans_handle *trans;
void *filldir_buf;
 };
 
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 291036513017..101e0c7fea92 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1996,8 +1996,6 @@ int btrfs_release_file(struct inode *inode, struct file 
*filp)
 {
struct btrfs_file_private *private = filp->private_data;
 
-   if (private && private->trans)
-   btrfs_ioctl_trans_end(filp);
if (private && private->filldir_buf)
kfree(private->filldir_buf);
kfree(private);
-- 
2.7.4

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