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: avoid tree log commit when there are no changes
[linux-2.6-block.git]
/
fs
/
btrfs
/
transaction.h
diff --git
a/fs/btrfs/transaction.h
b/fs/btrfs/transaction.h
index 663c67404918dd30fb1c5cf0943b07b2455018bd..f68cbbe61e5623bff0edd7cbe0006b43d729cf66 100644
(file)
--- a/
fs/btrfs/transaction.h
+++ b/
fs/btrfs/transaction.h
@@
-79,6
+79,7
@@
static inline void btrfs_set_inode_last_trans(struct btrfs_trans_handle *trans,
struct inode *inode)
{
BTRFS_I(inode)->last_trans = trans->transaction->transid;
+ BTRFS_I(inode)->last_sub_trans = BTRFS_I(inode)->root->log_transid;
}
int btrfs_end_transaction(struct btrfs_trans_handle *trans,