projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73ab6f3
)
bcachefs: fix mtime/ctime update on truncate
author
Kent Overstreet
<kent.overstreet@gmail.com>
Mon, 23 Jul 2018 09:48:53 +0000
(
05:48
-0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:08 +0000
(17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-io.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/fs-io.c
b/fs/bcachefs/fs-io.c
index 33c379ecf5a170e38db80e011245351726c98574..ed028b5b7613e1e043cc2a86a3aa99d0239c597e 100644
(file)
--- a/
fs/bcachefs/fs-io.c
+++ b/
fs/bcachefs/fs-io.c
@@
-278,7
+278,8
@@
static int i_sectors_dirty_finish(struct bch_fs *c, struct i_sectors_hook *h)
mutex_lock(&h->inode->ei_update_lock);
i_sectors_acct(c, h->inode, &h->quota_res, h->sectors);
- ret = bch2_write_inode(c, h->inode, i_sectors_dirty_finish_fn, h, 0);
+ ret = bch2_write_inode(c, h->inode, i_sectors_dirty_finish_fn,
+ h, ATTR_MTIME|ATTR_CTIME);
if (!ret && h->new_i_size != U64_MAX)
i_size_write(&h->inode->v, h->new_i_size);