diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-10-02 23:54:17 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-11-07 16:57:16 -0500 |
commit | f9e524a6ef07e902ab876ecfd84c764f5afdca2a (patch) | |
tree | a85cda1f5ef619e4b54303776ccea979a384a3c3 | |
parent | 970ca91fa515c7e471703360fe63ce25a2f9f7c6 (diff) |
TODO
-rw-r--r-- | fs/bcachefs/fs-io.c | 2 | ||||
-rw-r--r-- | fs/bcachefs/fs.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c index 1eb69ed38b10..efabc2568375 100644 --- a/fs/bcachefs/fs-io.c +++ b/fs/bcachefs/fs-io.c @@ -2326,6 +2326,8 @@ static long bchfs_fpunch(struct bch_inode_info *inode, loff_t offset, loff_t len &i_sectors_delta); i_sectors_acct(c, inode, NULL, i_sectors_delta); } + + /* XXX: update mtime/ctime */ err: bch2_pagecache_block_put(&inode->ei_pagecache_lock); inode_unlock(&inode->v); diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index 3ac57ba29e9f..ff5ddd1ffc10 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -365,6 +365,7 @@ static struct dentry *bch2_lookup(struct inode *vdir, struct dentry *dentry, struct inode *vinode = NULL; u64 inum; + /* XXX: this should be done in the same transaction */ inum = bch2_dirent_lookup(c, dir->v.i_ino, &dir->ei_str_hash, &dentry->d_name); |