From b089978357d75087faa72674e6fc892eaaf3f501 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Tue, 27 Mar 2012 17:09:18 +0300 Subject: [PATCH] --- yaml --- r: 297901 b: refs/heads/master c: 5eb56d2520fe16f00756ccdf8eebc277398e0f44 h: refs/heads/master i: 297899: dea9c6f7ff25764ad1fc800f9fbe9e9b8c179fb8 v: v3 --- [refs] | 2 +- trunk/fs/btrfs/backref.c | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 5568c9d71f6e..4810d0d457db 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e4837f8f3b5d08b8c708533a71439bfb40ede467 +refs/heads/master: 5eb56d2520fe16f00756ccdf8eebc277398e0f44 diff --git a/trunk/fs/btrfs/backref.c b/trunk/fs/btrfs/backref.c index 0436c12da8c2..4c79547f4a0c 100644 --- a/trunk/fs/btrfs/backref.c +++ b/trunk/fs/btrfs/backref.c @@ -1342,12 +1342,6 @@ int paths_from_inode(u64 inum, struct inode_fs_paths *ipath) inode_to_path, ipath); } -/* - * allocates space to return multiple file system paths for an inode. - * total_bytes to allocate are passed, note that space usable for actual path - * information will be total_bytes - sizeof(struct inode_fs_paths). - * the returned pointer must be freed with free_ipath() in the end. - */ struct btrfs_data_container *init_data_container(u32 total_bytes) { struct btrfs_data_container *data; @@ -1403,5 +1397,6 @@ struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root, void free_ipath(struct inode_fs_paths *ipath) { + kfree(ipath->fspath); kfree(ipath); }