summaryrefslogtreecommitdiff
path: root/fs/ufs/ufs.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2023-03-10 13:48:47 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2024-10-18 17:35:30 -0400
commit6a1c4c4688355063c8ead7de328c358bd959297a (patch)
tree8db7ceebf560c056c919eb6c8fbb76bcdabbddd1 /fs/ufs/ufs.h
parent8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b (diff)
ufs: fix handling of delete_entry and set_link failures
similar to minixfs series - make ufs_set_link() report failures, lift folio_release_kmap() into the callers of ufs_set_link() and ufs_delete_entry(), make ufs_rename() handle failures in both. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs/ufs.h')
-rw-r--r--fs/ufs/ufs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ufs/ufs.h b/fs/ufs/ufs.h
index a2c762cb65a0..c7638e62ffe8 100644
--- a/fs/ufs/ufs.h
+++ b/fs/ufs/ufs.h
@@ -108,8 +108,8 @@ struct ufs_dir_entry *ufs_find_entry(struct inode *, const struct qstr *,
int ufs_delete_entry(struct inode *, struct ufs_dir_entry *, struct folio *);
int ufs_empty_dir(struct inode *);
struct ufs_dir_entry *ufs_dotdot(struct inode *, struct folio **);
-void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de,
- struct folio *folio, struct inode *inode, bool update_times);
+int ufs_set_link(struct inode *dir, struct ufs_dir_entry *de,
+ struct folio *folio, struct inode *inode, bool update_times);
/* file.c */
extern const struct inode_operations ufs_file_inode_operations;