projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed42a6
)
Btrfs: update inode ctime when using links
author
Josef Bacik
<josef@redhat.com>
Tue, 23 Nov 2010 19:50:59 +0000
(19:50 +0000)
committer
Chris Mason
<chris.mason@oracle.com>
Sat, 27 Nov 2010 18:00:07 +0000
(13:00 -0500)
Currently we fail xfstest 236 because we're not updating the inode ctime on
link. This is a simple fix, and makes it so we pass 236 now.
Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/inode.c
b/fs/btrfs/inode.c
index 0eeacd93e8e5e659c923fef2995c9bc755d8e64b..6df921f218fb8dc795306b49a89ec3197eb930f6 100644
(file)
--- a/
fs/btrfs/inode.c
+++ b/
fs/btrfs/inode.c
@@
-4785,6
+4785,7
@@
static int btrfs_link(struct dentry *old_dentry, struct inode *dir,
return -EPERM;
btrfs_inc_nlink(inode);
+ inode->i_ctime = CURRENT_TIME;
err = btrfs_set_inode_index(dir, &index);
if (err)