commit | 03ba0fe4d09f2eb0a91888caaa057ed67462ae2d | [log] [tgz] |
---|---|---|
author | Christian Brauner <christian.brauner@ubuntu.com> | Fri Apr 02 10:38:09 2021 +0200 |
committer | Christian Brauner <christian.brauner@ubuntu.com> | Fri Apr 02 14:11:10 2021 +0200 |
tree | 6df62d8ad78bb35a18d6361ffbc0d183f687da28 | |
parent | f49fd6d3c070d08c4ae9696876c7098320e48dab [diff] |
file: simplify logic in __close_range() It never looked too pleasant and it doesn't really buy us anything anymore now that CLOSE_RANGE_CLOEXEC exists and we need to retake the current maximum under the lock for it anyway. This also makes the logic easier to follow. Cc: Christoph Hellwig <hch@lst.de> Cc: Giuseppe Scrivano <gscrivan@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>