diff options
author | Christoph Hellwig <hch@lst.de> | 2023-01-16 09:52:05 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2023-01-16 12:19:25 +0100 |
commit | 7a5fa171a2869e99fe38f61c60274e7b4bf3a5e0 (patch) | |
tree | a4af997693c04d6d156a8a55425862910104af12 /fs/ext2/ext2.h | |
parent | 1fb40763a58c1f8130c0131c624060c6bbb929b8 (diff) | |
download | linux-stable-7a5fa171a2869e99fe38f61c60274e7b4bf3a5e0.tar.gz linux-stable-7a5fa171a2869e99fe38f61c60274e7b4bf3a5e0.tar.bz2 linux-stable-7a5fa171a2869e99fe38f61c60274e7b4bf3a5e0.zip |
ext2: propagate errors from ext2_prepare_chunk
Propagate errors from ext2_prepare_chunk to the callers and handle them
there. While touching the prototype also turn update_times into a bool
from the current int used as bool.
[JK: fixed up error recovery path in ext2_rename()]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20230116085205.2342975-1-hch@lst.de>
Diffstat (limited to 'fs/ext2/ext2.h')
-rw-r--r-- | fs/ext2/ext2.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h index 28de11a22e5f..f7f590aac55a 100644 --- a/fs/ext2/ext2.h +++ b/fs/ext2/ext2.h @@ -734,8 +734,9 @@ extern int ext2_delete_entry(struct ext2_dir_entry_2 *dir, struct page *page, char *kaddr); extern int ext2_empty_dir (struct inode *); extern struct ext2_dir_entry_2 *ext2_dotdot(struct inode *dir, struct page **p, void **pa); -extern void ext2_set_link(struct inode *, struct ext2_dir_entry_2 *, struct page *, void *, - struct inode *, int); +int ext2_set_link(struct inode *dir, struct ext2_dir_entry_2 *de, + struct page *page, void *page_addr, struct inode *inode, + bool update_times); static inline void ext2_put_page(struct page *page, void *page_addr) { kunmap_local(page_addr); |