diff options
author | Deepa Dinamani <deepa.kernel@gmail.com> | 2016-09-14 10:48:06 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-09-27 21:06:22 -0400 |
commit | c2050a454c7f123d7a57fa1d76ff61bd43643abb (patch) | |
tree | 6f45ffffaf10f2534a38bfa28efb70ec24026a8d /fs/btrfs/transaction.c | |
parent | 02027d42c3f747945f19111d3da2092ed2148ac8 (diff) |
fs: Replace current_fs_time() with current_time()
current_fs_time() uses struct super_block* as an argument.
As per Linus's suggestion, this is changed to take struct
inode* as a parameter instead. This is because the function
is primarily meant for vfs inode timestamps.
Also the function was renamed as per Arnd's suggestion.
Change all calls to current_fs_time() to use the new
current_time() function instead. current_fs_time() will be
deleted.
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 95d41919d034..c294313ea2c8 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -1474,7 +1474,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, | |||
1474 | parent_root = BTRFS_I(parent_inode)->root; | 1474 | parent_root = BTRFS_I(parent_inode)->root; |
1475 | record_root_in_trans(trans, parent_root, 0); | 1475 | record_root_in_trans(trans, parent_root, 0); |
1476 | 1476 | ||
1477 | cur_time = current_fs_time(parent_inode->i_sb); | 1477 | cur_time = current_time(parent_inode); |
1478 | 1478 | ||
1479 | /* | 1479 | /* |
1480 | * insert the directory item | 1480 | * insert the directory item |
@@ -1630,7 +1630,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, | |||
1630 | btrfs_i_size_write(parent_inode, parent_inode->i_size + | 1630 | btrfs_i_size_write(parent_inode, parent_inode->i_size + |
1631 | dentry->d_name.len * 2); | 1631 | dentry->d_name.len * 2); |
1632 | parent_inode->i_mtime = parent_inode->i_ctime = | 1632 | parent_inode->i_mtime = parent_inode->i_ctime = |
1633 | current_fs_time(parent_inode->i_sb); | 1633 | current_time(parent_inode); |
1634 | ret = btrfs_update_inode_fallback(trans, parent_root, parent_inode); | 1634 | ret = btrfs_update_inode_fallback(trans, parent_root, parent_inode); |
1635 | if (ret) { | 1635 | if (ret) { |
1636 | btrfs_abort_transaction(trans, ret); | 1636 | btrfs_abort_transaction(trans, ret); |