projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs: use round_down() to align block offset at btrfs_cow_block()
[linux-2.6-microblaze.git]
/
fs
/
btrfs
/
ctree.c
diff --git
a/fs/btrfs/ctree.c
b/fs/btrfs/ctree.c
index
49232b5
..
e1af5cc
100644
(file)
--- a/
fs/btrfs/ctree.c
+++ b/
fs/btrfs/ctree.c
@@
-718,7
+718,7
@@
int btrfs_cow_block(struct btrfs_trans_handle *trans,
return 0;
}
- search_start =
buf->start & ~((u64)SZ_1G - 1
);
+ search_start =
round_down(buf->start, SZ_1G
);
/*
* Before CoWing this block for later modification, check if it's