projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Btrfs: notreelog mount option
[linux-2.6-block.git]
/
fs
/
btrfs
/
tree-log.c
diff --git
a/fs/btrfs/tree-log.c
b/fs/btrfs/tree-log.c
index 2871609641f5b2a401bdc4010fe1de5438c8efab..c047eea4093fcd650e09bac8f1618a1262cb91d8 100644
(file)
--- a/
fs/btrfs/tree-log.c
+++ b/
fs/btrfs/tree-log.c
@@
-2898,6
+2898,11
@@
int btrfs_log_inode_parent(struct btrfs_trans_handle *trans,
sb = inode->i_sb;
sb = inode->i_sb;
+ if (btrfs_test_opt(root, NOTREELOG)) {
+ ret = 1;
+ goto end_no_trans;
+ }
+
if (root->fs_info->last_trans_log_full_commit >
root->fs_info->last_trans_committed) {
ret = 1;
if (root->fs_info->last_trans_log_full_commit >
root->fs_info->last_trans_committed) {
ret = 1;