Home
last modified time | relevance | path

Searched hist:"2 d1a9d59" (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/fs/minix/
H A Ddir.c2d1a9d59 Wed Jan 18 11:30:23 CST 2023 Christoph Hellwig <hch@lst.de> minix: fix error handling in minix_set_link

If minix_prepare_chunk fails, updating c/mtime and marking the
dir inode dirty is wrong, as the inode hasn't been modified. Also
propagate the error to the caller.

Note that this moves the dir_put_page call later, but that matches
other uses of this helper in the directory code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
H A Dnamei.c2d1a9d59 Wed Jan 18 11:30:23 CST 2023 Christoph Hellwig <hch@lst.de> minix: fix error handling in minix_set_link

If minix_prepare_chunk fails, updating c/mtime and marking the
dir inode dirty is wrong, as the inode hasn't been modified. Also
propagate the error to the caller.

Note that this moves the dir_put_page call later, but that matches
other uses of this helper in the directory code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
H A Dminix.h2d1a9d59 Wed Jan 18 11:30:23 CST 2023 Christoph Hellwig <hch@lst.de> minix: fix error handling in minix_set_link

If minix_prepare_chunk fails, updating c/mtime and marking the
dir inode dirty is wrong, as the inode hasn't been modified. Also
propagate the error to the caller.

Note that this moves the dir_put_page call later, but that matches
other uses of this helper in the directory code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>