aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-05-22 12:33:42 -0400
committerChris Mason <chris.mason@oracle.com>2011-05-22 12:33:42 -0400
commit945d8962ceee6bb273365d0bdf42f763225b290f (patch)
tree43f5617022c7c947c3c63664e49eb9575ab82f2f /fs/btrfs/ioctl.c
parent0d0ca30f180906224be6279788f2b202cfd959d8 (diff)
parent4ea028859bbdad34b84c9951fbb832ae10c6a96c (diff)
Merge branch 'cleanups' of git://repo.or.cz/linux-2.6/btrfs-unstable into inode_numbers
Conflicts: fs/btrfs/extent-tree.c fs/btrfs/free-space-cache.c fs/btrfs/inode.c fs/btrfs/tree-log.c Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 7ab39db3db0f..ed8c055ab70f 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1402,7 +1402,7 @@ static noinline int search_ioctl(struct inode *inode,
1402 } 1402 }
1403 ret = copy_to_sk(root, path, &key, sk, args->buf, 1403 ret = copy_to_sk(root, path, &key, sk, args->buf,
1404 &sk_offset, &num_found); 1404 &sk_offset, &num_found);
1405 btrfs_release_path(root, path); 1405 btrfs_release_path(path);
1406 if (ret || num_found >= sk->nr_items) 1406 if (ret || num_found >= sk->nr_items)
1407 break; 1407 break;
1408 1408
@@ -1509,7 +1509,7 @@ static noinline int btrfs_search_path_in_tree(struct btrfs_fs_info *info,
1509 if (key.offset == BTRFS_FIRST_FREE_OBJECTID) 1509 if (key.offset == BTRFS_FIRST_FREE_OBJECTID)
1510 break; 1510 break;
1511 1511
1512 btrfs_release_path(root, path); 1512 btrfs_release_path(path);
1513 key.objectid = key.offset; 1513 key.objectid = key.offset;
1514 key.offset = (u64)-1; 1514 key.offset = (u64)-1;
1515 dirid = key.objectid; 1515 dirid = key.objectid;
@@ -1988,7 +1988,7 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
1988 datal = btrfs_file_extent_ram_bytes(leaf, 1988 datal = btrfs_file_extent_ram_bytes(leaf,
1989 extent); 1989 extent);
1990 } 1990 }
1991 btrfs_release_path(root, path); 1991 btrfs_release_path(path);
1992 1992
1993 if (key.offset + datal <= off || 1993 if (key.offset + datal <= off ||
1994 key.offset >= off+len) 1994 key.offset >= off+len)
@@ -2098,7 +2098,7 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
2098 } 2098 }
2099 2099
2100 btrfs_mark_buffer_dirty(leaf); 2100 btrfs_mark_buffer_dirty(leaf);
2101 btrfs_release_path(root, path); 2101 btrfs_release_path(path);
2102 2102
2103 inode->i_mtime = inode->i_ctime = CURRENT_TIME; 2103 inode->i_mtime = inode->i_ctime = CURRENT_TIME;
2104 2104
@@ -2119,12 +2119,12 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd,
2119 btrfs_end_transaction(trans, root); 2119 btrfs_end_transaction(trans, root);
2120 } 2120 }
2121next: 2121next:
2122 btrfs_release_path(root, path); 2122 btrfs_release_path(path);
2123 key.offset++; 2123 key.offset++;
2124 } 2124 }
2125 ret = 0; 2125 ret = 0;
2126out: 2126out:
2127 btrfs_release_path(root, path); 2127 btrfs_release_path(path);
2128 unlock_extent(&BTRFS_I(src)->io_tree, off, off+len, GFP_NOFS); 2128 unlock_extent(&BTRFS_I(src)->io_tree, off, off+len, GFP_NOFS);
2129out_unlock: 2129out_unlock:
2130 mutex_unlock(&src->i_mutex); 2130 mutex_unlock(&src->i_mutex);